[Home]

Summary:ASTERISK-14871: Registration against a SIP provider fails in 1.6.2.0
Reporter:tpsast (tpsast)Labels:
Date Opened:2009-09-22 20:40:41Date Closed:2009-09-28 14:14:32
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 1.6.2.0-rc2_SIP_debug.txt
( 1) 1.6.2.0-rc2_SIP_debug_console.txt
Description:Registration against a SIP provider doesn’t work in 1.6.2.0.

The reply from the registrar:
SIP/2.0 403 Forbidden

WARNING[3584]: chan_sip.c:17273 handle_response_register: Forbidden - wrong password on authentication for REGISTER …
Comments:By: tpsast (tpsast) 2009-09-22 20:43:49

Register in sip.conf:
-------------------------
[sip-trunk]
type=peer
callbackextension=extension
defaultuser=xxxxxxxxxx
fromuser= xxxxxxxxxx
secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

By: Leif Madsen (lmadsen) 2009-09-23 09:23:33

And this works in other versions of Asterisk? Which?

Is there any way you can provide a trace that isn't quite so heavily modified? I know you're doing it to protect yourself, but at the same time it makes it pretty difficult to determine if there is a problem with Asterisk.

Which provider are you attempting to register to. Is it just a single provider, or are other providers affected?

By: tpsast (tpsast) 2009-09-23 16:12:55

The registration works in 1.6.0.x and in 1.6.1.x, I have not tested with 1.4 recently.

With Asterisk 1.6.2.0-beta3, beta4, rc1 and rc2 the registration doesn’t work at all.

I have only tested with one provider (this provider does not support the use of asterisk for example).

Please see the attachment in issue: 0015942, maybe this could help if you compare the SIP debug from 1.6.1.7-rc1 with the one from 1.6.2.0-rc2.

The secret is 30 characters long, no special characters included.

By: Elazar Broad (ebroad) 2009-09-24 16:29:59

<snip>
I have only tested with one provider (this provider does not support the use of asterisk for example).
</snip>

Out of curiosity, what happens if you set the useragent option in sip.conf to something other than Asterisk PBX?



By: tpsast (tpsast) 2009-09-25 10:02:49

I have already set the useragent and the realm option to the values that are used by a hardware gateway.  And this works well with Asterisk 1.6.0.x and 1.6.1.x.

By: Elazar Broad (ebroad) 2009-09-25 10:13:00

One more thing that I can think of, can you set remotesecret as well under the peer/trunk configuration?

By: Jeff Peeler (jpeeler) 2009-09-25 15:18:02

Can you provide a SIP debug from both a working version and a non-working version? And if you must mask your trace, do a find/replace for the values on the IP addresses so the dialog can actually be followed. The username can be changed, but please don't touch anything else.

By: tpsast (tpsast) 2009-09-26 21:31:58

Thanks for the help ebroad, the registation works with the new option “remotesecret”.

The problem seems to be that the backward compatibility with the option "secret" does not functioning.

jpeeler, please close this issue.

By: Elazar Broad (ebroad) 2009-09-27 13:52:48

Your welcome. I had a hunch, as a I ran into a similar issue when troubleshooting something else altogether. jpeeler, I believe that trunk works correctly with both secret or remotesecret, but you might want to double check that.



By: Jeff Peeler (jpeeler) 2009-09-28 11:12:19

tpsast: Glad you found a workaround, but the issue still needs to be resolved. Can you provide the register line you are using? If you want to mask it, that's fine.

By: Digium Subversion (svnbot) 2009-09-28 14:12:47

Repository: asterisk
Revision: 220718

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r220718 | jpeeler | 2009-09-28 14:12:47 -0500 (Mon, 28 Sep 2009) | 10 lines

Fix building of registration entry in build_peer when using callbackextension

Check for remotesecret option was unintentionally always true, which therefore
caused the secret option to never be used. Thanks to dvossel for pointing out
the exact fix.

(closes issue ASTERISK-14871)
Reported by: tpsast


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=220718

By: Digium Subversion (svnbot) 2009-09-28 14:13:32

Repository: asterisk
Revision: 220719

_U  branches/1.6.0/

------------------------------------------------------------------------
r220719 | jpeeler | 2009-09-28 14:13:31 -0500 (Mon, 28 Sep 2009) | 15 lines

Blocked revisions 220718 via svnmerge

........
 r220718 | jpeeler | 2009-09-28 14:10:10 -0500 (Mon, 28 Sep 2009) | 10 lines
 
 Fix building of registration entry in build_peer when using callbackextension
 
 Check for remotesecret option was unintentionally always true, which therefore
 caused the secret option to never be used. Thanks to dvossel for pointing out
 the exact fix.
 
 (closes issue ASTERISK-14871)
 Reported by: tpsast
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=220719

By: Digium Subversion (svnbot) 2009-09-28 14:13:43

Repository: asterisk
Revision: 220720

_U  branches/1.6.1/

------------------------------------------------------------------------
r220720 | jpeeler | 2009-09-28 14:13:43 -0500 (Mon, 28 Sep 2009) | 15 lines

Blocked revisions 220718 via svnmerge

........
 r220718 | jpeeler | 2009-09-28 14:10:10 -0500 (Mon, 28 Sep 2009) | 10 lines
 
 Fix building of registration entry in build_peer when using callbackextension
 
 Check for remotesecret option was unintentionally always true, which therefore
 caused the secret option to never be used. Thanks to dvossel for pointing out
 the exact fix.
 
 (closes issue ASTERISK-14871)
 Reported by: tpsast
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=220720

By: Digium Subversion (svnbot) 2009-09-28 14:14:32

Repository: asterisk
Revision: 220722

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
r220722 | jpeeler | 2009-09-28 14:14:31 -0500 (Mon, 28 Sep 2009) | 16 lines

Merged revisions 220718 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r220718 | jpeeler | 2009-09-28 14:10:10 -0500 (Mon, 28 Sep 2009) | 10 lines
 
 Fix building of registration entry in build_peer when using callbackextension
 
 Check for remotesecret option was unintentionally always true, which therefore
 caused the secret option to never be used. Thanks to dvossel for pointing out
 the exact fix.
 
 (closes issue ASTERISK-14871)
 Reported by: tpsast
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=220722