Summary:ASTERISK-07139: [patch] recent changes to chan_sip, cause registrations to be broken
Reporter:Serge Vecher (serge-v)Labels:
Date Opened:2006-06-09 16:40:34Date Closed:2006-06-13 03:21:10
Versions:Frequency of
Environment:Attachments:( 0) bug_7327_r33643_patch_v1.diff
( 1) r31443_-_sip_registration_debug.txt
( 2) r33195_-_registration_ok.txt
( 3) r33215_-_registration_and_call_not_ok.txt
Description:please see the attached sip debug for more information,
Comments:By: Serge Vecher (serge-v) 2006-06-09 16:46:52

note that as a result of a failed registration attempt, if you restart asterisk, it will try to retransmit strange NOTIFY's. On my network, there is no (notify's for which get dumped after I have deleted astdb file) and restarted Asterisk.

By: Serge Vecher (serge-v) 2006-06-09 16:59:51

Actually, r31443 is the revision where there is no problem. The latest trunk where I saw the problem is r33371 -- that is where the log is from also.

By: Andrey S Pankov (casper) 2006-06-11 17:17:30

Serge: could you describe _the problem_ itself please... does Asterisk refuses
registrations or what? It's hard to guess it form the logs... :)

Do you use insecure=port? Not sure this is related in any way...

By: Serge Vecher (serge-v) 2006-06-12 09:14:54

well, immediately upon registration a SIP Peer will become "unreachable" and will stay that way. I will try to do some tests to try different revisions between 31443 and 33371 to see which one broke it.

By: Olle Johansson (oej) 2006-06-12 09:49:55

Hmm. We don't change or save anything until we do have a successful authentication. I don't see the problem here, need more details.

By: Olle Johansson (oej) 2006-06-12 09:57:00

We need to see a failed call too.

By: Serge Vecher (serge-v) 2006-06-12 10:32:39

Ok, this was introduced in 33215.

By: Olle Johansson (oej) 2006-06-12 10:34:40

33215? That is *really weird. I need to get your sip.conf and the result of "sip show domains" then. And I still need to see one of those failed calls.

By: Serge Vecher (serge-v) 2006-06-12 11:21:19

yes, it was definately 33215. See attached file for a log of broken registration / call. Downgrading to immediately previous r33195 solves the problem. Will send sip.conf via email.

hmm, interesting, "sip show peers" => SIP Domain support not enabled.
They clearly are enabled in sip.conf

By: Serge Vecher (serge-v) 2006-06-12 13:02:58

looks like there was a typo during conversion to sip_result enum. Attached patch fixes the issue. Disclaimer on file.

By: Olle Johansson (oej) 2006-06-12 15:01:26

Did this fix your issue?

By: Serge Vecher (serge-v) 2006-06-12 15:04:46

yes, of course.

By: Olle Johansson (oej) 2006-06-12 15:08:28

Fix committed to svn trunk.

By: Serge Vecher (serge-v) 2006-06-12 15:16:30

fixed in trunk r33676. Thanks Olle :)