Author Topic: Finally fixed a long standing issue with Asterisk  (Read 7323 times)

rwilson131

  • Veteran
  • ***
  • Posts: 118
    • View Profile
Finally fixed a long standing issue with Asterisk
« on: June 20, 2010, 03:20:02 am »
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

Code: [Select]
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: 
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
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.
Code: [Select]
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Finally fixed a long standing issue with Asterisk
« Reply #1 on: June 20, 2010, 11:41:22 am »
When was the last time you updated your system?
http://svn.linuxmce.org/trac.cgi/changeset/22629

rwilson131

  • Veteran
  • ***
  • Posts: 118
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #2 on: June 20, 2010, 03:53:06 pm »
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

  • wants to work for LinuxMCE
  • **
  • Posts: 826
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #3 on: June 20, 2010, 04:17:16 pm »
You should have no "avenard" in your sources.list

rwilson131

  • Veteran
  • ***
  • Posts: 118
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #4 on: June 20, 2010, 04:47:50 pm »
It is commented out.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Finally fixed a long standing issue with Asterisk
« Reply #5 on: June 20, 2010, 06:58:40 pm »
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.

rwilson131

  • Veteran
  • ***
  • Posts: 118
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #6 on: June 20, 2010, 08:20:28 pm »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Finally fixed a long standing issue with Asterisk
« Reply #7 on: June 20, 2010, 09:41:54 pm »
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.

gregjohnson

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #8 on: September 14, 2010, 01:30:38 am »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Finally fixed a long standing issue with Asterisk
« Reply #9 on: September 14, 2010, 08:27:24 am »
greg,

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

gregjohnson

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #10 on: September 14, 2010, 01:57:27 pm »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Finally fixed a long standing issue with Asterisk
« Reply #11 on: September 14, 2010, 02:28:40 pm »
The snapshot might have newer packages

gregjohnson

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Finally fixed a long standing issue with Asterisk
« Reply #12 on: September 14, 2010, 02:42:49 pm »
hey, this response time is ridiculous! :-)

i'll try the snapshot!

many thanks,
regards,
greg johnson