Asterisk 13, opus passthrough fails with both pjsip/chan_sip

Hello! Based on the information provided at the https://wiki.asterisk.org/wiki/display/AST/New+in+12 page, I understand that by loading the res_format_attr_opus.so module, Asterisk should support OPUS codec passthrough.

I haven’t been able to make it work. In my endpoints/peers definitions, I’m using the following lines to force OPUS passthrough:

disallow=all
allow=opus

I trying to place a call between two clients supporting OPUS, Bria on an iPhone and Jitsi 2.5 on Ubuntu.

Using chan_sip:

Using Jitsi to call, Asterisk returns 488, Not acceptable here, because “No compatible codecs, not accepting this offer!”:

<--- SIP read from UDP:192.168.0.102:5060 --->
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
CSeq: 1 INVITE
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-309cfc3c590abb598bd431f9a7f6c3ce
Max-Forwards: 70
Contact: "maxim-E6530" <sip:maxim-E6530@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10>
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 834

v=0
o=maxim-E6530-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5022 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5024 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]
<------------->
--- (11 headers 29 lines) ---
Sending to 192.168.0.102:5060 (NAT)
Sending to 192.168.0.102:5060 (NAT)
Using INVITE request as basis request - d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
Found peer 'maxim-E6530' for 'maxim-E6530' from 192.168.0.102:5060

<--- Reliably Transmitting (NAT) to 192.168.0.102:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-309cfc3c590abb598bd431f9a7f6c3ce;received=192.168.0.102;rport=5060
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>;tag=as315effa0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
CSeq: 1 INVITE
Server: Asterisk PBX SVN--r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="26c44c22"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'd863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:192.168.0.102:5060 --->
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>;tag=as315effa0
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-309cfc3c590abb598bd431f9a7f6c3ce
CSeq: 1 ACK
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:192.168.0.102:5060 --->
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
CSeq: 2 INVITE
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>
Max-Forwards: 70
Contact: "maxim-E6530" <sip:maxim-E6530@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10>
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-63960b81c92b779e9ad8249c86616391
Authorization: Digest username="maxim-E6530",realm="asterisk",nonce="26c44c22",uri="sip:yuki@192.168.0.10",response="57717c8fe084018835c03afc7638ced2",algorithm=MD5
Content-Length: 834

v=0
o=maxim-E6530-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5022 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5024 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]
<------------->
--- (12 headers 29 lines) ---
Sending to 192.168.0.102:5060 (NAT)
Using INVITE request as basis request - d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
Found peer 'maxim-E6530' for 'maxim-E6530' from 192.168.0.102:5060
  == Using SIP RTP CoS mark 5
Found RTP audio format 96
Found RTP audio format 97
Found RTP audio format 98
Found RTP audio format 9
Found RTP audio format 100
Found RTP audio format 102
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 103
Found RTP audio format 3
Found RTP audio format 104
Found RTP audio format 101
Found audio description format opus for ID 96
Found unknown media description format SILK for ID 97
Found unknown media description format SILK for ID 98
Found audio description format G722 for ID 9
Found audio description format speex for ID 100
Found audio description format speex for ID 102
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format iLBC for ID 103
Found audio description format GSM for ID 3
Found audio description format speex for ID 104
Found audio description format telephone-event for ID 101
Found RTP video format 105
Found RTP video format 99
Found video description format H264 for ID 105
Found video description format H264 for ID 99
[Oct 11 21:19:07] NOTICE[8479][C-00000005]: chan_sip.c:10574 process_sdp: No compatible codecs, not accepting this offer!

<--- Reliably Transmitting (NAT) to 192.168.0.102:5060 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-63960b81c92b779e9ad8249c86616391;received=192.168.0.102;rport=5060
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>;tag=as315effa0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
CSeq: 2 INVITE
Server: Asterisk PBX SVN--r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'd863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:192.168.0.102:5060 --->
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: d863f61afb17c049c29f5098148f49d5@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: "maxim-E6530" <sip:maxim-E6530@192.168.0.10>;tag=b867832d
To: <sip:yuki@192.168.0.10>;tag=as315effa0
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-63960b81c92b779e9ad8249c86616391
CSeq: 2 ACK
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:192.168.0.101:51213 --->

<------------->
Really destroying SIP dialog 'c6fd1e1642b09f2bfbf089cdbfe537ca@0:0:0:0:0:0:0:0' Method: OPTIONS
Really destroying SIP dialog 'f3f1091be7f70648883dd43c12eeb8f4@0:0:0:0:0:0:0:0' Method: REGISTER

Using Bria Beta for iOS, which supposedly supports the latest SIP drafts regarding OPUS codec and its SDP definition [1, 2], I also get the “Not acceptable here” from Asterisk:

<--- SIP read from UDP:192.168.0.101:51213 --->
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:51213;rport;branch=z9hG4bKPjhfynTykaa0K32eNVutAmP-gDWjXoj6Ky
Max-Forwards: 70
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>
Contact: <sip:yuki-iPhone@192.168.0.101:51213;ob>
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4523 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.2.0
Content-Type: application/sdp
Content-Length: 337

v=0
o=- 3622065282 3622065282 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4002 RTP/AVP 111 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
--- (13 headers 14 lines) ---
Sending to 192.168.0.101:51213 (NAT)
Sending to 192.168.0.101:51213 (NAT)
Using INVITE request as basis request - Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
Found peer 'yuki-iPhone' for 'yuki-iPhone' from 192.168.0.101:51213

<--- Reliably Transmitting (NAT) to 192.168.0.101:51213 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.101:51213;branch=z9hG4bKPjhfynTykaa0K32eNVutAmP-gDWjXoj6Ky;received=192.168.0.101;rport=51213
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>;tag=as10bca41e
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4523 INVITE
Server: Asterisk PBX SVN--r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3968b226"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:192.168.0.101:51213 --->
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:51213;rport;branch=z9hG4bKPjhfynTykaa0K32eNVutAmP-gDWjXoj6Ky
Max-Forwards: 70
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>;tag=as10bca41e
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4523 ACK
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:192.168.0.101:51213 --->
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:51213;rport;branch=z9hG4bKPjOg7zYw4gpdfhoucpwsrGtIr6tyZw4QTY
Max-Forwards: 70
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>
Contact: <sip:yuki-iPhone@192.168.0.101:51213;ob>
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4524 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.2.0
Authorization: Digest username="yuki-iPhone", realm="asterisk", nonce="3968b226", uri="sip:maxim@192.168.0.10", response="d1e89bfa97b44129b7aa8acadc3d8e82", algorithm=MD5
Content-Type: application/sdp
Content-Length: 337

v=0
o=- 3622065282 3622065282 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4002 RTP/AVP 111 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
--- (14 headers 14 lines) ---
Sending to 192.168.0.101:51213 (NAT)
Using INVITE request as basis request - Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
Found peer 'yuki-iPhone' for 'yuki-iPhone' from 192.168.0.101:51213
  == Using SIP RTP CoS mark 5
Found RTP audio format 111
Found RTP audio format 9
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 101
Found audio description format OPUS for ID 111
Found audio description format G722 for ID 9
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
[Oct 11 21:14:41] NOTICE[8479][C-00000002]: chan_sip.c:10574 process_sdp: No compatible codecs, not accepting this offer!

<--- Reliably Transmitting (NAT) to 192.168.0.101:51213 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 192.168.0.101:51213;branch=z9hG4bKPjOg7zYw4gpdfhoucpwsrGtIr6tyZw4QTY;received=192.168.0.101;rport=51213
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>;tag=as10bca41e
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4524 INVITE
Server: Asterisk PBX SVN--r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:192.168.0.101:51213 --->
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:51213;rport;branch=z9hG4bKPjOg7zYw4gpdfhoucpwsrGtIr6tyZw4QTY
Max-Forwards: 70
From: <sip:yuki-iPhone@192.168.0.10>;tag=amuYm6zXJUf56vgmO4mUbvRHkbvdFrxu
To: <sip:maxim@192.168.0.10>;tag=as10bca41e
Call-ID: Mb0i0o0RgLzPvAtfYsrXd0bv4ujkLe6-
CSeq: 4524 ACK
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

Using pjsip:

When I place a call using Bria Beta, still the same situation, with Asterisk returning “SIP/2.0 488 Not Acceptable Here”, because “res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing)) and incoming SDP((opus))”:

[code]<— Received SIP request (915 bytes) from UDP:192.168.0.101:50876 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;branch=z9hG4bKPjgUo.ufvcpCZTB2jy.VpUWesSw4x7mGLX
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10
Contact: sip:yuki@192.168.0.101:50876;ob
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
CSeq: 11459 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.2.0
Content-Type: application/sdp
Content-Length: 337

v=0
o=- 3622066613 3622066613 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4004 RTP/AVP 111 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<— Transmitting SIP response (518 bytes) to UDP:192.168.0.101:50876 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;received=192.168.0.101;branch=z9hG4bKPjgUo.ufvcpCZTB2jy.VpUWesSw4x7mGLX
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=z9hG4bKPjgUo.ufvcpCZTB2jy.VpUWesSw4x7mGLX
CSeq: 11459 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413077813/46f9ceb73c1f9e9499311c64c359b5e7”,opaque=“7cf660eb244793a5”,algorithm=md5,qop="auth"
Content-Length: 0

<— Received SIP request (373 bytes) from UDP:192.168.0.101:50876 —>
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;branch=z9hG4bKPjgUo.ufvcpCZTB2jy.VpUWesSw4x7mGLX
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=z9hG4bKPjgUo.ufvcpCZTB2jy.VpUWesSw4x7mGLX
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
CSeq: 11459 ACK
Content-Length: 0

<— Received SIP request (1208 bytes) from UDP:192.168.0.101:50876 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10
Contact: sip:yuki@192.168.0.101:50876;ob
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
CSeq: 11460 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.2.0
Authorization: Digest username=“yuki”, realm=“asterisk”, nonce=“1413077813/46f9ceb73c1f9e9499311c64c359b5e7”, uri="sip:maxim@192.168.0.10", response=“c6e316724a277d58a0861f832e726500”, algorithm=md5, cnonce=“jgKNdShdeAW-ppPMFBAb3nI7IsEqOx2K”, opaque=“7cf660eb244793a5”, qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 337

v=0
o=- 3622066613 3622066613 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4004 RTP/AVP 111 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<— Transmitting SIP response (319 bytes) to UDP:192.168.0.101:50876 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;received=192.168.0.101;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10
CSeq: 11460 INVITE
Content-Length: 0

-- Executing [maxim@internal:1] Dial("PJSIP/yuki-00000003", "PJSIP/maxim/sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10") in new stack

<— Transmitting SIP request (941 bytes) to UDP:192.168.0.102:5060 —>
INVITE sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj0db8a52e-8fc7-463e-8543-dc8bc12c792f
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10
Contact: sip:1375fb49-65f5-4d7b-aba5-fe40e2ae06fb@192.168.0.10:5060
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
CSeq: 1893 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 239

v=0
o=- 632385181 632385181 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 12314 RTP/AVP 107 101
a=rtpmap:107 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

-- Called PJSIP/maxim/sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.101:50876 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;received=192.168.0.101;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=1ba0cf71-5f05-4390-9f1e-e0d6f4558e4e
CSeq: 11460 INVITE
Contact: sip:192.168.0.10:5060
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Content-Length: 0

<— Received SIP response (503 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj0db8a52e-8fc7-463e-8543-dc8bc12c792f;received=192.168.0.10
CSeq: 1893 INVITE
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000004 is ringing

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.101:50876 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;received=192.168.0.101;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=1ba0cf71-5f05-4390-9f1e-e0d6f4558e4e
CSeq: 11460 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: sip:192.168.0.10:5060
Content-Length: 0

<— Received SIP response (503 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj0db8a52e-8fc7-463e-8543-dc8bc12c792f;received=192.168.0.10
CSeq: 1893 INVITE
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000004 is ringing

<— Received SIP response (503 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj0db8a52e-8fc7-463e-8543-dc8bc12c792f;received=192.168.0.10
CSeq: 1893 INVITE
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000004 is ringing

<— Received SIP response (729 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 200 OK
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj0db8a52e-8fc7-463e-8543-dc8bc12c792f;received=192.168.0.10
CSeq: 1893 INVITE
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 198

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5028 RTP/AVP 107 101
a=rtpmap:107 opus/48000/2
a=fmtp:107 usedtx=1
a=rtpmap:101 telephone-event/8000

[Oct 11 21:36:55] WARNING[8884]: res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing)) and incoming SDP((opus))
<— Transmitting SIP request (410 bytes) to UDP:192.168.0.102:5060 —>
ACK sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjba2127bc-92aa-48d9-9a9e-b7a1f1dffd58
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
CSeq: 1893 ACK
Content-Length: 0

-- PJSIP/maxim-00000004 answered PJSIP/yuki-00000003
-- Channel PJSIP/yuki-00000003 joined 'simple_bridge' basic-bridge <bfc3f99d-367d-4158-abde-d872b367c3fa>
-- Channel PJSIP/yuki-00000003 left 'simple_bridge' basic-bridge <bfc3f99d-367d-4158-abde-d872b367c3fa>

== Spawn extension (internal, maxim, 1) exited non-zero on ‘PJSIP/yuki-00000003’
<— Transmitting SIP response (556 bytes) to UDP:192.168.0.101:50876 —>
SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;received=192.168.0.101;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=1ba0cf71-5f05-4390-9f1e-e0d6f4558e4e
CSeq: 11460 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Reason: Q.850;cause=58
Content-Length: 0

<— Transmitting SIP request (434 bytes) to UDP:192.168.0.102:5060 —>
BYE sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj10210867-579a-42a2-8638-4421f8339fae
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
CSeq: 1894 BYE
Reason: Q.850;cause=58
Content-Length: 0

<— Received SIP response (495 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 200 OK
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=70e1cd5e
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj10210867-579a-42a2-8638-4421f8339fae;received=192.168.0.10
CSeq: 1894 BYE
Call-ID: e8fc80cb-78eb-4f12-bc26-50d050f958a4
From: sip:yuki@192.168.0.10;tag=ca906932-f514-4e3d-aa35-f7204d386c5f
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

<— Received SIP request (368 bytes) from UDP:192.168.0.101:50876 —>
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:50876;rport;branch=z9hG4bKPjrwXQL2BJRdVuC83vaKnntHbXVNGWWqgk
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=J5xPmeeR015Onx942d.UWW4Idf.2GDxA
To: sip:maxim@192.168.0.10;tag=1ba0cf71-5f05-4390-9f1e-e0d6f4558e4e
Call-ID: KtwYhVSEL4tB0WMPSfkA.9M1ne4lPJWK
CSeq: 11460 ACK
Content-Length: 0

<— Received SIP request (547 bytes) from UDP:192.168.0.102:5060 —>
OPTIONS sip:192.168.0.10 SIP/2.0
Call-ID: 7b7a86461c35740c093856af69e15d70@0:0:0:0:0:0:0:0
CSeq: 7 OPTIONS
From: “maxim” sip:maxim@192.168.0.10;tag=ddd7b7c0
To: “maxim” sip:maxim@192.168.0.10
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-8d3e9907342f5024b1caf2daa7b9106f
Max-Forwards: 70
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Allow: INFO,OPTIONS,BYE,REFER,SUBSCRIBE,ACK,CANCEL,NOTIFY,INVITE
Allow-Events: refer
Content-Length: 0

<— Transmitting SIP response (535 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-8d3e9907342f5024b1caf2daa7b9106f
Call-ID: 7b7a86461c35740c093856af69e15d70@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=ddd7b7c0
To: “maxim” sip:maxim@192.168.0.10;tag=z9hG4bK-323238-8d3e9907342f5024b1caf2daa7b9106f
CSeq: 7 OPTIONS
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413077817/d91a26432a3e898dc12f44aee9ea1461”,opaque=“0c21f7973b12319c”,algorithm=md5,qop="auth"
Content-Length: 0
[/code]

The same thing happens when using Jitsi to initiate the call:

[code]<— Received SIP request (1315 bytes) from UDP:192.168.0.102:5060 —>
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
CSeq: 1 INVITE
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-02eb5cc61a334cf994d1a4c8e41b85cd
Max-Forwards: 70
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 828

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5032 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5034 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]

<— Transmitting SIP response (525 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-02eb5cc61a334cf994d1a4c8e41b85cd
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=z9hG4bK-323238-02eb5cc61a334cf994d1a4c8e41b85cd
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413078591/4b753b1e806b932930f259a8e7918fc7”,opaque=“4a2b903f799df842”,algorithm=md5,qop="auth"
Content-Length: 0

<— Received SIP request (372 bytes) from UDP:192.168.0.102:5060 —>
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=z9hG4bK-323238-02eb5cc61a334cf994d1a4c8e41b85cd
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-02eb5cc61a334cf994d1a4c8e41b85cd
CSeq: 1 ACK
Content-Length: 0

<— Received SIP request (1570 bytes) from UDP:192.168.0.102:5060 —>
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
CSeq: 2 INVITE
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10
Max-Forwards: 70
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
Authorization: Digest username=“maxim”,realm=“asterisk”,nonce=“1413078591/4b753b1e806b932930f259a8e7918fc7”,uri=“sip:yuki@192.168.0.10”,response=“d2b5c0cfab64fe31e8b86112a81a39ef”,algorithm=md5,opaque=“4a2b903f799df842”,qop=auth,cnonce=“xyz”,nc=00000001
Content-Length: 828

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5032 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5034 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]

<— Transmitting SIP response (320 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10
CSeq: 2 INVITE
Content-Length: 0

-- Executing [yuki@internal:1] Dial("PJSIP/maxim-00000007", "PJSIP/yuki/sip:yuki@192.168.0.101:50876;ob") in new stack

<— Transmitting SIP request (886 bytes) to UDP:192.168.0.101:50876 —>
INVITE sip:yuki@192.168.0.101:50876;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj1d935b79-086b-41cf-85dc-30c31c61699c
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob
Contact: sip:4432aad5-927e-469e-8b4a-c8434011bda2@192.168.0.10:5060
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
CSeq: 24581 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 1812192121 1812192121 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 10794 RTP/AVP 107 101
a=rtpmap:107 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

-- Called PJSIP/yuki/sip:yuki@192.168.0.101:50876;ob

<— Transmitting SIP response (507 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=c48fa236-b42e-43cc-815e-c64b1222bb21
CSeq: 2 INVITE
Contact: sip:192.168.0.10:5060
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Content-Length: 0

<— Received SIP response (345 bytes) from UDP:192.168.0.101:50876 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj1d935b79-086b-41cf-85dc-30c31c61699c
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob
CSeq: 24581 INVITE
Content-Length: 0

<— Received SIP response (525 bytes) from UDP:192.168.0.101:50876 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj1d935b79-086b-41cf-85dc-30c31c61699c
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob;tag=VoGYhLLazv32lTRqxmTQdvTTb9ktMK2K
CSeq: 24581 INVITE
Contact: sip:yuki@192.168.0.101:50876;ob
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0

-- PJSIP/yuki-00000008 is ringing

<— Transmitting SIP response (507 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=c48fa236-b42e-43cc-815e-c64b1222bb21
CSeq: 2 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: sip:192.168.0.10:5060
Content-Length: 0

<— Received SIP request (548 bytes) from UDP:192.168.0.102:5060 —>
OPTIONS sip:192.168.0.10 SIP/2.0
Call-ID: cd3034aeed7c93f8ebaa81f51f95dcb1@0:0:0:0:0:0:0:0
CSeq: 38 OPTIONS
From: “maxim” sip:maxim@192.168.0.10;tag=1a6958cf
To: “maxim” sip:maxim@192.168.0.10
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-dc1883ce536e7b5c3bbc90fb690c2528
Max-Forwards: 70
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Allow: INFO,OPTIONS,BYE,REFER,SUBSCRIBE,ACK,CANCEL,NOTIFY,INVITE
Allow-Events: refer
Content-Length: 0

<— Transmitting SIP response (536 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-dc1883ce536e7b5c3bbc90fb690c2528
Call-ID: cd3034aeed7c93f8ebaa81f51f95dcb1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=1a6958cf
To: “maxim” sip:maxim@192.168.0.10;tag=z9hG4bK-323238-dc1883ce536e7b5c3bbc90fb690c2528
CSeq: 38 OPTIONS
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413078592/0d0c70c0dd459bcab2113475d2058026”,opaque=“3ce491da033c540d”,algorithm=md5,qop="auth"
Content-Length: 0

<— Received SIP response (867 bytes) from UDP:192.168.0.101:50876 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj1d935b79-086b-41cf-85dc-30c31c61699c
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob;tag=VoGYhLLazv32lTRqxmTQdvTTb9ktMK2K
CSeq: 24581 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Contact: sip:yuki@192.168.0.101:50876;ob
Supported: replaces, 100rel, timer, norefersub
Content-Type: application/sdp
Content-Length: 265

v=0
o=- 3622067391 3622067392 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4008 RTP/AVP 107 101
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:107 OPUS/48000/2
a=fmtp:107 maxplaybackrate=32000;useinbandfec=1

[Oct 11 21:49:56] WARNING[8884]: res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing)) and incoming SDP((opus))
<— Transmitting SIP request (377 bytes) to UDP:192.168.0.101:50876 —>
ACK sip:yuki@192.168.0.101:50876;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj275c865d-71bc-432d-9814-76828ad10ed1
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob;tag=VoGYhLLazv32lTRqxmTQdvTTb9ktMK2K
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
CSeq: 24581 ACK
Content-Length: 0

-- PJSIP/yuki-00000008 answered PJSIP/maxim-00000007
-- Channel PJSIP/maxim-00000007 joined 'simple_bridge' basic-bridge <41b76236-5f32-4415-9874-4ad7ab96275d>
-- Channel PJSIP/maxim-00000007 left 'simple_bridge' basic-bridge <41b76236-5f32-4415-9874-4ad7ab96275d>

== Spawn extension (internal, yuki, 1) exited non-zero on ‘PJSIP/maxim-00000007’
<— Transmitting SIP response (557 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=c48fa236-b42e-43cc-815e-c64b1222bb21
CSeq: 2 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Reason: Q.850;cause=58
Content-Length: 0

<— Transmitting SIP request (401 bytes) to UDP:192.168.0.101:50876 —>
BYE sip:yuki@192.168.0.101:50876;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj29546cfe-934a-4a1a-934a-0cd62297a3a2
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob;tag=VoGYhLLazv32lTRqxmTQdvTTb9ktMK2K
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
CSeq: 24582 BYE
Reason: Q.850;cause=58
Content-Length: 0

<— Received SIP response (375 bytes) from UDP:192.168.0.101:50876 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj29546cfe-934a-4a1a-934a-0cd62297a3a2
Call-ID: 2120fbf7-2961-4874-a935-b1b9c4585a8d
From: “maxim” sip:maxim@192.168.0.10;tag=df71c49e-7fdf-4bf2-b2d2-47bacb2cc878
To: sip:yuki@192.168.0.101;ob;tag=VoGYhLLazv32lTRqxmTQdvTTb9ktMK2K
CSeq: 24582 BYE
Content-Length: 0

<— Received SIP request (361 bytes) from UDP:192.168.0.102:5060 —>
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: 361647269934352e638c98f8b63be1c1@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: “maxim” sip:maxim@192.168.0.10;tag=743dea08
To: sip:yuki@192.168.0.10;tag=c48fa236-b42e-43cc-815e-c64b1222bb21
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-89531c09ff7e96562560b2da50ebb84c
CSeq: 2 ACK
Content-Length: 0
[/code]

  1. datatracker.ietf.org/doc/draft- … ude_text=1
  2. support.counterpath.com/respons … ment-24875

The following happen when I use the official (non beta) release of Bria (Bria iOS 3.1.2) which is declaring OPUS in its SDP the old fashioned way (opus/48000 vs opus/48000/2, and a bunch of other parameters too).
Using chan_sip:
Calling with Bria or Jitsi results in “SIP/2.0 488 Not acceptable here” because “chan_sip.c:10574 process_sdp: No compatible codecs, not accepting this offer!”:

[code]<— SIP read from TCP:192.168.0.101:58968 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.101:58968;rport;branch=z9hG4bKPj5ZeSPFTI5CunFB8ovsGYd1-M3EAjrrG.;alias
Max-Forwards: 70
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10
Contact: sip:yuki-iPhone@192.168.0.101:58968;transport=TCP;ob
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4099 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.2
Content-Type: application/sdp
Content-Length: 447

v=0
o=- 3622070942 3622070942 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
— (13 headers 18 lines) —
Sending to 192.168.0.101:58968 (NAT)
Sending to 192.168.0.101:58968 (NAT)
Using INVITE request as basis request - jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
Found peer ‘yuki-iPhone’ for ‘yuki-iPhone’ from 192.168.0.101:58968

<— Reliably Transmitting (NAT) to 192.168.0.101:58968 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.0.101:58968;branch=z9hG4bKPj5ZeSPFTI5CunFB8ovsGYd1-M3EAjrrG.;alias;received=192.168.0.101;rport=58968
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10;tag=as1a9000d0
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4099 INVITE
Server: Asterisk PBX SVN–r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="3fc1961e"
Content-Length: 0

<------------>
Scheduling destruction of SIP dialog ‘jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ’ in 32000 ms (Method: INVITE)

<— SIP read from TCP:192.168.0.101:58968 —>
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.101:58968;rport;branch=z9hG4bKPj5ZeSPFTI5CunFB8ovsGYd1-M3EAjrrG.;alias
Max-Forwards: 70
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10;tag=as1a9000d0
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4099 ACK
Content-Length: 0

<------------->
— (8 headers 0 lines) —

<— SIP read from TCP:192.168.0.101:58968 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.101:58968;rport;branch=z9hG4bKPjdi3YGh8oNKgiO3fdeYbCqRaFEQsRDG2E;alias
Max-Forwards: 70
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10
Contact: sip:yuki-iPhone@192.168.0.101:58968;transport=TCP;ob
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4100 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.2
Authorization: Digest username=“yuki-iPhone”, realm=“asterisk”, nonce=“3fc1961e”, uri="sip:maxim@192.168.0.10", response=“5b9c4250730e48e9e9a3a229f638b481”, algorithm=MD5
Content-Type: application/sdp
Content-Length: 447

v=0
o=- 3622070942 3622070942 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
— (14 headers 18 lines) —
Sending to 192.168.0.101:58968 (NAT)
Using INVITE request as basis request - jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
Found peer ‘yuki-iPhone’ for ‘yuki-iPhone’ from 192.168.0.101:58968
== Using SIP RTP CoS mark 5
Found RTP audio format 111
Found RTP audio format 110
Found RTP audio format 109
Found RTP audio format 9
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 101
Found audio description format OPUS for ID 111
Found unknown media description format SILK for ID 110
Found unknown media description format SILK for ID 109
Found audio description format G722 for ID 9
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
[Oct 11 22:49:02] NOTICE[9888][C-00000002]: chan_sip.c:10574 process_sdp: No compatible codecs, not accepting this offer!

<— Reliably Transmitting (NAT) to 192.168.0.101:58968 —>
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/TCP 192.168.0.101:58968;branch=z9hG4bKPjdi3YGh8oNKgiO3fdeYbCqRaFEQsRDG2E;alias;received=192.168.0.101;rport=58968
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10;tag=as1a9000d0
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4100 INVITE
Server: Asterisk PBX SVN–r424581M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0

<------------>
Scheduling destruction of SIP dialog ‘jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ’ in 32000 ms (Method: INVITE)

<— SIP read from TCP:192.168.0.101:58968 —>
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/TCP 192.168.0.101:58968;rport;branch=z9hG4bKPjdi3YGh8oNKgiO3fdeYbCqRaFEQsRDG2E;alias
Max-Forwards: 70
From: sip:yuki-iPhone@192.168.0.10;tag=nS7zORA6Qk-muKMdyvF5eA9JmgOzqsCO
To: sip:maxim@192.168.0.10;tag=as1a9000d0
Call-ID: jUfr2vVdUhPp.npr0nvebMhixUEQLAeJ
CSeq: 4100 ACK
Content-Length: 0
[/code]

Using pjsip:

Calling with Bria or Jitsi - Something strange happens. The call goes through, even though “res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing))”. There is no sound on either endpoint. A bit farther in the sip dialog we can see that “codec.c:366 ast_codec_samples_count: Unable to calculate samples for codec opus”:

[code]<— Received SIP request (1022 bytes) from UDP:192.168.0.101:62649 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;branch=z9hG4bKPj.JTJ63WRIgD7Zar3Qrf0A5tgL-wYXY9o
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10
Contact: sip:yuki@192.168.0.101:62649
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 27605 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.2
Content-Type: application/sdp
Content-Length: 447

v=0
o=- 3622071305 3622071305 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<— Transmitting SIP response (518 bytes) to UDP:192.168.0.101:62649 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;received=192.168.0.101;branch=z9hG4bKPj.JTJ63WRIgD7Zar3Qrf0A5tgL-wYXY9o
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=z9hG4bKPj.JTJ63WRIgD7Zar3Qrf0A5tgL-wYXY9o
CSeq: 27605 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413082505/c45b2d37ed3fc7863748eb557d8ede27”,opaque=“736cce6015bcc166”,algorithm=md5,qop="auth"
Content-Length: 0

<— Received SIP request (373 bytes) from UDP:192.168.0.101:62649 —>
ACK sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;branch=z9hG4bKPj.JTJ63WRIgD7Zar3Qrf0A5tgL-wYXY9o
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=z9hG4bKPj.JTJ63WRIgD7Zar3Qrf0A5tgL-wYXY9o
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 27605 ACK
Content-Length: 0

<— Received SIP request (1315 bytes) from UDP:192.168.0.101:62649 —>
INVITE sip:maxim@192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;branch=z9hG4bKPjAqHD7AY.lgrWsFT240NLJQhx5ntkf8QS
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10
Contact: sip:yuki@192.168.0.101:62649
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 27606 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Bria iOS 3.1.2
Authorization: Digest username=“yuki”, realm=“asterisk”, nonce=“1413082505/c45b2d37ed3fc7863748eb557d8ede27”, uri="sip:maxim@192.168.0.10", response=“88ed1adeec034b2fd594ded751fea936”, algorithm=md5, cnonce=“esb3L…NVRRztD6iK-wmoaUDZWSGTYWD”, opaque=“736cce6015bcc166”, qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 447

v=0
o=- 3622071305 3622071305 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 111 110 109 9 0 8 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:110 SILK/24000
a=fmtp:110 useinbandfec=1
a=rtpmap:109 SILK/16000
a=fmtp:109 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<— Transmitting SIP response (319 bytes) to UDP:192.168.0.101:62649 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;received=192.168.0.101;branch=z9hG4bKPjAqHD7AY.lgrWsFT240NLJQhx5ntkf8QS
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10
CSeq: 27606 INVITE
Content-Length: 0

-- Executing [maxim@internal:1] Dial("PJSIP/yuki-00000000", "PJSIP/maxim/sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10") in new stack

<— Transmitting SIP request (944 bytes) to UDP:192.168.0.102:5060 —>
INVITE sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjd2c45fb7-92e3-4751-9f4e-d5e6bb89c160
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10
Contact: sip:b25f43a2-e14d-4d0c-9e3c-78b8ad47f526@192.168.0.10:5060
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
CSeq: 24047 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 1324894756 1324894756 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 16844 RTP/AVP 107 101
a=rtpmap:107 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

-- Called PJSIP/maxim/sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.101:62649 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;received=192.168.0.101;branch=z9hG4bKPjAqHD7AY.lgrWsFT240NLJQhx5ntkf8QS
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
CSeq: 27606 INVITE
Contact: sip:192.168.0.10:5060
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Content-Length: 0

<— Received SIP response (504 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPjd2c45fb7-92e3-4751-9f4e-d5e6bb89c160;received=192.168.0.10
CSeq: 24047 INVITE
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000001 is ringing

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.101:62649 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;received=192.168.0.101;branch=z9hG4bKPjAqHD7AY.lgrWsFT240NLJQhx5ntkf8QS
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
CSeq: 27606 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: sip:192.168.0.10:5060
Content-Length: 0

<— Received SIP response (504 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPjd2c45fb7-92e3-4751-9f4e-d5e6bb89c160;received=192.168.0.10
CSeq: 24047 INVITE
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000001 is ringing

<— Received SIP response (504 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPjd2c45fb7-92e3-4751-9f4e-d5e6bb89c160;received=192.168.0.10
CSeq: 24047 INVITE
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Length: 0

-- PJSIP/maxim-00000001 is ringing

<— Received SIP response (730 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 200 OK
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPjd2c45fb7-92e3-4751-9f4e-d5e6bb89c160;received=192.168.0.10
CSeq: 24047 INVITE
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 198

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5052 RTP/AVP 107 101
a=rtpmap:107 opus/48000/2
a=fmtp:107 usedtx=1
a=rtpmap:101 telephone-event/8000

[Oct 11 22:55:08] WARNING[10067]: res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing)) and incoming SDP((opus))
<— Transmitting SIP request (411 bytes) to UDP:192.168.0.102:5060 —>
ACK sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjfc9bad19-21e0-45a8-ade3-81dfddc8574b
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
CSeq: 24047 ACK
Content-Length: 0

-- PJSIP/maxim-00000001 answered PJSIP/yuki-00000000
-- Channel PJSIP/yuki-00000000 joined 'simple_bridge' basic-bridge <93638949-153c-4fab-9974-8dc615fa74a1>

<— Transmitting SIP response (824 bytes) to UDP:192.168.0.101:62649 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;received=192.168.0.101;branch=z9hG4bKPjAqHD7AY.lgrWsFT240NLJQhx5ntkf8QS
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
CSeq: 27606 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: sip:192.168.0.10:5060
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 3622071305 3622071307 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 16188 RTP/AVP 111 101
a=rtpmap:111 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

-- Channel PJSIP/maxim-00000001 joined 'simple_bridge' basic-bridge <93638949-153c-4fab-9974-8dc615fa74a1>
   > Bridge 93638949-153c-4fab-9974-8dc615fa74a1: switching from simple_bridge technology to native_rtp

<— Transmitting SIP request (957 bytes) to UDP:192.168.0.102:5060 —>
INVITE sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj88cdc520-a5b2-45b3-9249-04a8b97f2d25
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Contact: sip:b25f43a2-e14d-4d0c-9e3c-78b8ad47f526@192.168.0.10:5060
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
CSeq: 24048 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 1324894756 1324894757 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 107 101
a=rtpmap:107 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

<— Received SIP response (730 bytes) from UDP:192.168.0.102:5060 —>
SIP/2.0 200 OK
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;branch=z9hG4bKPj88cdc520-a5b2-45b3-9249-04a8b97f2d25;received=192.168.0.10
CSeq: 24048 INVITE
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
Contact: “maxim” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 198

v=0
o=maxim-jitsi.org 0 1 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5052 RTP/AVP 107 101
a=rtpmap:107 opus/48000/2
a=fmtp:107 usedtx=1
a=rtpmap:101 telephone-event/8000

[Oct 11 22:55:08] WARNING[10067]: res_pjsip_sdp_rtp.c:250 set_caps: No joint capabilities between our configuration((nothing)) and incoming SDP((opus))
<— Transmitting SIP request (411 bytes) to UDP:192.168.0.102:5060 —>
ACK sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjd7a61536-53ab-4bc6-8b44-b353285735cd
From: sip:yuki@192.168.0.10;tag=0b2de822-cd38-4b1d-ba69-ab578b72a379
To: sip:maxim@192.168.0.102;registering_acc=192_168_0_10;tag=798e816f
Call-ID: cc72a1b7-c75e-4cdf-997b-8adac13373e4
CSeq: 24048 ACK
Content-Length: 0

   > 0x7f40d00106f0 -- Probation passed - setting RTP source address to 192.168.0.101:4000

[Oct 11 22:55:08] WARNING[10098][C-00000000]: codec.c:366 ast_codec_samples_count: Unable to calculate samples for codec opus
[Oct 11 22:55:08] WARNING[10098][C-00000000]: codec.c:366 ast_codec_samples_count: Unable to calculate samples for codec opus
<— Received SIP request (659 bytes) from UDP:192.168.0.101:62649 —>
ACK sip:192.168.0.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.101:62649;rport;branch=z9hG4bKPjpXCUzF2gm.TbtQuHCaIZvkIajqwkWhnD
Max-Forwards: 70
From: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
To: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 27606 ACK
Authorization: Digest username=“yuki”, realm=“asterisk”, nonce=“1413082505/c45b2d37ed3fc7863748eb557d8ede27”, uri=“sip:192.168.0.10:5060”, response=“2d46055118f983dab539573f82784f2a”, algorithm=md5, cnonce=“esb3L…NVRRztD6iK-wmoaUDZWSGTYWD”, opaque=“736cce6015bcc166”, qop=auth, nc=00000002
Content-Length: 0

<— Transmitting SIP request (867 bytes) to UDP:192.168.0.101:62649 —>
INVITE sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjd3e12ae2-cc7b-4879-b9b8-62a5027acc1a
From: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
To: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
Contact: sip:192.168.0.10:5060
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 13970 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 3622071305 3622071308 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.102
t=0 0
m=audio 5052 RTP/AVP 111 101
a=rtpmap:111 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

<— Received SIP response (846 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPjd3e12ae2-cc7b-4879-b9b8-62a5027acc1a
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
From: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
To: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
CSeq: 13970 INVITE
Contact: sip:yuki@192.168.0.101:62649
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Type: application/sdp
Content-Length: 263

v=0
o=- 3622071305 3622071306 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4000 RTP/AVP 111 101
a=sendrecv
a=rtpmap:111 OPUS/48000
a=fmtp:111 maxplaybackrate=32000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

<— Transmitting SIP request (358 bytes) to UDP:192.168.0.101:62649 —>
ACK sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPjfe3597d4-230e-4eee-a793-b99c932c8811
From: sip:maxim@192.168.0.10;tag=d5abb2da-f4b4-4ad4-8130-382cfbddc09d
To: sip:yuki@192.168.0.10;tag=FlNIKBm38cziLJyWjD2zsWCi0WaG5ANq
Call-ID: 3c0cwxpNkpBGoewvufeUuwig9mgw.gSv
CSeq: 13970 ACK
Content-Length: 0
[/code]

If the call originates from Jitsi instead of Bria, I also get the “SIP/2.0 488 Not Acceptable Here”, but without any hint about why:

[code]<— Received SIP request (1313 bytes) from UDP:192.168.0.102:5060 —>
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
CSeq: 1 INVITE
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-3dbcb3a55d1f1c264a47325501333c62
Max-Forwards: 70
Contact: “Maco” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Content-Length: 828

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5058 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5061 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]

<— Transmitting SIP response (524 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-3dbcb3a55d1f1c264a47325501333c62
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=z9hG4bK-323238-3dbcb3a55d1f1c264a47325501333c62
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1413082940/e7231d4ed89829bb234240f19ceb6d2b”,opaque=“7de6060b07972690”,algorithm=md5,qop="auth"
Content-Length: 0

<— Received SIP request (371 bytes) from UDP:192.168.0.102:5060 —>
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=z9hG4bK-323238-3dbcb3a55d1f1c264a47325501333c62
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-3dbcb3a55d1f1c264a47325501333c62
CSeq: 1 ACK
Content-Length: 0

<— Received SIP request (1568 bytes) from UDP:192.168.0.102:5060 —>
INVITE sip:yuki@192.168.0.10 SIP/2.0
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
CSeq: 2 INVITE
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10
Max-Forwards: 70
Contact: “Maco” sip:maxim@192.168.0.102:5060;transport=udp;registering_acc=192_168_0_10
User-Agent: Jitsi2.5.5317Windows 7
Content-Type: application/sdp
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
Authorization: Digest username=“maxim”,realm=“asterisk”,nonce=“1413082940/e7231d4ed89829bb234240f19ceb6d2b”,uri=“sip:yuki@192.168.0.10”,response=“7de5a0376b9f1c3116e8cf17d354cbe0”,algorithm=md5,opaque=“7de6060b07972690”,qop=auth,cnonce=“xyz”,nc=00000001
Content-Length: 828

v=0
o=maxim-jitsi.org 0 0 IN IP4 192.168.0.102
s=-
c=IN IP4 192.168.0.102
t=0 0
m=audio 5058 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5061 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1920],y=[0-1080]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1920],y=[0-1080]]

<— Transmitting SIP response (319 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10
CSeq: 2 INVITE
Content-Length: 0

-- Executing [yuki@internal:1] Dial("PJSIP/maxim-00000004", "PJSIP/yuki/sip:yuki@192.168.0.101:62649") in new stack
-- Called PJSIP/yuki/sip:yuki@192.168.0.101:62649

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=95ee9c24-6e88-4af3-9516-c3a12f0734b1
CSeq: 2 INVITE
Contact: sip:192.168.0.10:5060
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Content-Length: 0

<— Transmitting SIP request (878 bytes) to UDP:192.168.0.101:62649 —>
INVITE sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj5c62ef4c-65bd-4ae2-9e8e-a1772398ab3c
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101
Contact: sip:8d868b1a-cfe2-4e62-b01c-6d6684886aea@192.168.0.10:5060
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
CSeq: 7030 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 241

v=0
o=- 1930548901 1930548901 IN IP4 192.168.0.10
s=Asterisk
c=IN IP4 192.168.0.10
t=0 0
m=audio 18884 RTP/AVP 107 101
a=rtpmap:107 opus/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

<— Received SIP response (340 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj5c62ef4c-65bd-4ae2-9e8e-a1772398ab3c
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101
CSeq: 7030 INVITE
Content-Length: 0

<— Received SIP response (517 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj5c62ef4c-65bd-4ae2-9e8e-a1772398ab3c
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
CSeq: 7030 INVITE
Contact: sip:yuki@192.168.0.101:62649
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0

-- PJSIP/yuki-00000005 is ringing

<— Transmitting SIP response (506 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=95ee9c24-6e88-4af3-9516-c3a12f0734b1
CSeq: 2 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: sip:192.168.0.10:5060
Content-Length: 0

<— Received SIP response (857 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj5c62ef4c-65bd-4ae2-9e8e-a1772398ab3c
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
CSeq: 7030 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Contact: sip:yuki@192.168.0.101:62649
Supported: replaces, 100rel, timer, norefersub
Content-Type: application/sdp
Content-Length: 263

v=0
o=- 3622071740 3622071741 IN IP4 192.168.0.101
s=cpc_med
c=IN IP4 192.168.0.101
t=0 0
m=audio 4004 RTP/AVP 107 101
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:107 OPUS/48000
a=fmtp:107 maxplaybackrate=32000;useinbandfec=1

<— Transmitting SIP request (369 bytes) to UDP:192.168.0.101:62649 —>
ACK sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj021b913a-4258-45be-aa65-fbee99c6778c
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
CSeq: 7030 ACK
Content-Length: 0

-- PJSIP/yuki-00000005 answered PJSIP/maxim-00000004
-- Channel PJSIP/maxim-00000004 joined 'simple_bridge' basic-bridge <c8ab9f75-836f-4140-9d55-88f68a5d3a39>
-- Channel PJSIP/maxim-00000004 left 'simple_bridge' basic-bridge <c8ab9f75-836f-4140-9d55-88f68a5d3a39>

== Spawn extension (internal, yuki, 1) exited non-zero on ‘PJSIP/maxim-00000004’
<— Transmitting SIP response (556 bytes) to UDP:192.168.0.102:5060 —>
SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/UDP 192.168.0.102:5060;rport;received=192.168.0.102;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=95ee9c24-6e88-4af3-9516-c3a12f0734b1
CSeq: 2 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Reason: Q.850;cause=58
Content-Length: 0

<— Transmitting SIP request (393 bytes) to UDP:192.168.0.101:62649 —>
BYE sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj142b31e6-29b2-4103-b491-52123b7491e1
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
CSeq: 7031 BYE
Reason: Q.850;cause=58
Content-Length: 0

<— Received SIP request (360 bytes) from UDP:192.168.0.102:5060 —>
ACK sip:yuki@192.168.0.10 SIP/2.0
Call-ID: c759752ddf17b76d143a9ab860233520@0:0:0:0:0:0:0:0
Max-Forwards: 70
From: “Maco” sip:maxim@192.168.0.10;tag=3467aed1
To: sip:yuki@192.168.0.10;tag=95ee9c24-6e88-4af3-9516-c3a12f0734b1
Via: SIP/2.0/UDP 192.168.0.102:5060;branch=z9hG4bK-323238-f2fcfea85e813d67beb8bb9f38ab5493
CSeq: 2 ACK
Content-Length: 0

<— Transmitting SIP request (417 bytes) to UDP:192.168.0.101:62649 —>
BYE sip:yuki@192.168.0.101:62649 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.10:5060;rport;branch=z9hG4bKPj142b31e6-29b2-4103-b491-52123b7491e1
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
CSeq: 7031 BYE
Reason: Q.850;cause=58
Reason: Q.850;cause=58
Content-Length: 0

<— Received SIP response (370 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj142b31e6-29b2-4103-b491-52123b7491e1
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
CSeq: 7031 BYE
Content-Length: 0

<— Received SIP response (370 bytes) from UDP:192.168.0.101:62649 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.10:5060;rport=5060;received=192.168.0.10;branch=z9hG4bKPj142b31e6-29b2-4103-b491-52123b7491e1
Call-ID: 3fc604e4-fba1-4e90-a5db-fb1d023faf94
From: “Maco” sip:maxim@192.168.0.10;tag=1c42ee0c-a602-4bfc-900a-3853261005fd
To: sip:yuki@192.168.0.101;tag=zo9WlUOJFu7jpRRditZvm.IGptsO5idZ
CSeq: 7031 BYE
Content-Length: 0
[/code]
Any ideas ?

Do “core set debug 5”. Enable the full log in logger.conf, and provide the full log, output, not a screen scrape. Your current logs don’t say which codecs were acceptable and which were recognized sufficiently well.

Hello David! Here’s my /var/log/asterisk/full (I did a logger rotate just before trying a call) when calling with the Bria Beta iOS client to Jitsi running on Ubuntu. Asterisk is configured to use pjsip with disallow=all, allow=opus. I’ve used “core set debug 5”, “pjsip set logger on” and “rtp set debug on” to provide as much details.
http://pastebin.com/2xsJvg4x#

If I originate the call with Jitsi instead, I get:
http://pastebin.com/m59Jp6XP

If I use chan_sip instead, calling with Bria Beta I get this (the information here seems more useful):
http://pastebin.com/DcCfFHDk

Reversing the call, Jitsi 2.5 to Bria Beta iOS results in:
http://pastebin.com/xHwgbeVM

It is the a=fmtp line that it doesn’t like. Have you actually loaded the module? What happens if you manually load it from the CLI?

It looks like both opus_parse_sdp_fmtp and the corresponding one for SILK are returning the wrong return code. It looks like it should be non-zero, and, on a majority vote, should be the value of cloned.

If that works for you, and you are prepared to sign the contributor agreement, please raise a bug report, with associated patch. If that is the problem, it really should not have go this far!

Hi!

Did this ever get resolved?

Are you sure you are running passthrough? You have to have directmedia=yes and that only works if there is no NAT between you and the PBX and the other client. Based on those SIP logs it looks like maybe you are going through NAT.