[Home]

Summary:ASTERISK-06230: SIP REGISTER problems with Adit 3104
Reporter:gkloepfer (gkloepfer)Labels:
Date Opened:2006-02-01 13:19:09.000-0600Date Closed:2011-06-07 14:02:50
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan-sip-patch
( 1) sip-conf-entries
( 2) sip-debug-output
Description:Adit 3104 SIP can only register one of its 24 ports because it is attempting to perform multiple registrations in the same SIP "call."

The registration fails with the following message when doing a sip debug:
Jan 31 09:05:15 NOTICE[26685]: chan_sip.c:6275 check_auth: stale nonce received from '<sip:5461@bart.arlut.utexas.edu>'

This happens even though pedantic=yes is set in the global section of sip.conf.

****** ADDITIONAL INFORMATION ******

Under Asterisk 1.0.x, this hardware worked using the global "pedantic=yes" option in sip.conf.  Under 1.2.4 (rev 8969, actually any of the 1.2 versions likely failed) the pedantic option does not appear to allow this anymore.

The error message (above) is the same behavior I saw without using pedantic on 1.0.x.  In short, Asterisk is unable to handle multiple registrations on the same SIP call without pedantic because the call IDs match and the tag doesn't seem to be checked.

Looking at chan_sip.c, I notice in find_call() that the "To" tag is being used in pedantic rather than the "From" tag as was ultimately done for SIP/2.0 under 1.0.x.  I tried adding a similar check for the "from" tag like what was done with the "to" tag (see attached patch), and that worked.  However, I'm not sure exactly why the "to" tag is being checked and not the "from" tag and whether my patch has any negative implications.

I opened a discussion about this on the -dev mailing list, and it was suggested that I submit a bug report.

Attached:  Patch (which may or may not be the correct fix), sip.conf entries, sip debug trace of conversation with the Adit 3104.
Comments:By: Olle Johansson (oej) 2006-02-02 00:25:55.000-0600

There is indeed different From: tags, thus they are different sessions. With pedantic=yes, these should work. I will look into this.

By: Michael Young (mxyoung) 2006-02-03 09:22:42.000-0600

I believe Carrier Access has fixed this issue on their end with a software change.  I am using Adit 3104 with SW release 1.2.2.5 with Asterisk 1.2.1 - 1.2.4 and this is no longer an issue for us. We do still have pedantic=yes set, I haven't tested yet with that switch off.

By: gkloepfer (gkloepfer) 2006-02-08 19:25:34.000-0600

Thanks for the info.  I had gotten bogged down with something else, but will contact CAC and see if the software upgrade solves the problem (they owe us a free upgrade because of a hardware support bug).  I would like to keep this issue open, however, just in case the 3104 software update doesn't fix the trouble.

By: Tilghman Lesher (tilghman) 2006-02-09 09:16:10.000-0600

Reopen if the Adit upgrade doesn't fix the problem.