I am using this setup . Sipml5 webrtc client(chrome) -----> Kamailio with RTP engine ------> ThridpartySip Server
kamalio will act as mediator between webRTC client and NonWebRTC sip server .
User will be registered on sip server and calls will be terminated to PSTN .
This setup is working fine with one thirdparty sip server but not working with other SIP server .
First server ( working ) is happily replying INVITE request and reponding with "TRYING " .
But Second SIP server never reply to kamailio for INVITE requests and kamailio keep sending SDP and finally on SipML5 it shows "request timed out " Ports are open on Firewall .
1. Working Server Trace ----
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bK3929.368fd6fd45db4710e7acd52df40d3903.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKJHBbZaGh9noFlUgS1VVr8DCImVbITu0q;rport=54273
Contact: "2016"<sip:testcard@df7jal23ls0d.invalid;alias=79.207.241.94~54273~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 89be25db-d9ed-616e-118e-c6b3a863d8fd
CSeq: 62565 INVITE
Content-Type: application/sdp
Content-Length: 819
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8650276303411124000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG
m=audio 30246 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:2398380477 cname:8WcQLQ8hOhk5MhWZ
a=ssrc:2398380477 msid:tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG 63b396a3-5126-405f-a389-75548cf0a634
a=ssrc:2398380477 mslabel:tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG
a=ssrc:2398380477 label:63b396a3-5126-405f-a389-75548cf0a634
a=sendrecv
a=rtcp:30247
SIP/2.0 407 Proxy Authentication Required
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bK3929.368fd6fd45db4710e7acd52df40d3903.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKJHBbZaGh9noFlUgS1VVr8DCImVbITu0q;rport=54273
Call-Id: 89be25db-d9ed-616e-118e-c6b3a863d8fd
CSeq: 62565 INVITE
Proxy-Authenticate: Digest realm="
sip.dingdongbell.net", nonce="c2133e5e1e40805244c5f201cfbaee4d", algorithm=MD5
Content-Length: 0
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bK3929.368fd6fd45db4710e7acd52df40d3903.0
Call-ID: 89be25db-d9ed-616e-118e-c6b3a863d8fd
CSeq: 62565 ACK
Content-Length: 0
Max-Forwards: 69
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bK0929.61a39db61290521db7dc657d252c4182.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKnswxFdcreaCt0SMSRCqs2HPPOSN9adR6;rport=54273
Contact: "2016"<sip:testcard@df7jal23ls0d.invalid;alias=79.207.241.94~54273~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 89be25db-d9ed-616e-118e-c6b3a863d8fd
CSeq: 62566 INVITE
Content-Type: application/sdp
Content-Length: 819
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8650276303411124000 2 IN IP4 172.17.185.46
s=DD- chrome
t=0 0
a=msid-semantic: WMS tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG
m=audio 30246 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:2398380477 cname:8WcQLQ8hOhk5MhWZ
a=ssrc:2398380477 msid:tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG 63b396a3-5126-405f-a389-75548cf0a634
a=ssrc:2398380477 mslabel:tosDjBW9pSViLfckZBR4gh6AolFzau3iBjgG
a=ssrc:2398380477 label:63b396a3-5126-405f-a389-75548cf0a634
a=sendrecv
a=rtcp:30247
SIP/2.0 100 Trying
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bK0929.61a39db61290521db7dc657d252c4182.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKnswxFdcreaCt0SMSRCqs2HPPOSN9adR6;rport=54273
Call-Id: 89be25db-d9ed-616e-118e-c6b3a863d8fd
CSeq: 62566 INVITE
Content-Length: 0
2. Not working Server trace ( second server)--------------------
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
Record-Route: <sip:172.17.185.46:5090;nat=yes;lr=on>
Via: SIP/2.0/UDP 172.17.185.46:5090;branch=z9hG4bKc8b9.d6c920a694694e5d3104f492c48d2582.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;received=79.207.241.94;branch=z9hG4bKBXNMor2TC7eWrTb87WqF4qQN34s6MtQ0;rport=50933
Contact: "2017"<sip:testcard2@df7jal23ls0d.invalid;alias=79.207.241.94~50933~5;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 6b04e418-dbdf-21aa-39b7-1c2fb1d72f6b
CSeq: 8601 INVITE
Content-Type: application/sdp
Content-Length: 811
Max-Forwards: 69
User-Agent: IM-client/OMA1.0 sipML5-v1.2015.03.18
Organization: DD
v=0
o=- 8501880612358765000 2 IN IP4 172.17.185.46
s=DD - chrome
t=0 0
a=msid-semantic: WMS 2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
m=audio 30038 RTP/AVP 111 103 104 9 0 8 106 105 13 126
c=IN IP4 172.17.185.46
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:68402186 cname:W2sB0/Nke1Gs8u89
a=ssrc:68402186 msid:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8 62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=ssrc:68402186 mslabel:2pj4LaFD0X7B4Sa0IkGLFLZhZAoDcQm5nhk8
a=ssrc:68402186 label:62dff51b-f07b-4788-98cb-72c25ff2ab1b
a=sendrecv
a=rtcp:30039
request_route {
if ((($Rp == MY_WS_PORT || $Rp == MY_WSS_PORT)
&& !(proto == WS || proto == WSS))) {
xlog("L_WARN", "SIP request received on $Rp\n");
sl_send_reply("403", "Forbidden");
exit;
}
# per request initial checks
route(REQINIT);
# NAT detection
route(NATDETECT);
# CANCEL processing
if (is_method("CANCEL")) {
if (t_check_trans()) {
route(RELAY);
}
exit;
}
# handle requests within SIP dialogs
route(WITHINDLG);
### only initial requests (no To tag)
t_check_trans();
if (!is_method("REGISTER|INVITE|ACK|BYE|CANCEL|PRACK|MESSAGE|INFO|UPDATE")) {
sl_send_reply("405", "Method not allowed");
exit;
}
# authentication
route(AUTH);
# record routing for dialog forming requests (in case they are routed)
# - remove preloaded route headers
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE"))
record_route_preset("172.17.185.46:5090;nat=yes");
# handle registrations
route(REGISTRAR);
# if ($rU==$null) {
# # request with no Username in RURI
# sl_send_reply("484","Address Incomplete");
# exit;
# }
# if (!is_method("INVITE")) {
# route(RELAY);
# exit;
# }
route(RELAY);
}
route[SETUP_BY_TRANSPORT] {
if ($ru =~ "transport=ws") {
xlog("L_INFO", "Request going to WS");
if(sdp_with_transport("RTP/SAVPF")) {
rtpengine_manage("force trust-address replace-origin replace-session-connection ICE=force");
t_on_reply("REPLY_WS_TO_WS");
return;
}
# rtpengine_manage("froc+SP");
rtpengine_manage("force trust-address replace-origin replace-session-connection ICE=force RTP/SAVPF");
t_on_reply("REPLY_FROM_WS");
}
else if ($proto =~ "ws") {
xlog("L_INFO", "Request coming from WS");
# rtpengine_manage("froc-sp");
rtpengine_manage("force rtcp-mux-demux symmetric trust-address replace-origin replace-session-connection ICE=remove RTP/AVP");
t_on_reply("REPLY_TO_WS");
}
else {
xlog("L_INFO", "This is a classic phone call");
# rtpengine_manage("co");
rtpengine_manage("replace-origin replace-session-connection");
t_on_reply("MANAGE_CLASSIC_REPLY");
}
}
event_route[xhttp:request] {
set_reply_close();
set_reply_no_connect();
if ($Rp != MY_WS_PORT
#!ifdef WITH_TLS
&& $Rp != MY_WSS_PORT
#!endif
) {
xlog("L_WARN", "HTTP request received on $Rp\n");
xhttp_reply("403", "Forbidden", "", "");
exit;
}
xlog("L_INFO", "HTTP Request Received\n");
if ($hdr(Upgrade)=~"websocket"
&& $hdr(Connection)=~"Upgrade"
&& $rm=~"GET") {
# Validate Host - make sure the client is using the correct
# alias for WebSockets
if ($hdr(Host) == $null || !is_myself("sip:" + $hdr(Host))) {
xlog("L_WARN", "Bad host $hdr(Host)\n");
xhttp_reply("403", "Forbidden", "", "");
exit;
}
if (ws_handle_handshake())
{
# Optional... cache some information about the
# successful connection
exit;
}
}
xhttp_reply("404", "Not Found", "", "");
}
route[RELAY] {
if (is_method("INVITE")) {
route(SETUP_BY_TRANSPORT);
if(!t_is_set("failure_route")) t_on_failure("MANAGE_FAILURE");
}
if (!t_relay()) {
sl_reply_error();
}
exit;
}