Skip to content

Instantly share code, notes, and snippets.

@warewolf
Last active February 28, 2017 05:20
Show Gist options
  • Select an option

  • Save warewolf/86dc4ff7f6d84864bbad9e58680779f2 to your computer and use it in GitHub Desktop.

Select an option

Save warewolf/86dc4ff7f6d84864bbad9e58680779f2 to your computer and use it in GitHub Desktop.
Weird asterisk SRTP problem
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] sdp_srtp.c: local_key64 W2rZR1yHSV+hefz2Haeu5L3F7U0nuW4OOtMgXRba len 40
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] res_srtp.c: Adding new policy for SSRC 1571565691
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] sdp_srtp.c: SRTP policy activated
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] sdp_srtp.c: Crypto line: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:W2rZR1yHSV+hefz2Haeu5L3F7U0nuW4OOtMgXRba
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:ODc0MjU5AABmZWU0ZWMzADJkNWRlMmRkNjA2NDhm... OK.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:NTRlM2Y2NmIzNDhhMmM5NTY4NzU3ZTQAMzYxNjNj... UNSUPPORTED OR FAILED.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=crypto:3 F8_128_HMAC_SHA1_80 inline:MjUzYTdkYTY0ZTY0NGQ0YjJiMWUzMzM2NDVjYzEz... UNSUPPORTED OR FAILED.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format iLBC for ID 97
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:97 iLBC/8000... OK.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format iLBC for ID 102
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:102 iLBC/8000... OK.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format PCMU for ID 0
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:0 PCMU/8000... OK.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format PCMA for ID 8
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:8 PCMA/8000... OK.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format G729 for ID 18
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:18 G729/8000... OK.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=fmtp:18 annexb=no... OK.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format G722 for ID 9
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:9 G722/8000... OK.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=fmtp:101 0-15... UNSUPPORTED OR FAILED.
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c: Found audio description format telephone-event for ID 101
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:101 telephone-event/8000... OK.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=ptime:20... OK.
[Feb 28 00:12:10] DEBUG[30298][C-0000000c] chan_sip.c: Processing media-level (audio) SDP a=sendrecv... OK.
[Feb 28 00:12:10] WARNING[30298][C-0000000c] chan_sip.c: Failed to receive SDP offer/answer with required SRTP crypto attributes for audio
[Feb 28 00:12:10] VERBOSE[30298][C-0000000c] chan_sip.c:
<--- SIP read from TLS:10.1.0.70:20521 --->
<------------->
<--- SIP read from TLS:10.1.0.70:20521 --->
INVITE sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>
Call-ID: 2077399327@10.1.0.70
CSeq: 1 INVITE
Contact: <sip:suzy@10.1.0.70:20521;transport=TLS>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T22P 7.72.0.80
Supported: replaces
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 602
v=0
o=- 20001 20001 IN IP4 10.1.0.70
s=SDP data
c=IN IP4 10.1.0.70
t=0 0
m=audio 11782 RTP/AVP 97 102 0 8 18 9 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:M2FhYjgyYmI0YWRmZmQ1MjM0MDMyN2ZjYWIxMTI0
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:NzFkYWQ5OGI1NDI3MmY4NjZlNTZjYjIzNDZmNGQ3
a=crypto:3 F8_128_HMAC_SHA1_80 inline:NjFiNzU4AAAzZmVlY2VmZDZjYmVlNTE1MTk4Y2M5
a=rtpmap:97 iLBC/8000
a=rtpmap:102 iLBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 20 lines) ---
Sending to 10.1.0.70:20521 (no NAT)
Sending to 10.1.0.70:20521 (no NAT)
Using INVITE request as basis request - 2077399327@10.1.0.70
Found peer 'suzy' for 'suzy' from 10.1.0.70:20521
<--- Reliably Transmitting (NAT) to 10.1.0.70:20521 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217;received=10.1.0.70;rport=20521
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 1 INVITE
Server: PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="xxx"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2077399327@10.1.0.70' in 6400 ms (Method: INVITE)
<--- SIP read from TLS:10.1.0.70:20521 --->
ACK sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
<--- SIP read from TLS:10.1.0.70:20521 --->
INVITE sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>
Call-ID: 2077399327@10.1.0.70
CSeq: 2 INVITE
Contact: <sip:suzy@10.1.0.70:20521;transport=TLS>
Authorization: Digest username="suzy", realm="asterisk", nonce="xxx", uri="sip:9272@10.1.0.1:5061", response="aada6fe94385b1720d00b69f8f170407", algorithm=MD5
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T22P 7.72.0.80
Supported: replaces
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 602
v=0
o=- 20001 20001 IN IP4 10.1.0.70
s=SDP data
c=IN IP4 10.1.0.70
t=0 0
m=audio 11782 RTP/AVP 97 102 0 8 18 9 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:M2FhYjgyYmI0YWRmZmQ1MjM0MDMyN2ZjYWIxMTI0
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:NzFkYWQ5OGI1NDI3MmY4NjZlNTZjYjIzNDZmNGQ3
a=crypto:3 F8_128_HMAC_SHA1_80 inline:NjFiNzU4AAAzZmVlY2VmZDZjYmVlNTE1MTk4Y2M5
a=rtpmap:97 iLBC/8000
a=rtpmap:102 iLBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv
<------------->
--- (15 headers 20 lines) ---
Sending to 10.1.0.70:20521 (NAT)
Using INVITE request as basis request - 2077399327@10.1.0.70
Found peer 'suzy' for 'suzy' from 10.1.0.70:20521
== Using SIP RTP CoS mark 5
Found RTP audio format 97
Found RTP audio format 102
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 101
Found audio description format iLBC for ID 97
Found audio description format iLBC for ID 102
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format telephone-event for ID 101
[Feb 27 23:31:53] WARNING[29890][C-00002e7c]: chan_sip.c:10715 process_sdp: Failed to receive SDP offer/answer with required SRTP crypto attributes for audio
<--- Reliably Transmitting (NAT) to 10.1.0.70:20521 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321;received=10.1.0.70;rport=20521
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 2 INVITE
Server: PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2077399327@10.1.0.70' in 6400 ms (Method: INVITE)
<--- SIP read from TLS:10.1.0.70:20521 --->
ACK sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 2 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
<--- SIP read from TLS:10.1.0.70:20521 --->
<------------->
xabean*CLI>
xabean*CLI>
xabean*CLI>
<--- SIP read from TLS:10.1.0.70:20521 --->
INVITE sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>
Call-ID: 2077399327@10.1.0.70
CSeq: 1 INVITE
Contact: <sip:suzy@10.1.0.70:20521;transport=TLS>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T22P 7.72.0.80
Supported: replaces
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 602
v=0
o=- 20001 20001 IN IP4 10.1.0.70
s=SDP data
c=IN IP4 10.1.0.70
t=0 0
m=audio 11782 RTP/AVP 97 102 0 8 18 9 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:M2FhYjgyYmI0YWRmZmQ1MjM0MDMyN2ZjYWIxMTI0
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:NzFkYWQ5OGI1NDI3MmY4NjZlNTZjYjIzNDZmNGQ3
a=crypto:3 F8_128_HMAC_SHA1_80 inline:NjFiNzU4AAAzZmVlY2VmZDZjYmVlNTE1MTk4Y2M5
a=rtpmap:97 iLBC/8000
a=rtpmap:102 iLBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 20 lines) ---
Sending to 10.1.0.70:20521 (no NAT)
Sending to 10.1.0.70:20521 (no NAT)
Using INVITE request as basis request - 2077399327@10.1.0.70
Found peer 'suzy' for 'suzy' from 10.1.0.70:20521
<--- Reliably Transmitting (NAT) to 10.1.0.70:20521 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217;received=10.1.0.70;rport=20521
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 1 INVITE
Server: PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="xxx"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2077399327@10.1.0.70' in 6400 ms (Method: INVITE)
<--- SIP read from TLS:10.1.0.70:20521 --->
ACK sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK969984217
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
<--- SIP read from TLS:10.1.0.70:20521 --->
INVITE sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>
Call-ID: 2077399327@10.1.0.70
CSeq: 2 INVITE
Contact: <sip:suzy@10.1.0.70:20521;transport=TLS>
Authorization: Digest username="suzy", realm="asterisk", nonce="xxx", uri="sip:9272@10.1.0.1:5061", response="aada6fe94385b1720d00b69f8f170407", algorithm=MD5
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T22P 7.72.0.80
Supported: replaces
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 602
v=0
o=- 20001 20001 IN IP4 10.1.0.70
s=SDP data
c=IN IP4 10.1.0.70
t=0 0
m=audio 11782 RTP/AVP 97 102 0 8 18 9 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:M2FhYjgyYmI0YWRmZmQ1MjM0MDMyN2ZjYWIxMTI0
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:NzFkYWQ5OGI1NDI3MmY4NjZlNTZjYjIzNDZmNGQ3
a=crypto:3 F8_128_HMAC_SHA1_80 inline:NjFiNzU4AAAzZmVlY2VmZDZjYmVlNTE1MTk4Y2M5
a=rtpmap:97 iLBC/8000
a=rtpmap:102 iLBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv
<------------->
--- (15 headers 20 lines) ---
Sending to 10.1.0.70:20521 (NAT)
Using INVITE request as basis request - 2077399327@10.1.0.70
Found peer 'suzy' for 'suzy' from 10.1.0.70:20521
== Using SIP RTP CoS mark 5
Found RTP audio format 97
Found RTP audio format 102
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 101
Found audio description format iLBC for ID 97
Found audio description format iLBC for ID 102
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format telephone-event for ID 101
XXX [Feb 27 23:31:53] WARNING[29890][C-00002e7c]: chan_sip.c:10715 process_sdp: Failed to receive SDP offer/answer with required SRTP crypto attributes for audio
<--- Reliably Transmitting (NAT) to 10.1.0.70:20521 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321;received=10.1.0.70;rport=20521
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 2 INVITE
Server: PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2077399327@10.1.0.70' in 6400 ms (Method: INVITE)
<--- SIP read from TLS:10.1.0.70:20521 --->
ACK sip:9272@10.1.0.1:5061 SIP/2.0
Via: SIP/2.0/TLS 10.1.0.70:20521;branch=z9hG4bK1172524321
From: "suzy" <sip:suzy@10.1.0.1:5061>;tag=2106274390
To: <sip:9272@10.1.0.1:5061>;tag=as04667173
Call-ID: 2077399327@10.1.0.70
CSeq: 2 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment