Hi all, i cannot understand where is the problem with this transaction:
Kamailio ask for Proxy authorization and in the second INVITE credentials are present. Can you help me understand?
Regards
U 2015/03/09 15:03:42.191831 10.160.21.51:5060 -> 10.160.20.18:5060 INVITE sip:1000@sip.longwave.labo;user=phone SIP/2.0. Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, NOTIFY, UPDATE. Supported: 100rel,from-change,timer,histinfo. User-Agent: OXO_GW_820/092.001. Session-Expires: 43200. P-Asserted-Identity: "PIPPO" sip:2000@oxo.longwave.labo;user=phone. History-Info: sip:1000@sip.longwave.labo;user=phone;index=1. To: sip:1000@sip.longwave.labo;user=phone. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Contact: "PIPPO" sip:2000@10.160.21.51;transport=UDP;user=phone. Content-Type: application/sdp. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945190 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28. Max-Forwards: 70. Content-Length: 208. . v=0. o=default 1425909984 1425909984 IN IP4 10.160.21.51. s=-. c=IN IP4 10.160.21.51. t=0 0. m=audio 32000 RTP/AVP 18 106 4 8 0. a=sendrecv. a=rtpmap:106 telephone-event/8000. a=fmtp:106 0-15. a=maxptime:90.
U 2015/03/09 15:03:42.193299 10.160.20.18:5060 -> 10.160.21.51:5060 SIP/2.0 407 Proxy Authentication Required. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.aa4d. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945190 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport=5060;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28;received=10.160.21.51. Proxy-Authenticate: Digest realm="oxo.longwave.labo", nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/". Server: lw-sipproxysrv. Content-Length: 0. .
U 2015/03/09 15:03:42.195800 10.160.21.51:5060 -> 10.160.20.18:5060 ACK sip:1000@sip.longwave.labo;user=phone SIP/2.0. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.aa4d. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28. CSeq: 178945190 ACK. Content-Length: 0. .
U 2015/03/09 15:03:42.199176 10.160.21.51:5060 -> 10.160.20.18:5060 INVITE sip:1000@sip.longwave.labo;user=phone SIP/2.0. Proxy-Authorization: Digest username="oxo",realm="oxo.longwave.labo",nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/",uri="sip:1000@sip.longwave.labo;user=phone",response="263ed33da80fb520af0fb0b2f246d310". Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, NOTIFY, UPDATE. Supported: 100rel,from-change,timer,histinfo. User-Agent: OXO_GW_820/092.001. Session-Expires: 43200. P-Asserted-Identity: "PIPPO" sip:2000@oxo.longwave.labo;user=phone. History-Info: sip:1000@sip.longwave.labo;user=phone;index=1. To: sip:1000@sip.longwave.labo;user=phone. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Contact: "PIPPO" sip:2000@10.160.21.51;transport=UDP;user=phone. Content-Type: application/sdp. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945191 INVITE. Max-Forwards: 70. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842. Content-Length: 208. . v=0. o=default 1425909984 1425909984 IN IP4 10.160.21.51. s=-. c=IN IP4 10.160.21.51. t=0 0. m=audio 32000 RTP/AVP 18 106 4 8 0. a=sendrecv. a=rtpmap:106 telephone-event/8000. a=fmtp:106 0-15. a=maxptime:90.
U 2015/03/09 15:03:42.200387 10.160.20.18:5060 -> 10.160.21.51:5060 SIP/2.0 407 Proxy Authentication Required. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.d413. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945191 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport=5060;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842;received=10.160.21.51. Proxy-Authenticate: Digest realm="oxo.longwave.labo", nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/". Server: lw-sipproxysrv. Content-Length: 0. .
U 2015/03/09 15:03:42.203016 10.160.21.51:5060 -> 10.160.20.18:5060 ACK sip:1000@sip.longwave.labo;user=phone SIP/2.0. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.d413. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842. CSeq: 178945191 ACK. Content-Length: 0. .
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Help-with-407-Proxy-Auth-Required-tp... Sent from the Users mailing list archive at Nabble.com.
On 09 Mar 2015, at 15:07, Agiftel agiftel@gmail.com wrote:
Hi all, i cannot understand where is the problem with this transaction:
Kamailio ask for Proxy authorization and in the second INVITE credentials are present. Can you help me understand?
This is typical - it happens when the password is wrong either in the server or the client.
/O
Regards
U 2015/03/09 15:03:42.191831 10.160.21.51:5060 -> 10.160.20.18:5060 INVITE sip:1000@sip.longwave.labo;user=phone SIP/2.0. Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, NOTIFY, UPDATE. Supported: 100rel,from-change,timer,histinfo. User-Agent: OXO_GW_820/092.001. Session-Expires: 43200. P-Asserted-Identity: "PIPPO" sip:2000@oxo.longwave.labo;user=phone. History-Info: sip:1000@sip.longwave.labo;user=phone;index=1. To: sip:1000@sip.longwave.labo;user=phone. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Contact: "PIPPO" sip:2000@10.160.21.51;transport=UDP;user=phone. Content-Type: application/sdp. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945190 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28. Max-Forwards: 70. Content-Length: 208. . v=0. o=default 1425909984 1425909984 IN IP4 10.160.21.51. s=-. c=IN IP4 10.160.21.51. t=0 0. m=audio 32000 RTP/AVP 18 106 4 8 0. a=sendrecv. a=rtpmap:106 telephone-event/8000. a=fmtp:106 0-15. a=maxptime:90.
U 2015/03/09 15:03:42.193299 10.160.20.18:5060 -> 10.160.21.51:5060 SIP/2.0 407 Proxy Authentication Required. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.aa4d. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945190 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport=5060;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28;received=10.160.21.51. Proxy-Authenticate: Digest realm="oxo.longwave.labo", nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/". Server: lw-sipproxysrv. Content-Length: 0. .
U 2015/03/09 15:03:42.195800 10.160.21.51:5060 -> 10.160.20.18:5060 ACK sip:1000@sip.longwave.labo;user=phone SIP/2.0. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.aa4d. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK1fd5f032d2296189ba85c9bf8553ff28. CSeq: 178945190 ACK. Content-Length: 0. .
U 2015/03/09 15:03:42.199176 10.160.21.51:5060 -> 10.160.20.18:5060 INVITE sip:1000@sip.longwave.labo;user=phone SIP/2.0. Proxy-Authorization: Digest username="oxo",realm="oxo.longwave.labo",nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/",uri="sip:1000@sip.longwave.labo;user=phone",response="263ed33da80fb520af0fb0b2f246d310". Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, PRACK, NOTIFY, UPDATE. Supported: 100rel,from-change,timer,histinfo. User-Agent: OXO_GW_820/092.001. Session-Expires: 43200. P-Asserted-Identity: "PIPPO" sip:2000@oxo.longwave.labo;user=phone. History-Info: sip:1000@sip.longwave.labo;user=phone;index=1. To: sip:1000@sip.longwave.labo;user=phone. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Contact: "PIPPO" sip:2000@10.160.21.51;transport=UDP;user=phone. Content-Type: application/sdp. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945191 INVITE. Max-Forwards: 70. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842. Content-Length: 208. . v=0. o=default 1425909984 1425909984 IN IP4 10.160.21.51. s=-. c=IN IP4 10.160.21.51. t=0 0. m=audio 32000 RTP/AVP 18 106 4 8 0. a=sendrecv. a=rtpmap:106 telephone-event/8000. a=fmtp:106 0-15. a=maxptime:90.
U 2015/03/09 15:03:42.200387 10.160.20.18:5060 -> 10.160.21.51:5060 SIP/2.0 407 Proxy Authentication Required. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.d413. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. CSeq: 178945191 INVITE. Via: SIP/2.0/UDP 10.160.21.51;rport=5060;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842;received=10.160.21.51. Proxy-Authenticate: Digest realm="oxo.longwave.labo", nonce="VP2palT9qD7LOD/nl465ujUSUW0NiDo/". Server: lw-sipproxysrv. Content-Length: 0. .
U 2015/03/09 15:03:42.203016 10.160.21.51:5060 -> 10.160.20.18:5060 ACK sip:1000@sip.longwave.labo;user=phone SIP/2.0. Call-ID: 346eded1901cb5b60b9d97a14f196e29@10.160.21.51. From: "PIPPO" sip:2000@oxo.longwave.labo;user=phone;tag=11056089a66d6a43ec04cd21b78039c5. To: sip:1000@sip.longwave.labo;user=phone;tag=b27e1a1d33761e85846fc98f5f3a7e58.d413. Via: SIP/2.0/UDP 10.160.21.51;rport;branch=z9hG4bK503a3569cf5b057bd47d1154c5ba0842. CSeq: 178945191 ACK. Content-Length: 0. .
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Help-with-407-Proxy-Auth-Required-tp... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Olle for reply but password is correct.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Help-with-407-Proxy-Auth-Required-tp... Sent from the Users mailing list archive at Nabble.com.
On 09/03/15 15:41, Agiftel wrote:
Thanks Olle for reply but password is correct.
Set the debug=3 in kamailio.cfg and check the log messages, you should get more hints for what part mismatches there.
Also, after doing auth_check(), you can print the $rc to see the return code value.
Cheers, Daniel
Specifically, after auth_check line add:
xlog("The return code is $rc\n");
Can add additional lines to view the values of other pseudovariables http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables
On 3/9/2015 7:56 AM, Daniel-Constantin Mierla wrote:
On 09/03/15 15:41, Agiftel wrote:
Thanks Olle for reply but password is correct.
Set the debug=3 in kamailio.cfg and check the log messages, you should get more hints for what part mismatches there.
Also, after doing auth_check(), you can print the $rc to see the return code value.
Cheers, Daniel