I just setup an Asterisk system on a small Shuttle box; I am only using SIP channels and have no FXO/FXS cards. The system works fine in that I can call my inbound number (Broadvoice) and have the system answer and I can make outgoing calls. The problem is that every time I want to change something in the sip.conf file, I have to do a 'restart now' instead of a 'reload' or 'sip reload' as it hangs and stops processing calls or responding on the CLI. I tracked this down to something dealing with the peers I have in sip.conf. However, I removed all peers and just placed a simple friend in sip.conf (right from the sample file): [xlite1] ;Turn off silence suppression in X-Lite ("Transmit Silence"=YES)! ;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed type=friend regexten=1234 ; When they register, create extension 1234 username=xlite1 callerid="Jane Smith" <5678> host=dynamic nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw From the Asterisk CLI, I do: sip show peers It shows the one peer and then sip reload and then sip show peers and it is blank with the system being hung. I've searched high and low for a solution, reinstalled Linux (Fedora Core 3), reinstalled Asterisk (I enabled the ztdummy module), and have used the sample config with the same results (for the sample, I just uncomment the above). Since I used the sample without modifications, the fact that I'm using it behind NAT shouldn't make a difference. Any ideas on what is causing this? Is there any additional information I can provide for assistance? Thanks. -- Scott Gruby <mailto:scott@gruby.com> <http://www.gruby.com/>
Scott Gruby wrote:> sip show peers > > and it is blank with the system being hung.<snip>> Any ideas on what is causing this? Is there any additional information I > can provide for assistance?You can start with actually telling us what version of Asterisk you are using, and how you installed it (from a binary distribution, from source tarball, from CVS, etc.). We also need to know whether you've added any patches or any other additional modules.
Sorry about not including the additional info (I realized right after I sent the message of my mistake): Fedora Core 3 (from ISO images); no updates applied Asterisk from CVS (as of this morning) Zaptel from CVS Libpri from CVS No extra Patches No Extra modules Hardware is a Shuttle SS51G w/ Intel Celeron 2.4 GHz; 512 MB RAM; 80 GB Western Digital hard drive. DHCP Assigned address from my main server (address is actually static based on MAC address) No firewall is active I'm more than happy to run gdb to see where the lockup is, but I'm a bit rusty on how to debug a multi-threaded app using gdb. Thanks in advance for any assistance. -- Scott Gruby <mailto:scott@gruby.com> <http://www.gruby.com/>
I have the same problems with the reload command. I found, it is the chan_sip.so which causes the hang. A simple reload of chan_sip.so leaves asterisk in this state, where it does not react on any commands in the CLI. I've tried to open a bug on bugtracker for it, but I was told it would be a dupe of bug 3246 which deals with a system crash. Scince this hang isn't really a crash, I wasn't able to use gdb to get some backtrack informations. Maybe with some instructions on how to get more informations out of the hung system, I could give all of us more needfull details to solve this problem. I found this problem first in December in CVS-HEAD-12/31/04. the STABLE Version didn't have this problem. I have the same installation of asterisk running on three different hardware platforms, all with the same failure. All these systems are running stable with Fedora FC2. With actual CVS-HEAD-01/08/05 the problem remains. Thanks to all Guido
On Sun, 2005-01-09 at 12:10 +0100, Hecken, Guido wrote:> I have the same problems with the reload command. > I found, it is the chan_sip.so which causes the hang. > A simple reload of chan_sip.so leaves asterisk in this state, where it does > not react on any commands in the CLI.I have noticed that * takes a long time to pass this state on my system, so can you tell me if you have any external registrations for example registering to fwd / sipphone etc because if I disable these my system goes through at normal speed. -- Dave Cotton <dcotton@linuxautrement.com>
Dave, yes I have an external registration to sipgate. I commented register => xxxxxxx:yyyyyyy@sipgate.de/xxxxxx in sip.conf in context general, but the problem still remains. Do I have to comment out the sipgate context in sip.conf as well? [sipgate] type=friend username=xxxxx secret=verysecret host=sipgate.de fromuser=xxxxxx fromdomain=sipgate.de nat=yes context=incomingsipgate context=default canreinvite=yes insecure=very Guido -----Urspr?ngliche Nachricht----- Von: Dave Cotton [mailto:dcotton@linuxautrement.com] Gesendet: Sonntag, 9. Januar 2005 12:16 An: Asterisk List Betreff: Re: [Asterisk-Users] sip reload - Hang On Sun, 2005-01-09 at 12:10 +0100, Hecken, Guido wrote:> I have the same problems with the reload command. > I found, it is the chan_sip.so which causes the hang. > A simple reload of chan_sip.so leaves asterisk in this state, where itdoes> not react on any commands in the CLI.I have noticed that * takes a long time to pass this state on my system, so can you tell me if you have any external registrations for example registering to fwd / sipphone etc because if I disable these my system goes through at normal speed. -- Dave Cotton <dcotton@linuxautrement.com> _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users