[Asterisk-Users] weird SIP authentication problem

Mickey Binder mickey at comflex.dk
Wed Apr 28 09:47:34 MST 2004


Hello * users,

I have a problem with authenticating my SIP gateway endpoints with *.
The gateway I'm using is an AudioCodes MP-124 (24 port)

If I setup my sip.conf with an empty secret= option everything is working ok
and I can initiate and receive calls, but if I want to be able to
authenticate my SIP gateway with * something goes wrong. Below is a little
snip of my sip.conf file:

--- sip.conf ---

[43300658]
type=friend
auth=md5,plaintext
username=43300658
secret=123456
pickupgroup=1
callgroup=1
dtmfmode=inband
host=dynamic
defaultip=10.1.1.138
canreinvite=yes

--- end of sip.conf ---


I've been running tcpdump on the * server and by studying these files I can
see that the AudioCodes endpoint is registering just fine:

------
Request: REGISTER sip:10.1.1.51
Status: 100 Trying
Status: 407 Proxy Authentication Required
Request: REGISTER sip:10.1.1.51 (But now with digest information)
Status: 100 Trying
Status: 200 Ok
------

To me this looks just fine and the endpoint is now registered. But if I try
to initiate a call from the endpoint something goes wrong, the tdcpdump is
showing that the SIP gateway is sending a INVITE to the * server which
replys with a 407 packet. The gateway then re-INVITE with digest information
but somehow the call doesn't get through, and after a while * displays this
on the console:

-------
chan_sip.c:495 retrans_pkt: Maximum retries exceeded on call
109652920429204cyKW-43300658--43300634 at 10.1.1.138 for seqno 63322 (Response)
-------


I've attached a SIP debug log from the * console, sorry for the length of
it. BTW: The endpoint has no problems in receiving calls.

I've searched high and low for a solution to this problem, and also tried a
lot of different configurations, but without luck.


Kind regards
Mickey Binder




More information about the asterisk-users mailing list