Hello,
I have a issue that sometimes my ATA hardware “forgets” to send the Authorization options. Now i wonder if someone can tell me if this could be caused by faulty Asterisk configuration or should i look into the dialing in hardware and why?
Logging from a working authentication and in this code you see the option/authentication being send;
[code]…D…[.o…
.
jn…
… …[.o…"…Vovida.org 0.96…D…[.o…
.
jn…
… …[.o…"…Vovida.org 0.96.REGISTER sip:server.asterisk.com:5060 SIP/2.0
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;rport;branch=z9hG4bKPjAulmMmiLmx0Bzi3GhKztXEydv-si10Pl
Route: sip:server.asterisk.com:5060;lr
Max-Forwards: 70
From: sip:contactid@server.asterisk.com;tag=vmZ7T8KVQFYsFypy8z-jpVXotg28NH7W
To: sip:contactid@server.asterisk.com
Call-ID: QUGL9qY9IQcS2gJqmXLKhe0gVYLTxBV7
CSeq: 59496 REGISTER
User-Agent: ATA
Contact: “contactid” sip:contactid@externalipfromdialinglocation:41924
Expires: 60
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;branch=z9hG4bKPjAulmMmiLmx0Bzi3GhKztXEydv-si10Pl;received=externalipfromdialinglocation;rport=10443
From: sip:contactid@server.asterisk.com;tag=vmZ7T8KVQFYsFypy8z-jpVXotg28NH7W
To: sip:contactid@server.asterisk.com;tag=as318028f7
Call-ID: QUGL9qY9IQcS2gJqmXLKhe0gVYLTxBV7
CSeq: 59496 REGISTER
Server: server
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“server.asterisk.com”, nonce=“6146ffd1”
Content-Length: 0
REGISTER sip:server.asterisk.com:5060 SIP/2.0
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;rport;branch=z9hG4bKPjGWRWKC0TwUJQpoSHB1QsfuFXWlvFxID2
Route: sip:server.asterisk.com:5060;lr
Max-Forwards: 70
From: sip:contactid@server.asterisk.com;tag=vmZ7T8KVQFYsFypy8z-jpVXotg28NH7W
To: sip:contactid@server.asterisk.com
Call-ID: QUGL9qY9IQcS2gJqmXLKhe0gVYLTxBV7
CSeq: 59497 REGISTER
User-Agent: ATA
Contact: “contactid” sip:contactid@externalipfromdialinglocation:41924
Expires: 60
Authorization: Digest username=“contactid”, realm=“server.asterisk.com”, nonce=“6146ffd1”, uri=“sip:server.asterisk.com:5060”, response=“8667811ee9324f”, algorithm=MD5
Content-Length: 0
OPTIONS sip:contactid@externalipfromdialinglocation:41924 SIP/2.0
Via: SIP/2.0/UDP externalipserver:5060;branch=z9hG4bK3dbf88e7;rport
Max-Forwards: 70
From: “asterisk” sip:asterisk@externalipserver;tag=as5bcebee1
To: sip:contactid@externalipfromdialinglocation:41924
Contact: sip:asterisk@externalipserver:5060
Call-ID: 6da9de512559f03a3c99a1a443a77233@externalipserver:5060
CSeq: 102 OPTIONS
User-Agent: server
Date: Thu, 03 Mar 2011 15:42:47 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0[/code]
Logging from a failed authentication, in here it keeps resending the same data until the timeout value;
[code]…D…[.o…
.
jn…
… …[.o…"…Vovida.org 0.96…D…[.o…
.
jn…
… …[.o…"…Vovida.org 0.96.REGISTER sip:server.asterisk.com:5060 SIP/2.0
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;rport;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h
Route: sip:server.asterisk.com:5060;lr
Max-Forwards: 70
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
User-Agent: ATA
Contact: “contactid” sip:contactid@externalipfromdialinglocation:41924
Expires: 60
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h;received=externalipfromdialinglocation;rport=10448
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com;tag=as1c293bf1
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
Server: server
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“server.asterisk.com”, nonce=“4db866a7”
Content-Length: 0
REGISTER sip:server.asterisk.com:5060 SIP/2.0
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;rport;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h
Route: sip:server.asterisk.com:5060;lr
Max-Forwards: 70
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
User-Agent: ATA
Contact: “contactid” sip:contactid@externalipfromdialinglocation:41924
Expires: 60
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h;received=externalipfromdialinglocation;rport=10448
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com;tag=as1c293bf1
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
Server: server
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“server.asterisk.com”, nonce=“4db866a7”
Content-Length: 0
REGISTER sip:server.asterisk.com:5060 SIP/2.0
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;rport;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h
Route: sip:server.asterisk.com:5060;lr
Max-Forwards: 70
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
User-Agent: ATA
Contact: “contactid” sip:contactid@externalipfromdialinglocation:41924
Expires: 60
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP externalipfromdialinglocation:41924;branch=z9hG4bKPjJSKEXJH3MnJwohmLYJulQgBiHHUjwS4h;received=externalipfromdialinglocation;rport=10448
From: sip:contactid@server.asterisk.com;tag=q.YNyyVbsxj13oSvYxfYv-AQb5nusfa2
To: sip:contactid@server.asterisk.com;tag=as1c293bf1
Call-ID: MPZZxZt.Sizf4DMHbf-ZkOb88VDZOX86
CSeq: 954 REGISTER
Server: server
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“server.asterisk.com”, nonce=“4db866a7”
Content-Length: 0[/code]
Since the problem is a bit random it’s hard to see if any changes actually made a difference.
For example: #include “manager.d/*.conf” i just commented that out cause i read not having the directory/file in there can give authentication issues.