News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Finally fixed a long standing issue with Asterisk

Started by rwilson131, June 20, 2010, 03:20:02 AM

Previous topic - Next topic

rwilson131

I am posting a problem that I had in case any one else is having the same issues.  Asterisk was not loading and has not been loading for quite some time.  Here is a list of the errors that I was getting when trying to load asterisk.

I am using Broadvoice and 8.10 Beta2.

Linuxmce Logs /var/log/pluto/18_Asterisk.log

06/19/10 8:08:07.235            socket creation failed. <0xb69f
9b90>
01      06/19/10 8:08:12.235            socket creation failed. <0xb69f
9b90>
01      06/19/10 8:08:17.234            socket creation failed. <0xb69f
9b90>


Main Error message that I was getting with running: 
sudo asterisk -vv

app_playback.so => (Sound File Playback Application)
terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_fill_insert
Aborted (core dumped)


I finally found a like that actually lead me to the fix.
http://everflux.de/asterisk-terminate-called-after-throwing-an-instance-of-stdlength_error-1029

I had to modify the /etc/asterisk/modules.conf file by adding the following:
noload => chan_vpb.so

I have found some bug messages that talk about this issues with driver for Viocetronix Cards:
https://issues.asterisk.org/view.php?id=12096
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466729

Unfortunately, the bug states that it is fixed in Fixed in version vpb-driver/4.2.26-1 and the version in Beta2 is
sudo dpkg -l libvpb*
libvpb0        4.2.32-1       


so, I not entirely sure if this is only an issue for me, but for me this is completely reproducible.  I can cause asterisk to core dump by committing out the fix above.  I am still testing to see if there is any fall out from this fix, but at least I am able to get asterisk to register with Broadvoice.
NotifyPeersStatus status:
SIP/broadvoice:Registered
SIP/202:Registered
SIP/201:Unregistered
SIP/200:Registered


Is any one else having this issue and can anyone think of any unintended consequences of not loading this driver?

Thanks,
Rob





Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

rwilson131

I updated two days ago, and then yesterday as well.  It appears that the updates did not modify the modules.conf file. 

I try to update every few weeks, so I am positive that the system was updated several times between this update and the time that I figured out how to fix it. 

I have been searching the this forum and many other forums, never thought to search trac. 

If it matters, I have had this issue for a long time, but life had just got in the way of trying to fix it.  I am glad to hear that it is fixed. 

Would the modules.conf file get modified on a regular update?

I moved the modules.conf to modules.conf.working and tried to see if the corrected modules.conf would get recreated on a reinstall, but

reinstalled asterisk and pluto-asterisk  and modules.conf was not recreated.  I am not sure if I am doing it correctly. 

but when I reinstalled asterisk it appears to be pulling from:

Get:1 http://us.archive.ubuntu.com intrepid-updates/universe asterisk 1:1.4.21.2~dfsg-1ubuntu3.1 [2456kB]

which looks like the wrong place to capture the changes.

What should the /etc/apt/sources.list look like?

I am using this post as a resource, please let me know if this is incorrect.
http://forum.linuxmce.org/index.php?topic=10262.0

I apologize if these questions already answered, but I will try to get any information that is needed.

Thanks,
Rob

bongowongo

You should have no "avenard" in your sources.list


Marie.O

rwilson131,

it is not asterisk, but in our freepbx package.

It is probably not updating an existing configuration file.

The error you found, and the fix you posted has been part of the install since end of Dec 2009.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

rwilson131

I am glad to here that this is not present in new installs. 

This does bring up a question.  How do we ensure that with updates, we are getting the benefits of all of the developers hard work?

Thanks for all of your hard work.
Rob

Marie.O

For all the LinuxMCE packages, we try to maintain the update scripts to take care of stuff. For some of the 3rd party stuff, we do not do that, but rely upon their own mechanism.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

gregjohnson

hi,

fyi, have just done a new install to a completely clean and newly formatted system
with the 810 Beta2 DVD and have the same problem, ie

$ sudo asterisk -vv
gives:
terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_fill_insert
Aborted (core dumped)

so i'm not sure that it is "fixed in new installs".

after adding your fix:
noload => chan_vpb.so

asterisk starts ok but i am still getting:
"socket creation failed." in /var/log/pluto/18_Asterisk.log

what socket is it trying to create?
i can't seem to enable enough logging to find anything.

any hints about where to start looking?

thanks,
greg johnson


Marie.O

greg,

Quote from: gregjohnson on September 14, 2010, 01:30:38 AM
fyi, have just done a new install to a completely clean and newly formatted system
with the 810 Beta2 DVD and have the same problem, ie

thank you for taking the time to test the Beta2 DVD.

The Beta2 DVD is a fairly old version. Please try the recent snapshots. The snapshots should already contain the fix. You can find the latest snapshots at http://linuxmce.iptp.org/snapshots

Good luck
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

gregjohnson

hi guys,

wow - quick response, thanks!

would you mind if i ask how does a snapshot compare with:
wget -c http://deb.linuxmce.org/ubuntu/new-installer-latest.tar.gz
gunzip new-installer-latest.tar.gz
tar xvf new-installer-latest.tar
cd new-installer
./pre-install-from-repo.sh
./mce-install.sh
./post-install.sh
reboot

many thanks,

regards,
greg johnson


Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

gregjohnson

hey, this response time is ridiculous! :-)

i'll try the snapshot!

many thanks,
regards,
greg johnson