[Home]

Summary:ASTERISK-07334: trunk unable to register with iax or sip
Reporter:cloos (cloos)Labels:
Date Opened:2006-07-13 08:02:49Date Closed:2006-07-14 09:04:10
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Sometime between revisions 37433 and 37501 (currently most recent) sip and iax registration stopped working.

for iax, it complains of running out of threads, even after upping the number permitted (using the new options in iax.conf).

for sip, it sends badly formed OPTIONS packets to the first entry in sip conf (even with qualify=no) which generate 404s from the remote site, and never moves on to the next peer.  The OPTIONS packets go out four at a time with less than a second delay before the next batch of four.

I can bring up a 2nd instance to test some more later on today if there is any trouble reproducing.  I'd prefer to offer more info now but I needed to get the box working again, and dropping down to a recent revision before the changes to iax threads got it back up....

****** STEPS TO REPRODUCE ******

cd astersk/trunk && svn up && make clean && make && sudo make install
and then restart *.
Comments:By: Serge Vecher (serge-v) 2006-07-13 10:03:30

cloos: I think you may have identified two separate issues here. Since you have narrowed the breaking range fairly well, can you please test every revision in that range from trunk and see which revision causes which problem http://lists.digium.com/pipermail/svn-commits/2006-July/date.html . If the issues are indeed separate, please feel free to open a new bug report for either IAX or SIP problem.

Thanks for testing.

By: Serge Vecher (serge-v) 2006-07-13 10:09:10

There is another report of current chan_sip breakage in bug ASTERISK-7333, hypothetically due to r37474. If you find that to be the revision causing sip registration problems for you, please make a respective note in 7528 and continue on with diagnosing IAX problems in this report. Thanks

By: cloos (cloos) 2006-07-14 02:50:39

I went through and saved each revision one by one.  These are the possible revisions to check:

37433  37440  37457  37459  37474  37475  37476  37477 37483  37484  37492  37494  37501

(The only other affecting trunk only changed an example config file)

So far I've verified that it is already broken at rev 37492.  I'll bisect down from there.

By: cloos (cloos) 2006-07-14 05:45:54

rev 37457 breaks both iax and sip.  37440 is the last that worked.

By: cloos (cloos) 2006-07-14 05:50:10

argh.  hit the wrong button...

here are some representative logs of the iax problem:

NOTICE[20418] chan_iax2.c: Out of idle IAX2 threads for scheduling!
NOTICE[20419] chan_iax2.c: Out of idle IAX2 threads for I/O, pausing!
NOTICE[20415] sched.c: Attempted to delete nonexistent schedule entry 25!
NOTICE[20413] sched.c: Attempted to delete nonexistent schedule entry 7766!

the rest are all of the ilk, with just the entry number changing.

there is no logging corresponding to the sip problem.

So it is the change to sched.c breaking both iax and sip.

By: cloos (cloos) 2006-07-14 09:03:48

I saw today's changes to sched.c.  They fix the problem.

I'm at rev 37604 now and all works.

By: Jason Parker (jparker) 2006-07-14 09:04:10

A fix for sched.c was committed yesterday afternnoon.  Please test, and reopen this bug if necessary.