Ошибка в Digest автризации SIP в CGP?

От: Михаил К. Епихин <CGatePro_at_mx_ru>
Дата: Thu 17 Sep 2009 - 18:12:48 MSD

Добрый день.

Ситуация: SIP провайдер betamax исходящие звонки авторизуются digest авторизацией, через CGP успешно авторизуется около 1 из 10 звонков (ответ на авторизацию 401), через Cisco все ок.
Для тестов я использовал один и тот же ip адрес, одни и те же учетные данные провайдера, тесты производились в одно и то же время - вроде бы внешние факторы исключены.
Лог cisco:

002596: *Sep 17 18:03:49.783 MSD: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent:
INVITE sip:00747322992223@sip.nonoh.net:5060 SIP/2.0 Via: SIP/2.0/UDP 91.209.124.22:5060;branch=z9hG4bK1617B Remote-Party-ID: <sip:110@91.209.124.22>;party=calling;screen=no;privacy=off From: <sip:110@sip.nonoh.net>;tag=64CE1808-5A6 To: <sip:00747322992223@sip.nonoh.net>
Date: Thu, 17 Sep 2009 14:03:49 GMT
Call-ID: C230216B-A2C911DE-8038C647-50E9FE44@91.209.124.22 Supported: 100rel,timer,resource-priority,replaces Min-SE: 1800
Cisco-Guid: 3257814259-2731086302-2150876743-1357512260 User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1253196229
Contact: <sip:110@91.209.124.22:5060>
Expires: 180

Allow-Events: telephone-event
Max-Forwards: 69
Content-Type: application/sdp

Content-Disposition: session;handling=required Content-Length: 250
v=0
o=CiscoSystemsSIP-GW-UserAgent 1918 8595 IN IP4 91.209.124.22
s=SIP Call
c=IN IP4 91.209.124.22
t=0 0
m=audio 19444 RTP/AVP 8 101
c=IN IP4 91.209.124.22
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

002597: *Sep 17 18:03:49.847 MSD: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 91.209.124.22:5060;branch=z9hG4bK1617B From: <sip:110@sip.nonoh.net>;tag=64CE1808-5A6 To: <sip:00747322992223@sip.nonoh.net>
Contact: sip:00747322992223@77.72.169.129:5060 Call-ID: C230216B-A2C911DE-8038C647-50E9FE44@91.209.124.22 CSeq: 101 INVITE
Server: (Very nice Sip Registrar/Proxy Server) Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE WWW-Authenticate: Digest
realm="sip.nonoh.net",nonce="607071640",algorithm=MD5 Content-Length: 0

002598: *Sep 17 18:03:49.851 MSD: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent:
ACK sip:00747322992223@sip.nonoh.net:5060 SIP/2.0 Via: SIP/2.0/UDP 91.209.124.22:5060;branch=z9hG4bK1617B From: <sip:110@sip.nonoh.net>;tag=64CE1808-5A6 To: <sip:00747322992223@sip.nonoh.net>
Date: Thu, 17 Sep 2009 14:03:49 GMT
Call-ID: C230216B-A2C911DE-8038C647-50E9FE44@91.209.124.22 Max-Forwards: 10
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0

002599: *Sep 17 18:03:49.851 MSD: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent:
INVITE sip:00747322992223@sip.nonoh.net:5060 SIP/2.0 Via: SIP/2.0/UDP 91.209.124.22:5060;branch=z9hG4bK1711FC Remote-Party-ID: <sip:110@91.209.124.22>;party=calling;screen=no;privacy=off From: <sip:110@sip.nonoh.net>;tag=64CE1808-5A6 To: <sip:00747322992223@sip.nonoh.net>
Date: Thu, 17 Sep 2009 14:03:49 GMT
Call-ID: C230216B-A2C911DE-8038C647-50E9FE44@91.209.124.22 Supported: 100rel,timer,resource-priority,replaces Min-SE: 1800
Cisco-Guid: 3257814259-2731086302-2150876743-1357512260 User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 102 INVITE
Timestamp: 1253196229
Contact: <sip:110@91.209.124.22:5060>
Expires: 180
Allow-Events: telephone-event
Authorization: Digest
username="ybsam",realm="sip.nonoh.net",uri="sip:00747322992223@sip.nonoh.net:5060",response="83f6b4e289c197fe08936f91d399cb6a",nonce="607071640",algorithm=MD5 Max-Forwards: 69

Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 250

v=0
o=CiscoSystemsSIP-GW-UserAgent 1918 8595 IN IP4 91.209.124.22
s=SIP Call
c=IN IP4 91.209.124.22
t=0 0
m=audio 19444 RTP/AVP 8 101
c=IN IP4 91.209.124.22
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15
a=ptime:20

002600: *Sep 17 18:03:49.915 MSD: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 91.209.124.22:5060;branch=z9hG4bK1711FC From: <sip:110@sip.nonoh.net>;tag=64CE1808-5A6 To: <sip:00747322992223@sip.nonoh.net>
Contact: sip:00747322992223@77.72.169.129:5060 Call-ID: C230216B-A2C911DE-8038C647-50E9FE44@91.209.124.22 CSeq: 102 INVITE
Server: (Very nice Sip Registrar/Proxy Server) Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE Content-Length: 0

Лог CGP:

16:26:04.467 2 SIPDATA-088347 out: req [91.209.124.70]:5060 -> udp[194.120.0.198]:5060 INVITE(1137 bytes) sip:0079202299222@sip.nonoh.net 16:26:04.467 5 SIPDATA-088347 out: INVITE sip:0079202299222@sip.nonoh.net SIP/2.0
16:26:04.467 5 SIPDATA-088347 out: Via: SIP/2.0/UDP 91.209.124.70:5060;branch=z9hG4bK28368;rport 16:26:04.467 5 SIPDATA-088347 out: P-Asserted-Identity: <sip:michail@analit.net>

16:26:04.467 5 SIPDATA-088347 out: Record-Route: <sip:91.209.124.70:5060;lr>
16:26:04.467 5 SIPDATA-088347 out: Record-Route: 
<sip:rev.7390.dialog.cgatepro;lr>
16:26:04.467 5 SIPDATA-088347 out: Max-Forwards: 68
16:26:04.467 5 SIPDATA-088347 out: From: 
<sip:ybsam@sip.nonoh.net>;tag=000000000007816-B835E705-6073B63B
16:26:04.467 5 SIPDATA-088347 out: To: <sip:0079202299222@sip.nonoh.net>
16:26:04.467 5 SIPDATA-088347 out: Call-ID: qwe324
16:26:04.467 5 SIPDATA-088347 out: Contact: 
<sip:signode-7816-6073B63B@91.209.124.70>
16:26:04.467 5 SIPDATA-088347 out: CSeq: 3 INVITE
16:26:04.467 5 SIPDATA-088347 out: Supported: 100rel,timer,replaces,histinfo
16:26:04.467 5 SIPDATA-088347 out: Privacy: id
16:26:04.467 5 SIPDATA-088347 out: Session-Expires: 300
16:26:04.467 5 SIPDATA-088347 out: Min-SE: 90
16:26:04.467 5 SIPDATA-088347 out: User-Agent: CommuniGatePro-callLeg/5.2.16
16:26:04.467 5 SIPDATA-088347 out: Authorization: Digest 
username="ybsam",realm="sip.nonoh.net",nonce="706481671",uri="sip:0079202299222@sip.nonoh.net",response="5ab9d3a8ed186ba45b2ba5610a1a4687",algorithm=MD5
16:26:04.467 5 SIPDATA-088347 out: Content-Type: application/sdp
16:26:04.467 5 SIPDATA-088347 out: Content-Length: 311
16:26:04.467 5 SIPDATA-088347 out:
16:26:04.467 5 SIPDATA-088347 out: v=0
16:26:04.467 5 SIPDATA-088347 out: o=CGPLeg007816 650328462 325164232 IN IP4 
91.209.124.70
16:26:04.467 5 SIPDATA-088347 out: s=-
16:26:04.467 5 SIPDATA-088347 out: c=IN IP4 91.209.124.70
16:26:04.467 5 SIPDATA-088347 out: t=0 0
16:26:04.467 5 SIPDATA-088347 out: a=mediagateway:box.analit.net:7390
16:26:04.467 5 SIPDATA-088347 out: m=audio 60902 RTP/AVP 8 101
16:26:04.467 5 SIPDATA-088347 out: c=IN IP4 91.209.124.70
16:26:04.467 5 SIPDATA-088347 out: a=rtpmap:8 PCMA/8000
16:26:04.467 5 SIPDATA-088347 out: a=rtpmap:101 telephone-event/8000
16:26:04.467 5 SIPDATA-088347 out: a=fmtp:101 0-15
16:26:04.467 5 SIPDATA-088347 out: a=sendrecv
16:26:04.467 5 SIPDATA-088347 out: a=ptime:30
16:26:04.467 5 SIPDATA-088347 out: a=rtcpping:T:1065:106578
16:26:04.467 2 SIPC-028368 [088347] INVITE sip:0079202299222@sip.nonoh.net 
sent [91.209.124.70]:5060 -> udp[194.120.0.198]:5060 16:26:04.577 2 SIPDATA-088348 inp: rsp [91.209.124.70]:5060 <- udp[194.120.0.198]:5060 401-INVITE(565 bytes) 16:26:04.577 5 SIPDATA-088348 inp: SIP/2.0 401 Unauthorized 16:26:04.577 5 SIPDATA-088348 inp: Via: SIP/2.0/UDP 91.209.124.70:5060;branch=z9hG4bK28368;rport 16:26:04.577 5 SIPDATA-088348 inp: From: <sip:ybsam@sip.nonoh.net>;tag=000000000007816-B835E705-6073B63B 16:26:04.577 5 SIPDATA-088348 inp: To: <sip:0079202299222@sip.nonoh.net> 16:26:04.577 5 SIPDATA-088348 inp: Contact: sip:0079202299222@194.120.0.198:5060
16:26:04.577 5 SIPDATA-088348 inp: Call-ID: qwe324
16:26:04.577 5 SIPDATA-088348 inp: CSeq: 3 INVITE
16:26:04.577 5 SIPDATA-088348 inp: Server: (Very nice Sip Registrar/Proxy 
Server)
16:26:04.577 5 SIPDATA-088348 inp: Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE 16:26:04.577 5 SIPDATA-088348 inp: Record-route: <sip:91.209.124.70:5060;lr>,<sip:rev.7390.dialog.cgatepro;lr> 16:26:04.577 5 SIPDATA-088348 inp: WWW-Authenticate: Digest realm="sip.nonoh.net",nonce="704260875",algorithm=MD5
16:26:04.577 5 SIPDATA-088348 inp: Content-Length: 0
16:26:04.577 5 SIPDATA-088348 inp:
16:26:04.577 2 SIPDATA-088348 sent to SIPC-028368
16:26:04.577 2 SIPC-028368 [088348] 401-INVITE received
16:26:04.577 3 SIPC-028368 2 Record-Route field(s) in non-starting response, 
clearing
16:26:04.577 2 SIPC-028368 sending ACK
16:26:04.577 2 SIGNAL-037396 401 received from SIPC-028368
16:26:04.577 2 SIGNAL-037396 updating DIALOG-007389 on 401-response
16:26:04.577 2 DIALOG-007389 signal expiration set to 300 sec
16:26:04.577 2 SIPDATA-088349 out: req [91.209.124.70]:5060 -> 
udp[194.120.0.198]:5060 ACK(334 bytes) sip:0079202299222@sip.nonoh.net 16:26:04.577 5 SIPDATA-088349 out: ACK sip:0079202299222@sip.nonoh.net SIP/2.0
16:26:04.577 5 SIPDATA-088349 out: P-Asserted-Identity: <sip:michail@analit.net>
16:26:04.577 5 SIPDATA-088349 out: Via: SIP/2.0/UDP 91.209.124.70:5060;branch=z9hG4bK28368;rport 16:26:04.577 5 SIPDATA-088349 out: Max-Forwards: 68 16:26:04.577 5 SIPDATA-088349 out: From: <sip:ybsam@sip.nonoh.net>;tag=000000000007816-B835E705-6073B63B
16:26:04.577 5 SIPDATA-088349 out: To: <sip:0079202299222@sip.nonoh.net>
16:26:04.577 5 SIPDATA-088349 out: Call-ID: qwe324
16:26:04.577 5 SIPDATA-088349 out: CSeq: 3 ACK
16:26:04.577 5 SIPDATA-088349 out: Content-Length: 0
16:26:04.577 5 SIPDATA-088349 out:
16:26:04.577 2 SIPC-028368 [088349] ACK sip:0079202299222@sip.nonoh.net sent 
[91.209.124.70]:5060 -> udp[194.120.0.198]:5060
16:26:04.577 2 SIPC-028368 killing DIALOG-007390
16:26:04.577 2 DIALOG-007390 dequeued(kill)
16:26:04.577 2 DIALOG-007390 MEDIAPROXY-001065 removing
16:26:04.577 4 ACCOUNT(michail@analit.net) Event(dialog) 
segment(438E2AF43C11A5C71509) refreshed: terminated 16:26:04.577 4 ACCOUNT(michail@analit.net) Event(dialog) status changed((...))->((...))
16:26:04.577 2 SIGNAL-037396 401 relaying
16:26:04.577 2 SIGNAL-037396 releasing
16:26:04.577 2 DIALOG-007389 released
16:26:04.577 2 SIGNAL-037398 NODE-007816: INVITE 
sip:0079202299222@sip.nonoh.net
16:26:04.577 4 ACCOUNT(michail@analit.net) Event(dialog) segment(438E2AF43C11A5C71509) created: proceeding 16:26:04.577 4 ACCOUNT(michail@analit.net) Event(dialog) status changed((...))->((...))
16:26:04.577 2 DIALOG-007391 created(authOut)
16:26:04.577 2 DIALOG-007391 caller set: michail@analit.net
16:26:04.577 2 SIGNAL-037398 INVITE sip:0079202299222@sip.nonoh.net via 
sip:0079202299222@sip.nonoh.net
16:26:04.577 2 SIGNAL-037398 relaying to sip:0079202299222@sip.nonoh.net via sip:sip.nonoh.net
16:26:04.577 2 SIGNAL-037398 {1} sent to SIPC-028370: INVITE sip:0079202299222@sip.nonoh.net
16:26:04.577 2 SIPC-028370 INVITE sip:0079202299222@sip.nonoh.net 16:26:04.577 3 SIPC-028370 failed to find SRV records for sip.nonoh.net(sip,udp). Error Code=host name is unknown
16:26:04.577 2 DIALOG-007392 created as DIALOG-007391 copy(copy)
16:26:04.577 2 DIALOG-007392 enqueued
16:26:04.577 2 SIPC-028370 created DIALOG-007392
16:26:04.577 2 SIPC-028370 creating media proxy
16:26:04.577 2 MEDIAPROXY-001066 created: [127.0.0.1] ->
16:26:04.577 2 DIALOG-007392 MEDIAPROXY-001066 created
16:26:04.577 2 MEDIAPROXY-001066 processing SDP(1 media) ->
16:26:04.686 2 SMTP-016352(west.rostagroup.ru) [32077871] sent to 
[81.3.145.14]:25, got:250 39004255 message accepted for delivery 16:26:04.686 2 DEQUEUER [32077871]
SMTP(@91.209.124.70|west.rostagroup.ru)galina.sirotkina@west.rostagroup.ru relayed: relayed via post.west.rostagroup.ru
16:26:04.795 2 MEDIAPROXY-001065 released
16:26:04.795 2 DIALOG-007390 released
16:26:04.795 2 UDPPROXY-001066 created (port=60904/2)
16:26:04.795 2 UDPPROXY-001066 processing started
16:26:04.795 2 UDPPROXY-001066 [172.16.15.4]:16384 <-> [0.0.0.0]:0
16:26:04.795 2 MEDIAPROXY-001066 set: [172.16.15.4] <-> [77.72.169.129]
16:26:04.795 2 SIPC-028370 request SDP updated with DIALOG-007392
16:26:04.795 2 UDPPROXY-001065 released. 0(0) <-> 0(0) sent in 0 seconds
16:26:04.795 2 SIPDATA-088350 out: req [91.209.124.70]:5060 -> 
udp[77.72.169.129]:5060 INVITE(1137 bytes) sip:0079202299222@sip.nonoh.net 16:26:04.795 5 SIPDATA-088350 out: INVITE sip:0079202299222@sip.nonoh.net SIP/2.0
16:26:04.795 5 SIPDATA-088350 out: Via: SIP/2.0/UDP 91.209.124.70:5060;branch=z9hG4bK28370;rport 16:26:04.795 5 SIPDATA-088350 out: P-Asserted-Identity: <sip:michail@analit.net>
16:26:04.795 5 SIPDATA-088350 out: Record-Route: <sip:91.209.124.70:5060;lr>
16:26:04.795 5 SIPDATA-088350 out: Record-Route: 
<sip:rev.7392.dialog.cgatepro;lr>
16:26:04.795 5 SIPDATA-088350 out: Max-Forwards: 68
16:26:04.795 5 SIPDATA-088350 out: From: 
<sip:ybsam@sip.nonoh.net>;tag=000000000007816-B835E705-6073B63B
16:26:04.795 5 SIPDATA-088350 out: To: <sip:0079202299222@sip.nonoh.net>
16:26:04.795 5 SIPDATA-088350 out: Call-ID: qwe324
16:26:04.795 5 SIPDATA-088350 out: Contact: 
<sip:signode-7816-6073B63B@91.209.124.70>
16:26:04.795 5 SIPDATA-088350 out: CSeq: 4 INVITE
16:26:04.795 5 SIPDATA-088350 out: Supported: 100rel,timer,replaces,histinfo
16:26:04.795 5 SIPDATA-088350 out: Privacy: id
16:26:04.795 5 SIPDATA-088350 out: Session-Expires: 300
16:26:04.795 5 SIPDATA-088350 out: Min-SE: 90
16:26:04.795 5 SIPDATA-088350 out: User-Agent: CommuniGatePro-callLeg/5.2.16
16:26:04.795 5 SIPDATA-088350 out: Authorization: Digest 
username="ybsam",realm="sip.nonoh.net",nonce="704260875",uri="sip:0079202299222@sip.nonoh.net",response="f8d5cdb6dbc8957b1771abc5c515ec77",algorithm=MD5
16:26:04.795 5 SIPDATA-088350 out: Content-Type: application/sdp
16:26:04.795 5 SIPDATA-088350 out: Content-Length: 311
16:26:04.795 5 SIPDATA-088350 out:
16:26:04.795 5 SIPDATA-088350 out: v=0
16:26:04.795 5 SIPDATA-088350 out: o=CGPLeg007816 650328462 325164232 IN IP4 
91.209.124.70
16:26:04.795 5 SIPDATA-088350 out: s=-
16:26:04.795 5 SIPDATA-088350 out: c=IN IP4 91.209.124.70
16:26:04.795 5 SIPDATA-088350 out: t=0 0
16:26:04.795 5 SIPDATA-088350 out: a=mediagateway:box.analit.net:7392
16:26:04.795 5 SIPDATA-088350 out: m=audio 60904 RTP/AVP 8 101
16:26:04.795 5 SIPDATA-088350 out: c=IN IP4 91.209.124.70
16:26:04.795 5 SIPDATA-088350 out: a=rtpmap:8 PCMA/8000
16:26:04.795 5 SIPDATA-088350 out: a=rtpmap:101 telephone-event/8000
16:26:04.795 5 SIPDATA-088350 out: a=fmtp:101 0-15
16:26:04.795 5 SIPDATA-088350 out: a=sendrecv
16:26:04.795 5 SIPDATA-088350 out: a=ptime:30
16:26:04.795 5 SIPDATA-088350 out: a=rtcpping:T:1066:106678
16:26:04.795 2 SIPC-028370 [088350] INVITE sip:0079202299222@sip.nonoh.net 
sent [91.209.124.70]:5060 -> udp[77.72.169.129]:5060 16:26:04.873 2 SIPDATA-088351 inp: rsp [91.209.124.70]:5060 <- udp[77.72.169.129]:5060 401-INVITE(565 bytes) 16:26:04.873 5 SIPDATA-088351 inp: SIP/2.0 401 Unauthorized 16:26:04.873 5 SIPDATA-088351 inp: Via: SIP/2.0/UDP 91.209.124.70:5060;branch=z9hG4bK28370;rport 16:26:04.873 5 SIPDATA-088351 inp: From: <sip:ybsam@sip.nonoh.net>;tag=000000000007816-B835E705-6073B63B 16:26:04.873 5 SIPDATA-088351 inp: To: <sip:0079202299222@sip.nonoh.net> 16:26:04.873 5 SIPDATA-088351 inp: Contact: sip:0079202299222@77.72.169.129:5060
16:26:04.873 5 SIPDATA-088351 inp: Call-ID: qwe324
16:26:04.873 5 SIPDATA-088351 inp: CSeq: 4 INVITE
16:26:04.873 5 SIPDATA-088351 inp: Server: (Very nice Sip Registrar/Proxy 
Server)
16:26:04.873 5 SIPDATA-088351 inp: Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE 16:26:04.873 5 SIPDATA-088351 inp: Record-route: <sip:91.209.124.70:5060;lr>,<sip:rev.7392.dialog.cgatepro;lr> 16:26:04.873 5 SIPDATA-088351 inp: WWW-Authenticate: Digest realm="sip.nonoh.net",nonce="706482296",algorithm=MD5
16:26:04.873 5 SIPDATA-088351 inp: Content-Length: 0
16:26:04.873 5 SIPDATA-088351 inp:
16:26:04.873 2 SIPDATA-088351 sent to SIPC-028370


Вроде все одинаково, может я упускаю что-то в CGP? Получено Thu Sep 17 14:13:33 2009

Этот архив был сгенерирован hypermail 2.1.8 : Fri 24 Apr 2015 - 16:16:35 MSK