Issue: No audio after bridging call

looks like no audio plays for both caller & callee

*CLI> pjsip set logger on
PJSIP Logging enabled
*CLI>
*CLI>
*CLI> <— Received SIP request (3142 bytes) from WSS:49.49.49.49:15592 —>
INVITE sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;branch=z9hG4bK7507365
Max-Forwards: 70
To: sip:101@OMMS.sytes.net
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 6103 INVITE
Contact: sip:ns8mh60q@2ctr7gq9tbjt.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Type: application/sdp
Content-Length: 2650

v=0
o=- 7423857095358650188 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 0b1c9a56-e0dc-4bf2-ac87-428393287a4c
m=audio 16801 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 49.49.49.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3788009493 1 udp 2122260223 192.168.239.1 62341 typ host generation 0 network-id 1
a=candidate:223476720 1 udp 2122194687 192.168.41.1 62342 typ host generation 0 network-id 5
a=candidate:3796745784 1 udp 2121998079 192.168.0.103 62343 typ host generation 0 network-id 2 network-cost 10
a=candidate:840613309 1 udp 2122131711 2406:7400:81:3d5a:6c16:4567:e52:ef2f 62344 typ host generation 0 network-id 3 network-cost 10
a=candidate:3094928227 1 udp 2122066175 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 62345 typ host generation 0 network-id 4 network-cost 10
a=candidate:595847538 1 udp 1685790463 49.49.49.49 16801 typ srflx raddr 192.168.0.103 rport 62343 generation 0 network-id 2 network-cost 10
a=candidate:526558337 1 tcp 1518280447 192.168.239.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:4093325156 1 tcp 1518214911 192.168.41.1 9 typ host tcptype active generation 0 network-id 5
a=candidate:484928172 1 tcp 1518018303 192.168.0.103 9 typ host tcptype active generation 0 network-id 2 network-cost 10
a=candidate:3434113321 1 tcp 1518151935 2406:7400:81:3d5a:6c16:4567:e52:ef2f 9 typ host tcptype active generation 0 network-id 3 network-cost 10
a=candidate:1188171767 1 tcp 1518086399 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 9 typ host tcptype active generation 0 network-id 4 network-cost 10
a=ice-ufrag:aQ5E
a=ice-pwd:MayRDWQGF9JdGy03Gkd5b8Ia
a=ice-options:trickle
a=fingerprint:sha-256 F5:51:78:E9:DD:74:B9:54:2E:59:51:E2:24:8D:12:01:82:6C:39:FC:55:B0:0E:64:FC:9C:0B:5A:68:18:19:21
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:0b1c9a56-e0dc-4bf2-ac87-428393287a4c 8fc74ba4-6f95-4648-9e30-aa9a8b54ee69
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:2736576405 cname:Xs1F7jv3/P9Wmqkl
a=ssrc:2736576405 msid:0b1c9a56-e0dc-4bf2-ac87-428393287a4c 8fc74ba4-6f95-4648-9e30-aa9a8b54ee69

<— Transmitting SIP response (479 bytes) to WSS:49.49.49.49:15592 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;rport=15592;received=49.49.49.49;branch=z9hG4bK7507365
Call-ID: k6c7e058b1rtj826jbdr
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
To: sip:101@OMMS.sytes.net;tag=z9hG4bK7507365
CSeq: 6103 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1739963215/5979923e6e42990089103ac6d12014c2”,opaque=“5eea68ac3444e1b2”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP request (345 bytes) from WSS:49.49.49.49:15592 —>
ACK sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;branch=z9hG4bK6669052
Max-Forwards: 70
To: sip:101@OMMS.sytes.net;tag=z9hG4bK7507365
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 6103 ACK
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Received SIP request (3420 bytes) from WSS:49.49.49.49:15592 —>
INVITE sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;branch=z9hG4bK2397740
Max-Forwards: 70
To: sip:101@OMMS.sytes.net
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 6104 INVITE
Authorization: Digest algorithm=MD5, username=“102”, realm=“asterisk”, nonce=“1739963215/5979923e6e42990089103ac6d12014c2”, uri="sip:101@OMMS.sytes.net", response=“ec9320c4b8a48c703596f6f86ce6c7c6”, opaque=“5eea68ac3444e1b2”, qop=auth, cnonce=“6488geqh2mkn”, nc=00000001
Contact: sip:ns8mh60q@2ctr7gq9tbjt.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Type: application/sdp
Content-Length: 2650

v=0
o=- 7423857095358650188 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 0b1c9a56-e0dc-4bf2-ac87-428393287a4c
m=audio 16801 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 49.49.49.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3788009493 1 udp 2122260223 192.168.239.1 62341 typ host generation 0 network-id 1
a=candidate:223476720 1 udp 2122194687 192.168.41.1 62342 typ host generation 0 network-id 5
a=candidate:3796745784 1 udp 2121998079 192.168.0.103 62343 typ host generation 0 network-id 2 network-cost 10
a=candidate:840613309 1 udp 2122131711 2406:7400:81:3d5a:6c16:4567:e52:ef2f 62344 typ host generation 0 network-id 3 network-cost 10
a=candidate:3094928227 1 udp 2122066175 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 62345 typ host generation 0 network-id 4 network-cost 10
a=candidate:595847538 1 udp 1685790463 49.49.49.49 16801 typ srflx raddr 192.168.0.103 rport 62343 generation 0 network-id 2 network-cost 10
a=candidate:526558337 1 tcp 1518280447 192.168.239.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:4093325156 1 tcp 1518214911 192.168.41.1 9 typ host tcptype active generation 0 network-id 5
a=candidate:484928172 1 tcp 1518018303 192.168.0.103 9 typ host tcptype active generation 0 network-id 2 network-cost 10
a=candidate:3434113321 1 tcp 1518151935 2406:7400:81:3d5a:6c16:4567:e52:ef2f 9 typ host tcptype active generation 0 network-id 3 network-cost 10
a=candidate:1188171767 1 tcp 1518086399 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 9 typ host tcptype active generation 0 network-id 4 network-cost 10
a=ice-ufrag:aQ5E
a=ice-pwd:MayRDWQGF9JdGy03Gkd5b8Ia
a=ice-options:trickle
a=fingerprint:sha-256 F5:51:78:E9:DD:74:B9:54:2E:59:51:E2:24:8D:12:01:82:6C:39:FC:55:B0:0E:64:FC:9C:0B:5A:68:18:19:21
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:0b1c9a56-e0dc-4bf2-ac87-428393287a4c 8fc74ba4-6f95-4648-9e30-aa9a8b54ee69
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:2736576405 cname:Xs1F7jv3/P9Wmqkl
a=ssrc:2736576405 msid:0b1c9a56-e0dc-4bf2-ac87-428393287a4c 8fc74ba4-6f95-4648-9e30-aa9a8b54ee69

<— Transmitting SIP response (308 bytes) to WSS:49.49.49.49:15592 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;rport=15592;received=49.49.49.49;branch=z9hG4bK2397740
Call-ID: k6c7e058b1rtj826jbdr
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
To: sip:101@OMMS.sytes.net
CSeq: 6104 INVITE
Server: Asterisk PBX 20.12.0
Content-Length: 0

-- Executing [101@from-internal:1] Dial("PJSIP/102-00000002", "PJSIP/101") in new stack
-- Called PJSIP/101

<— Transmitting SIP request (1632 bytes) to WSS:49.49.49.49:16531 —>
INVITE sip:trqus3ck@49.49.49.49:16531;transport=ws SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj5469f51a-28f4-4f7a-9ffc-436855a1c22c;alias
From: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
To: sip:trqus3ck@49.49.49.49
Contact: sip:asterisk@OMMSast:5060;transport=ws
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4411 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Type: application/sdp
Content-Length: 919

v=0
o=- 841258924 841258924 IN IP4 94.94.94.94
s=Asterisk
c=IN IP4 94.94.94.94
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0
m=audio 10346 UDP/TLS/RTP/SAVPF 0 8 107 18 101 102
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 B4:00:F8:8F:3A:3C:69:C4:FF:03:70:90:6B:80:83:E1:8B:C4:E1:85:1F:0B:B3:EF:81:CC:0F:FE:69:85:3F:5F
a=ice-ufrag:56e17e7b22037e463ddb48de1ebe2994
a=ice-pwd:46f21fd12e101a0c30ad63e9753c0421
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:102 telephone-event/48000
a=fmtp:102 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:976262396 cname:c53c58b8-315c-4694-9afb-f0e7bfb0e22d
a=msid:16461cec-d79d-4d4f-ae70-dc80dfce16d6 3711df6e-f378-4619-af32-01145da7577c
a=rtcp-fb:* transport-cc
a=mid:audio-0

<— Transmitting SIP request (467 bytes) to WSS:49.49.49.49:16531 —>
OPTIONS sip:trqus3ck@49.49.49.49:16531;transport=ws SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj83a097fe-bf5f-41e5-9c73-9902564cfd72;alias
From: sip:101@OMMSast;tag=c9d2b98b-546d-4f39-bfab-af0a57a16836
To: sip:trqus3ck@49.49.49.49
Contact: sip:101@OMMSast:5060;transport=ws
Call-ID: 358ad25e-a501-489a-9887-536c0acb870f
CSeq: 11799 OPTIONS
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP response (364 bytes) from WSS:49.49.49.49:16531 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj5469f51a-28f4-4f7a-9ffc-436855a1c22c;alias
To: sip:trqus3ck@49.49.49.49
From: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4411 INVITE
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Received SIP response (439 bytes) from WSS:49.49.49.49:16531 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj5469f51a-28f4-4f7a-9ffc-436855a1c22c;alias
To: sip:trqus3ck@49.49.49.49;tag=6nnd2f1848
From: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4411 INVITE
Contact: sip:trqus3ck@7v2570qvb7g3.invalid;transport=ws
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

-- PJSIP/101-00000003 is ringing

<— Transmitting SIP response (515 bytes) to WSS:49.49.49.49:15592 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;rport=15592;received=49.49.49.49;branch=z9hG4bK2397740
Call-ID: k6c7e058b1rtj826jbdr
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
To: sip:101@OMMS.sytes.net;tag=a5d02c58-9fb3-430e-8069-be8a39f2850d
CSeq: 6104 INVITE
Server: Asterisk PBX 20.12.0
Contact: sip:94.94.94.94:8089;transport=ws
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Content-Length: 0

<— Received SIP response (489 bytes) from WSS:49.49.49.49:16531 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj83a097fe-bf5f-41e5-9c73-9902564cfd72;alias
To: sip:trqus3ck@49.49.49.49;tag=uj8drtr2fn
From: sip:101@OMMSast;tag=c9d2b98b-546d-4f39-bfab-af0a57a16836
Call-ID: 358ad25e-a501-489a-9887-536c0acb870f
CSeq: 11799 OPTIONS
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Accept: application/sdp,application/dtmf-relay
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Transmitting SIP request (467 bytes) to WSS:49.49.49.49:15592 —>
OPTIONS sip:ns8mh60q@49.49.49.49:15592;transport=ws SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj50f0dd78-cd19-4a90-89c6-91effaf3a414;alias
From: sip:102@OMMSast;tag=5f4f3fe7-aec9-4fd5-8d4e-9f28c3f9f72e
To: sip:ns8mh60q@49.49.49.49
Contact: sip:102@OMMSast:5060;transport=ws
Call-ID: 4860b9da-2613-42b7-883e-e333103c340b
CSeq: 16173 OPTIONS
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP response (489 bytes) from WSS:49.49.49.49:15592 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj50f0dd78-cd19-4a90-89c6-91effaf3a414;alias
To: sip:ns8mh60q@49.49.49.49;tag=mannjdrqma
From: sip:102@OMMSast;tag=5f4f3fe7-aec9-4fd5-8d4e-9f28c3f9f72e
Call-ID: 4860b9da-2613-42b7-883e-e333103c340b
CSeq: 16173 OPTIONS
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Accept: application/sdp,application/dtmf-relay
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Received SIP response (2703 bytes) from WSS:49.49.49.49:16531 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj5469f51a-28f4-4f7a-9ffc-436855a1c22c;alias
To: sip:trqus3ck@49.49.49.49;tag=6nnd2f1848
From: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4411 INVITE
Contact: sip:trqus3ck@7v2570qvb7g3.invalid;transport=ws
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Type: application/sdp
Content-Length: 2171

v=0
o=- 3738750222785649857 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio-0
a=msid-semantic: WMS a51a67e8-3f5b-4f74-8987-4c8e08ead71f
m=audio 15773 UDP/TLS/RTP/SAVPF 0 8 107 101 102
c=IN IP4 49.49.49.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:453713383 1 udp 2122260223 192.168.239.1 53767 typ host generation 0 network-id 1
a=candidate:4153579010 1 udp 2122194687 192.168.41.1 53768 typ host generation 0 network-id 5
a=candidate:412013514 1 udp 2121998079 192.168.0.103 53769 typ host generation 0 network-id 2 network-cost 10
a=candidate:3369717839 1 udp 2122131711 2406:7400:81:3d5a:6c16:4567:e52:ef2f 53770 typ host generation 0 network-id 3 network-cost 10
a=candidate:1119598225 1 udp 2122066175 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 53771 typ host generation 0 network-id 4 network-cost 10
a=candidate:3644884096 1 udp 1685790463 49.49.49.49 15773 typ srflx raddr 192.168.0.103 rport 53769 generation 0 network-id 2 network-cost 10
a=candidate:3852585331 1 tcp 1518280447 192.168.239.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:154682006 1 tcp 1518214911 192.168.41.1 9 typ host tcptype active generation 0 network-id 5
a=candidate:3861120862 1 tcp 1518018303 192.168.0.103 9 typ host tcptype active generation 0 network-id 2 network-cost 10
a=candidate:913507547 1 tcp 1518151935 2406:7400:81:3d5a:6c16:4567:e52:ef2f 9 typ host tcptype active generation 0 network-id 3 network-cost 10
a=candidate:3155255813 1 tcp 1518086399 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 9 typ host tcptype active generation 0 network-id 4 network-cost 10
a=ice-ufrag:2Ztl
a=ice-pwd:ZRaxzb9lfDAyhU/SPWL74OKI
a=ice-options:trickle
a=fingerprint:sha-256 D4:D8:C0:29:25:8B:67:4C:43:B8:64:B8:CB:28:1D:96:D3:D6:DC:84:86:50:6B:C9:1F:C9:8E:3F:14:F3:A0:6E
a=setup:active
a=mid:audio-0
a=sendrecv
a=msid:a51a67e8-3f5b-4f74-8987-4c8e08ead71f bc22cc09-67cb-443d-9be0-7e32939035f3
a=rtcp-mux
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 opus/48000/2
a=rtcp-fb:107 transport-cc
a=fmtp:107 minptime=10;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=rtpmap:102 telephone-event/48000
a=ssrc:332881131 cname:CCXLBp6o/qsRpcC9

   > 0x7fde5805afb0 -- Strict RTP learning after remote address set to: 49.49.49.49:15773

<— Transmitting SIP request (421 bytes) to WSS:49.49.49.49:16531 —>
ACK sip:trqus3ck@49.49.49.49:16531;transport=ws SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj9972450e-b82e-43a5-8894-b216442f48f1;alias
From: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
To: sip:trqus3ck@49.49.49.49;tag=6nnd2f1848
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4411 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

-- PJSIP/101-00000003 answered PJSIP/102-00000002
   > 0x7fde5807eac0 -- Strict RTP learning after remote address set to: 49.49.49.49:16801

<— Transmitting SIP response (1452 bytes) to WSS:49.49.49.49:15592 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;rport=15592;received=49.49.49.49;branch=z9hG4bK2397740
Call-ID: k6c7e058b1rtj826jbdr
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
To: sip:101@OMMS.sytes.net;tag=a5d02c58-9fb3-430e-8069-be8a39f2850d
CSeq: 6104 INVITE
Server: Asterisk PBX 20.12.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Contact: sip:94.94.94.94:8089;transport=ws
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 860

v=0
o=- 7423857095358650188 4 IN IP4 94.94.94.94
s=Asterisk
c=IN IP4 94.94.94.94
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 16218 UDP/TLS/RTP/SAVPF 0 8 111 126 110
a=connection:new
a=setup:active
a=fingerprint:SHA-256 2F:1C:F9:DA:F3:8D:76:81:3D:03:31:32:56:80:58:DC:01:18:11:40:AC:8F:6E:B4:B0:58:1D:D6:8F:48:52:90
a=ice-ufrag:431b49443fc889db0ead394e640bdefd
a=ice-pwd:7141f15631cc89dd6faea66c2bf1bf35
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:23593774 cname:3a6df762-6778-4227-a52d-c2d28b89c8a7
a=msid:60c1ef44-2246-499f-b0aa-e26a1dc99216 92687236-0798-4494-8be2-2210edc3a2ff
a=rtcp-fb:* transport-cc
a=mid:0
a=rtpmap:110 telephone-event/48000
a=fmtp:110 0-16

-- Channel PJSIP/101-00000003 joined 'simple_bridge' basic-bridge <964ce16d-d3c8-414b-9585-cb5214e3a775>
-- Channel PJSIP/102-00000002 joined 'simple_bridge' basic-bridge <964ce16d-d3c8-414b-9585-cb5214e3a775>

<— Received SIP request (374 bytes) from WSS:49.49.49.49:15592 —>
ACK sip:94.94.94.94:8089;transport=ws SIP/2.0
Via: SIP/2.0/WSS 2ctr7gq9tbjt.invalid;branch=z9hG4bK5078988
Max-Forwards: 70
To: sip:101@OMMS.sytes.net;tag=a5d02c58-9fb3-430e-8069-be8a39f2850d
From: sip:102@OMMS.sytes.net;tag=9od4a4uln9
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 6104 ACK
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Received SIP request (391 bytes) from WSS:49.49.49.49:16531 —>
BYE sip:asterisk@OMMSast:5060;transport=ws SIP/2.0
Via: SIP/2.0/WSS 7v2570qvb7g3.invalid;branch=z9hG4bK9276669
Max-Forwards: 70
To: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
From: sip:trqus3ck@49.49.49.49;tag=6nnd2f1848
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
CSeq: 4412 BYE
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Transmitting SIP response (350 bytes) to WSS:49.49.49.49:16531 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 7v2570qvb7g3.invalid;rport=16531;received=49.49.49.49;branch=z9hG4bK9276669
Call-ID: d7fb0bd3-8017-4214-aa4b-1807f9ed47cc
From: sip:trqus3ck@49.49.49.49;tag=6nnd2f1848
To: sip:102@OMMSast;tag=287daf3b-3302-4273-9981-4ca98466dece
CSeq: 4412 BYE
Server: Asterisk PBX 20.12.0
Content-Length: 0

-- Channel PJSIP/101-00000003 left 'simple_bridge' basic-bridge <964ce16d-d3c8-414b-9585-cb5214e3a775>
-- Channel PJSIP/102-00000002 left 'simple_bridge' basic-bridge <964ce16d-d3c8-414b-9585-cb5214e3a775>

== Spawn extension (from-internal, 101, 1) exited non-zero on ‘PJSIP/102-00000002’
<— Transmitting SIP request (441 bytes) to WSS:49.49.49.49:15592 —>
BYE sip:ns8mh60q@49.49.49.49:15592;transport=ws;ob SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj1a2c6c67-7778-4b62-9115-b58d97d11451;alias
From: sip:101@OMMS.sytes.net;tag=a5d02c58-9fb3-430e-8069-be8a39f2850d
To: sip:102@OMMS.sytes.net;tag=9od4a4uln9
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 16420 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP response (365 bytes) from WSS:49.49.49.49:15592 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj1a2c6c67-7778-4b62-9115-b58d97d11451;alias
To: sip:102@OMMS.sytes.net;tag=9od4a4uln9
From: sip:101@OMMS.sytes.net;tag=a5d02c58-9fb3-430e-8069-be8a39f2850d
Call-ID: k6c7e058b1rtj826jbdr
CSeq: 16420 BYE
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

pjsip.conf content:

[global]
external_media_address=OMMS.sytes.net
external_signaling_address=OMMS.sytes.net
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
;stun_server=stun.l.google.com:19302
ice_support=no
media_encryption=dtls
local_net=192.168.0.0/16

[101]
type=endpoint
context=from-internal
disallow=all
allow=ulaw,alaw,opus,g729
auth=auth_101
aors=101
direct_media=no
force_rport=yes
rewrite_contact=yes
rtp_symmetric=yes
ice_support=no
webrtc=yes
media_encryption=dtls
dtls_verify=fingerprint
dtls_setup=actpass
dtls_rekey=0

[101]
type=aor
max_contacts=10
remove_existing=yes
qualify_frequency=30

[auth_101]
type=auth
auth_type=userpass
username=101
password=101

[102]
type=endpoint
context=from-internal
disallow=all
allow=ulaw,alaw,opus,g729
auth=auth_102
aors=102
direct_media=no
force_rport=yes
rewrite_contact=yes
rtp_symmetric=yes
ice_support=no
webrtc=yes
media_encryption=dtls
dtls_verify=fingerprint
dtls_setup=actpass
dtls_rekey=0

[102]
type=aor
max_contacts=10
remove_existing=yes
qualify_frequency=30

[auth_102]
type=auth
auth_type=userpass
username=102
password=102

[transport-ws]
type=transport
protocol=ws
bind=0.0.0.0
allow_reload=yes

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0:8089
cert_file=/etc/letsencrypt/live/OMMS.sytes.net-0001/fullchain.pem
priv_key_file=/etc/letsencrypt/live/OMMS.sytes.net-0001/privkey.pem

external_media_address=OMMS.sytes.net
external_signaling_address=OMMS.sytes.net
allow_reload=yes

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:8631
external_media_address=OMMS.sytes.net
external_signaling_address=OMMS.sytes.net
allow_reload=yes

rtp.conf content:

[general]

rtpstart=10000
rtpend=20000
stunaddr=
icesupport=no
;stun_server=stun.l.google.com:19302

[ice_host_candidates]

OMMS.sytes.net=49.49.49.49

extension.conf content:

[from-internal]
exten => _X.,1,Dial(PJSIP/${EXTEN})
same => n,hangup

Please help me to fix this

thanks and regards

None of this works. These options don’t exist in global or work.

This is conflicting configuration. ICE is required for WebRTC.

You don’t need to set “ice_support”, “media_encryption”, “dtls_verify”, “dtls_setup”, or “dtls_rekey” if the “webrtc” option is enabled. The “webrtc” option will ensure it is configured for WebRTC.

This should not be set unless you really know what you’re doing and need it. None of your configuration needs it.

If you’re truly using the hostname, it won’t work. This expects the IP address.

thanks for your reply

i tried to remove unwanted stuffs from pjsip.conf & rtp.conf

now iam getting below message from cli.

*CLI>     -- Executing [101@from-internal:1] Dial("PJSIP/102-00000004", "PJSIP/101") in new stack
    -- Called PJSIP/101
    -- PJSIP/101-00000005 is ringing
       > 0x7fce840486e0 -- Strict RTP learning after remote address set to: 49.49.49.49:16682
    -- PJSIP/101-00000005 answered PJSIP/102-00000004
       > 0x7fce84090520 -- Strict RTP learning after remote address set to: 49.49.49.49:15523
    -- Channel PJSIP/101-00000005 joined 'simple_bridge' basic-bridge <48e61bc0-768d-4737-9414-202888af21de>
    -- Channel PJSIP/102-00000004 joined 'simple_bridge' basic-bridge <48e61bc0-768d-4737-9414-202888af21de>
[Feb 19 13:00:05] ERROR[2001]: pjproject: <?>:     icess0x7fce8418e1d8 ..Error sending STUN request: Network is unreachable
[Feb 19 13:00:05] ERROR[2001]: pjproject: <?>:     icess0x7fce840d9fc8 ..Error sending STUN request: Network is unreachable
[Feb 19 13:00:05] ERROR[2001]: pjproject: <?>:     icess0x7fce8418e1d8 ..Error sending STUN request: Network is unreachable
[Feb 19 13:00:05] ERROR[2001]: pjproject: <?>:     icess0x7fce840d9fc8 ..Error sending STUN request: Network is unreachable
       > 0x7fce840486e0 -- Strict RTP learning after ICE completion
       > 0x7fce840486e0 -- Strict RTP learning after remote address set to: 49.49.49.49:16682
       > 0x7fce84090520 -- Strict RTP learning after ICE completion
       > 0x7fce84090520 -- Strict RTP learning after remote address set to: 49.49.49.49:15523
       > 0x7fce840486e0 -- Strict RTP switching to RTP target address 49.49.49.49:16682 as source
(0x7fce8402e660) RTP audio difference is 1330266352 set mark
       > 0x7fce84090520 -- Strict RTP switching to RTP target address 49.49.49.49:15523 as source
(0x7fce84027620) RTP audio difference is 263747016 set mark
       > 0x7fce840486e0 -- Strict RTP learning complete - Locking on source address 49.49.49.49:16682
       > 0x7fce84090520 -- Strict RTP learning complete - Locking on source address 49.49.49.49:15523

*CLI>

please help
thanks and regards

That can occur due to IPv6 link local addresses being present in the SDP, and is harmless.

According to the output media is flowing.

thanks for your reply
i tried to disable this

please find below log

*CLI> pjsip set logger on
PJSIP Logging enabled
*CLI>
*CLI> <— Received SIP request (3146 bytes) from WSS:49.49.49.49:15422 —>
INVITE sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS euub9siovlja.invalid;branch=z9hG4bK5811673
Max-Forwards: 70
To: sip:101@OMMS.sytes.net
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
Call-ID: c65r2qh6m5sil03m4454
CSeq: 7565 INVITE
Contact: sip:98o2n9u3@euub9siovlja.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Type: application/sdp
Content-Length: 2654

v=0
o=- 9048936710120631521 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 18b4a32f-5d67-44a6-8792-288fa870383d
m=audio 16141 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 49.49.49.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3740682745 1 udp 2122260223 192.168.239.1 60439 typ host generation 0 network-id 1
a=candidate:613386808 1 udp 2122194687 192.168.41.1 60440 typ host generation 0 network-id 5
a=candidate:3990513787 1 udp 2121998079 192.168.0.103 60441 typ host generation 0 network-id 2 network-cost 10
a=candidate:3671005854 1 udp 2122131711 2406:7400:81:3d5a:6c16:4567:e52:ef2f 60442 typ host generation 0 network-id 3 network-cost 10
a=candidate:3714066565 1 udp 2122066175 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 60443 typ host generation 0 network-id 4 network-cost 10
a=candidate:1116768581 1 udp 1685790463 49.49.49.49 16141 typ srflx raddr 192.168.0.103 rport 60441 generation 0 network-id 2 network-cost 10
a=candidate:2688133985 1 tcp 1518280447 192.168.239.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:1514170528 1 tcp 1518214911 192.168.41.1 9 typ host tcptype active generation 0 network-id 5
a=candidate:2467662563 1 tcp 1518018303 192.168.0.103 9 typ host tcptype active generation 0 network-id 2 network-cost 10
a=candidate:2751526918 1 tcp 1518151935 2406:7400:81:3d5a:6c16:4567:e52:ef2f 9 typ host tcptype active generation 0 network-id 3 network-cost 10
a=candidate:2746206749 1 tcp 1518086399 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 9 typ host tcptype active generation 0 network-id 4 network-cost 10
a=ice-ufrag:yomu
a=ice-pwd:PYlgFdlyySJoR1rlwSKLYDXp
a=ice-options:trickle
a=fingerprint:sha-256 BE:E9:04:67:ED:F1:0C:C2:80:78:53:E9:2B:3F:7B:0A:30:CA:C5:E0:27:CD:DD:77:42:C4:7B:9E:FA:16:9D:62
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:18b4a32f-5d67-44a6-8792-288fa870383d f4cc9b48-f04d-4fdd-9528-f3e451a87565
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:1284415931 cname:2TLae2r9LZoPoIid
a=ssrc:1284415931 msid:18b4a32f-5d67-44a6-8792-288fa870383d f4cc9b48-f04d-4fdd-9528-f3e451a87565

<— Transmitting SIP response (479 bytes) to WSS:49.49.49.49:15422 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS euub9siovlja.invalid;rport=15422;received=49.49.49.49;branch=z9hG4bK5811673
Call-ID: c65r2qh6m5sil03m4454
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
To: sip:101@OMMS.sytes.net;tag=z9hG4bK5811673
CSeq: 7565 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1739970739/5277360d8df06635c1d4bdefb8033c24”,opaque=“764014845662feeb”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP request (345 bytes) from WSS:49.49.49.49:15422 —>
ACK sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS euub9siovlja.invalid;branch=z9hG4bK6761867
Max-Forwards: 70
To: sip:101@OMMS.sytes.net;tag=z9hG4bK5811673
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
Call-ID: c65r2qh6m5sil03m4454
CSeq: 7565 ACK
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

<— Received SIP request (3424 bytes) from WSS:49.49.49.49:15422 —>
INVITE sip:101@OMMS.sytes.net SIP/2.0
Via: SIP/2.0/WSS euub9siovlja.invalid;branch=z9hG4bK2560755
Max-Forwards: 70
To: sip:101@OMMS.sytes.net
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
Call-ID: c65r2qh6m5sil03m4454
CSeq: 7566 INVITE
Authorization: Digest algorithm=MD5, username=“101”, realm=“asterisk”, nonce=“1739970739/5277360d8df06635c1d4bdefb8033c24”, uri="sip:101@OMMS.sytes.net", response=“42b9b594b4a68193f8d30ffc5307b749”, opaque=“764014845662feeb”, qop=auth, cnonce=“ue7gpf5v0re8”, nc=00000001
Contact: sip:98o2n9u3@euub9siovlja.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Type: application/sdp
Content-Length: 2654

v=0
o=- 9048936710120631521 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 18b4a32f-5d67-44a6-8792-288fa870383d
m=audio 16141 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 49.49.49.49
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3740682745 1 udp 2122260223 192.168.239.1 60439 typ host generation 0 network-id 1
a=candidate:613386808 1 udp 2122194687 192.168.41.1 60440 typ host generation 0 network-id 5
a=candidate:3990513787 1 udp 2121998079 192.168.0.103 60441 typ host generation 0 network-id 2 network-cost 10
a=candidate:3671005854 1 udp 2122131711 2406:7400:81:3d5a:6c16:4567:e52:ef2f 60442 typ host generation 0 network-id 3 network-cost 10
a=candidate:3714066565 1 udp 2122066175 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 60443 typ host generation 0 network-id 4 network-cost 10
a=candidate:1116768581 1 udp 1685790463 49.49.49.49 16141 typ srflx raddr 192.168.0.103 rport 60441 generation 0 network-id 2 network-cost 10
a=candidate:2688133985 1 tcp 1518280447 192.168.239.1 9 typ host tcptype active generation 0 network-id 1
a=candidate:1514170528 1 tcp 1518214911 192.168.41.1 9 typ host tcptype active generation 0 network-id 5
a=candidate:2467662563 1 tcp 1518018303 192.168.0.103 9 typ host tcptype active generation 0 network-id 2 network-cost 10
a=candidate:2751526918 1 tcp 1518151935 2406:7400:81:3d5a:6c16:4567:e52:ef2f 9 typ host tcptype active generation 0 network-id 3 network-cost 10
a=candidate:2746206749 1 tcp 1518086399 2406:7400:81:3d5a:d929:46ff:42e4:1eaf 9 typ host tcptype active generation 0 network-id 4 network-cost 10
a=ice-ufrag:yomu
a=ice-pwd:PYlgFdlyySJoR1rlwSKLYDXp
a=ice-options:trickle
a=fingerprint:sha-256 BE:E9:04:67:ED:F1:0C:C2:80:78:53:E9:2B:3F:7B:0A:30:CA:C5:E0:27:CD:DD:77:42:C4:7B:9E:FA:16:9D:62
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:18b4a32f-5d67-44a6-8792-288fa870383d f4cc9b48-f04d-4fdd-9528-f3e451a87565
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:1284415931 cname:2TLae2r9LZoPoIid
a=ssrc:1284415931 msid:18b4a32f-5d67-44a6-8792-288fa870383d f4cc9b48-f04d-4fdd-9528-f3e451a87565

<— Transmitting SIP response (308 bytes) to WSS:49.49.49.49:15422 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS euub9siovlja.invalid;rport=15422;received=49.49.49.49;branch=z9hG4bK2560755
Call-ID: c65r2qh6m5sil03m4454
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
To: sip:101@OMMS.sytes.net
CSeq: 7566 INVITE
Server: Asterisk PBX 20.12.0
Content-Length: 0

-- Executing [101@from-internal:1] Answer("PJSIP/101-0000000a", "") in new stack
   > 0x7fab68037c70 -- Strict RTP learning after remote address set to: 49.49.49.49:16141

<— Transmitting SIP response (1603 bytes) to WSS:49.49.49.49:15422 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS euub9siovlja.invalid;rport=15422;received=49.49.49.49;branch=z9hG4bK2560755
Call-ID: c65r2qh6m5sil03m4454
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
To: sip:101@OMMS.sytes.net;tag=1adc8ec4-a035-492d-ba74-6f402dbfaffd
CSeq: 7566 INVITE
Server: Asterisk PBX 20.12.0
Contact: sip:94.94.94.94:8089;transport=ws
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 1011

v=0
o=- 9048936710120631521 4 IN IP4 94.94.94.94
s=Asterisk
c=IN IP4 94.94.94.94
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 14226 UDP/TLS/RTP/SAVPF 0 8 111 126 110
a=connection:new
a=setup:active
a=fingerprint:SHA-256 36:2E:4B:D9:DB:2F:75:EF:E4:42:36:A2:19:BF:A8:34:F0:51:7D:F5:2C:6D:8C:F4:EB:A6:56:D4:FB:2E:FF:D7
a=ice-ufrag:345d13617aa1318817e4fa1e323d9910
a=ice-pwd:1b8d83c5531bb59a752b7100718f696e
a=candidate:H5eb1a03b 1 UDP 2130706431 94.94.94.94 14226 typ host
a=candidate:He9960a21 1 UDP 2130706431 fe80::777f:e4b:cc09:8778 14226 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:1105368647 cname:1bdd682a-c65d-4c2d-ba89-b4c7f4dcad6a
a=msid:31da292b-b68a-469b-ba2f-7e83d2563f57 971e237d-4287-40c7-912c-16358360e107
a=rtcp-fb:* transport-cc
a=mid:0
a=rtpmap:110 telephone-event/48000
a=fmtp:110 0-16

[Feb 19 14:12:19] ERROR[2421]: pjproject: <?>: icess0x7fab6812fe98 ..Error sending STUN request: Network is unreachable [Feb 19 14:12:19] ERROR[2421]: pjproject: <?>: icess0x7fab6812fe98 …Error sending STUN request: Network is unreachable
<— Received SIP request (374 bytes) from WSS:49.49.49.49:15422 —>
ACK sip:94.94.94.94:8089;transport=ws SIP/2.0
Via: SIP/2.0/WSS euub9siovlja.invalid;branch=z9hG4bK4978880
Max-Forwards: 70
To: sip:101@OMMS.sytes.net;tag=1adc8ec4-a035-492d-ba74-6f402dbfaffd
From: sip:101@OMMS.sytes.net;tag=la6sfcp050
Call-ID: c65r2qh6m5sil03m4454
CSeq: 7566 ACK
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

   > 0x7fab68037c70 -- Strict RTP learning after ICE completion
   > 0x7fab68037c70 -- Strict RTP learning after remote address set to: 49.49.49.49:16141
-- Executing [101@from-internal:2] Playback("PJSIP/101-0000000a", "demo-congrats") in new stack
-- <PJSIP/101-0000000a> Playing 'demo-congrats.gsm' (language 'en')
   > 0x7fab68037c70 -- Strict RTP switching to RTP target address 49.49.49.49:16141 as source
   > 0x7fab68037c70 -- Strict RTP learning complete - Locking on source address 49.49.49.49:16141

*CLI> <— Transmitting SIP request (467 bytes) to WSS:49.49.49.49:15422 —>
OPTIONS sip:98o2n9u3@49.49.49.49:15422;transport=ws SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj9cc193d0-9a2d-4a7e-96b2-8ee220093e00;alias
From: sip:101@OMMSast;tag=83f5a171-e42a-45e9-b445-8e97199286fc
To: sip:98o2n9u3@49.49.49.49
Contact: sip:101@OMMSast:5060;transport=ws
Call-ID: 7dad69e1-cdcc-4530-bfc1-3799f1846f68
CSeq: 64325 OPTIONS
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP response (489 bytes) from WSS:49.49.49.49:15422 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPj9cc193d0-9a2d-4a7e-96b2-8ee220093e00;alias
To: sip:98o2n9u3@49.49.49.49;tag=o7ov0efaa2
From: sip:101@OMMSast;tag=83f5a171-e42a-45e9-b445-8e97199286fc
Call-ID: 7dad69e1-cdcc-4530-bfc1-3799f1846f68
CSeq: 64325 OPTIONS
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Accept: application/sdp,application/dtmf-relay
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

-- Executing [101@from-internal:3] Hangup("PJSIP/101-0000000a", "") in new stack

== Spawn extension (from-internal, 101, 3) exited non-zero on ‘PJSIP/101-0000000a’
<— Transmitting SIP request (441 bytes) to WSS:49.49.49.49:15422 —>
BYE sip:98o2n9u3@49.49.49.49:15422;transport=ws;ob SIP/2.0
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPjb41f3642-24cc-47c5-9cc0-9506c14d8f7a;alias
From: sip:101@OMMS.sytes.net;tag=1adc8ec4-a035-492d-ba74-6f402dbfaffd
To: sip:101@OMMS.sytes.net;tag=la6sfcp050
Call-ID: c65r2qh6m5sil03m4454
CSeq: 29203 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: Asterisk PBX 20.12.0
Content-Length: 0

<— Received SIP response (365 bytes) from WSS:49.49.49.49:15422 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 94.94.94.94:8089;rport;branch=z9hG4bKPjb41f3642-24cc-47c5-9cc0-9506c14d8f7a;alias
To: sip:101@OMMS.sytes.net;tag=la6sfcp050
From: sip:101@OMMS.sytes.net;tag=1adc8ec4-a035-492d-ba74-6f402dbfaffd
Call-ID: c65r2qh6m5sil03m4454
CSeq: 29203 BYE
Supported: outbound
User-Agent: SIP.js/0.11.0
Content-Length: 0

but still i cou’dnt hear any audio ( demo-congrats )

please help me with this

thanks and regards

Show the output of “rtp set debug on” which will indicate if media is flowing. If it is then on the past threads of people experiencing issues, it is commonly their browser side - specifically forgetting to attach the stream to an audio element and playing it so it is heard if I recall correctly.

Many thanks for your reply

*CLI>     -- Executing [101@from-internal:1] Answer("PJSIP/101-00000002", "") in new stack
       > 0x7f9f10033b10 -- Strict RTP learning after remote address set to: 49.49.49.49:15699
[Feb 19 14:23:30] ERROR[2809]: pjproject: <?>:     icess0x7f9f100a3808 ..Error sending STUN request: Network is unreachable
[Feb 19 14:23:30] ERROR[2809]: pjproject: <?>:     icess0x7f9f100a3808 ..Error sending STUN request: Network is unreachable
       > 0x7f9f10033b10 -- Strict RTP learning after ICE completion
       > 0x7f9f10033b10 -- Strict RTP learning after remote address set to: 49.49.49.49:15699
    -- Executing [101@from-internal:2] Playback("PJSIP/101-00000002", "hello-world") in new stack
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027684, ts 000160, len 000160)
    -- <PJSIP/101-00000002> Playing 'hello-world.gsm' (language 'en')
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027685, ts 000320, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027686, ts 000480, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027687, ts 000640, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027688, ts 000800, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027689, ts 000960, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027690, ts 001120, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027691, ts 001280, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027692, ts 001440, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027693, ts 001600, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027694, ts 001760, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027695, ts 001920, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027696, ts 002080, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027697, ts 002240, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027698, ts 002400, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027699, ts 002560, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027700, ts 002720, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027701, ts 002880, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027702, ts 003040, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027703, ts 003200, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027704, ts 003360, len 000160)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027705, ts 003520, len 000160)
       > 0x7f9f10033b10 -- Strict RTP switching to RTP target address 49.49.49.49:15699 as source
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026712, ts 3290273444, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026713, ts 3290273604, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027706, ts 003680, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027707, ts 003840, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026714, ts 3290273764, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027708, ts 004000, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026715, ts 3290273924, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027709, ts 004160, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026716, ts 3290274084, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027710, ts 004320, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026717, ts 3290274244, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027711, ts 004480, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026718, ts 3290274404, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027712, ts 004640, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026719, ts 3290274564, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027713, ts 004800, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026720, ts 3290274724, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027714, ts 004960, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026721, ts 3290274884, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027715, ts 005120, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026722, ts 3290275044, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027716, ts 005280, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026723, ts 3290275204, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027717, ts 005440, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026724, ts 3290275364, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027718, ts 005600, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026725, ts 3290275524, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027719, ts 005760, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026726, ts 3290275684, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027720, ts 005920, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026727, ts 3290275844, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027721, ts 006080, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026728, ts 3290276004, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027722, ts 006240, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026729, ts 3290276164, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027723, ts 006400, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026730, ts 3290276324, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027724, ts 006560, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026731, ts 3290276484, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027725, ts 006720, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026732, ts 3290276644, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027726, ts 006880, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026733, ts 3290276804, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027727, ts 007040, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026734, ts 3290276964, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027728, ts 007200, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026735, ts 3290277124, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027729, ts 007360, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026736, ts 3290277284, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027730, ts 007520, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026737, ts 3290277444, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027731, ts 007680, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026738, ts 3290277604, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027732, ts 007840, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026739, ts 3290277764, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027733, ts 008000, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026740, ts 3290277924, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027734, ts 008160, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026741, ts 3290278084, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027735, ts 008320, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026742, ts 3290278244, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027736, ts 008480, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026743, ts 3290278404, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027737, ts 008640, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026744, ts 3290278564, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027738, ts 008800, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026745, ts 3290278724, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027739, ts 008960, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026746, ts 3290278884, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027740, ts 009120, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026747, ts 3290279044, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027741, ts 009280, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026748, ts 3290279204, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027742, ts 009440, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026749, ts 3290279364, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027743, ts 009600, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026750, ts 3290279524, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027744, ts 009760, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026751, ts 3290279684, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027745, ts 009920, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026752, ts 3290279844, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027746, ts 010080, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026753, ts 3290280004, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027747, ts 010240, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026754, ts 3290280164, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027748, ts 010400, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026755, ts 3290280324, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027749, ts 010560, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026756, ts 3290280484, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027750, ts 010720, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026757, ts 3290280644, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027751, ts 010880, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026758, ts 3290280804, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027752, ts 011040, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026759, ts 3290280964, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027753, ts 011200, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026760, ts 3290281124, len 000170)
Sent RTP packet to      49.49.49.49:15699 (via ICE) (type 00, seq 027754, ts 011360, len 000170)
Got  RTP packet from    49.49.49.49:15699 (type 00, seq 026761, ts 3290281284, len 000170)
    -- Executing [101@from-internal:3] Hangup("PJSIP/101-00000002", "") in new stack
  == Spawn extension (from-internal, 101, 3) exited non-zero on 'PJSIP/101-00000002'

Browser index.html configuration:

<!DOCTYPE html>
<html lang="en">
<head>
 <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
    <audio id="remoteAudio"></audio>
    <audio id="localAudio" muted="muted"></audio>

        <audio id="dtmf_audio" preload="auto">
                <source src="dtmf.wav" type="audio/mpeg">
        </audio>

        <audio id="incoming_audio" preload="auto">
                <source src="ringtone.wav" type="audio/mpeg">
        </audio>


<div class="container">
<div class="row">
        <div class="col-lg-12">
        <br>
        </div>

</div>
<div class="row">
        <div class="col-lg-4">
        <div class="panel panel-default">
  <div class="panel-heading">
        <br><i id="uastatus"><img width="20" src="offline.png"></img>Offline</i>
</div>
        <div class="panel-body">
        <div class="well"><b>User credentials</b></div>
                User : <input type=text id=user value=""></input><br>
                <br>
                Pass : <input type="password" id=pass value=""></input><br>
                <br>
                <button id="registerbutton" onclick=regclicked() class="btn btn-block btn-success" >Register</button>
                </div>
        </div>
        </div>
        <div class="col-lg-4">
                <div class="panel panel-primary">
  <div class="panel-heading">
        <b>Phone Interface</b>
</div>
        <div class="panel-body">

                          <table  class="table table-responsive">
                          <tr>
                          <td>
                          <span id="status" ></span>
                          </td>
                          </tr>

                          <tr>
                          <td>
                          <input id="phonenumbertxt" class="form-control" placeholder="Enter Number to Dial" type="text"></input>
                          </td>
                          </tr>
                          </table>

                          <table  class="table table-responsive">
                                <tr>

                                        <td>
                                                <button title="Mute/Unmute" onclick="mute()" class="btn btn-block btn-success" value="1"><i class="fa fa-microphone-slash"></i></button>
                                        </td>
                                        <td>
                                                <button title="Transfer" onclick="transfer()" class="btn btn-block  btn-success" value="2"><i class="glyphicon glyphicon-transfer"></i></button>
                                        </td>
                                        <td>
                                                <button title="Conference" onclick="conf()"  class="btn btn-block  btn-success" value="3"><i class="fa fa-users"></i></button>

                                        </td>
                                </tr>
                                <tr>
                                <tr>

                                        <td>

                                                        <button onclick="adddigit(this)" class="btn btn-block btn-success" value="1">1</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="2">2</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)"  class="btn btn-block  btn-success" value="3">3</button>

                                        </td>
                                </tr>
                                <tr>

                                        <td>

                                                        <button onclick="adddigit(this)" class="btn btn-block btn-success" value="4">4</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="5">5</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="6">6</button>

                                        </td>
                                </tr>
                                <tr>

                                        <td>

                                                        <button onclick="adddigit(this)" class="btn btn-block btn-success" value="7">7</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="8">8</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="9">9</button>

                                        </td>
                                </tr>
                                <tr>

                                        <td>

                                                        <button onclick="adddigit(this)" class="btn btn-block btn-success" value="*">*</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="0">0</button>
                                                        </td><td>
                                                        <button onclick="adddigit(this)" class="btn btn-block  btn-success" value="#">#</button>

                                        </td>
                                </tr>
                                <tr>
                                    <td><button id="callbutton" onclick="call()" class="btn btn-block btn-success " ><i class="material-icons">call</i> </button></td>
                                        <td><button id="holdbutton" onclick="hold()" class="btn btn-block btn-warning " ><i class="material-icons">pause</i> </button></td>
                                        <td><button id="hangupbutton" onclick="hangup()" class="btn btn-block btn-danger" ><i class="material-icons">call_end</i></button></td>


                                </tr>
                        </table>
        </div>
        </div>
        </div>
        </div>
</div>

<!--<script src="sip-0.11.0.min.js"></script> -->

<script src="sip-0.11.0.min.js"></script>

<script>

var session;
var userAgent;

var serverip;
var wuser;
var wpass;

var connected = "0";
var concount = "0";
var incomingcall = false;
var incomingfrom = "";

var onhold = false;
var onmute = false;
var regcount = 0;
var regclick = true;
var autoreg = true;

setInterval(function () {
    if (connected == "1") {
        var date = new Date(null);
        date.setSeconds(concount);
        var myDate = date.toISOString().substr(11, 8);
        document.getElementById('status').innerHTML = "<br>Connected to : " + incomingfrom + "<br>" + myDate;
        concount++;
    }
}, 1000);

function regclicked() {
    if (!userAgent || !userAgent.isRegistered()) {
        registerua();
    } else {
        unregister();
    }
}

function registerua() {
    serverip = "OMMS.sytes.net";
    wuser = document.getElementById('user').value;
    wpass = document.getElementById('pass').value;

    if (!serverip || !wuser || !wpass) {
        console.log("Missing Server IP, Username, or Password");
        return;
    }

    userAgent = new SIP.UA({
        uri: wuser + '@' + serverip,
        transportOptions: {
            wsServers: ['wss://' + serverip + ':8089/ws'],
            traceSip: true
        },
        authorizationUser: wuser,
        password: wpass,
        register: true,
        iceCheckingTimeout: 5000,
        sessionDescriptionHandlerFactoryOptions: {
            constraints: { audio: true, video: false },
            peerConnectionOptions: {
                rtcConfiguration: {
                    iceServers: [
                        { urls: "stun:stun.l.google.com:19302" },
                        //{ urls: "turn:turn.example.com", username: "user", credential: "password" }
                        {urls: "turn:OMMS.sytes.net:3478", username: wuser, credential: wpass }
                    ],
                    //iceTransportPolicy: "all",
                    //rtcpMuxPolicy: "require"
                }
            }
        }

    });

    userAgent.on('registered', function () {
        document.getElementById('uastatus').innerHTML = "<img width='20' src='online.png'></img> Registered";
        document.getElementById('registerbutton').innerHTML = "Unregister";
    });

    userAgent.on('unregistered', function (response, cause) {
        document.getElementById('uastatus').innerHTML = "<img width='20' src='offline.png'></img> Offline";
        document.getElementById('registerbutton').innerHTML = "Register";
    });

    userAgent.transport.on('transportClosed', function () {
        console.warn("WebSocket connection lost. Attempting to reconnect...");
        setTimeout(() => {
            userAgent.stop().then(() => {
                return userAgent.start();
            }).catch(error => console.error("Reconnection failed", error));
        }, 3000);
    });

    userAgent.on('invite', function (insession) {
        session = insession;
        document.getElementById('incoming_audio').play();
        var clid = session.remoteIdentity.displayName || session.remoteIdentity.uri.user;

        document.getElementById('status').innerHTML = "Incoming Call from: " + clid;
        incomingcall = true;
        document.getElementById('callbutton').innerHTML = "Accept";

        session.on('accepted', function (data) {
            connected = "1";
            concount = 0;
            incomingcall = false;
            incomingfrom = clid;
            document.getElementById('callbutton').innerHTML = "<i class='material-icons'>call</i>";

            var pc = session.sessionDescriptionHandler.peerConnection;
            var remoteStream = new MediaStream();
            pc.getReceivers().forEach(receiver => remoteStream.addTrack(receiver.track));
            document.getElementById('remoteAudio').srcObject = remoteStream;

            var localStream = new MediaStream();
            pc.getSenders().forEach(sender => localStream.addTrack(sender.track));
            document.getElementById('localAudio').srcObject = localStream;
        });

        session.on('terminated', function (message, cause) {
            console.warn("Call Terminated: ", cause);
            connected = "0";
            concount = "0";
            incomingcall = false;
            incomingfrom = "";
            document.getElementById('status').innerHTML = "Call Ended";
            document.getElementById('phonenumbertxt').value = "";
        });
    });
}

function unregister() {
    if (userAgent) {
        userAgent.unregister({ all: false });
    }
}


function hangup() {
    if (incomingcall) {
        session.reject();
        incomingcall = false;
    } else if (session) {
        session.bye();
    }
}


function hold() {
    if (connected == "1" && session) {
        if (onhold) {
            session.unhold().then(() => {
                onhold = false;
                console.log("Call unheld");
            }).catch(error => console.error("Unhold failed", error));
        } else {
            session.hold().then(() => {
                onhold = true;
                console.log("Call held");
            }).catch(error => console.error("Hold failed", error));
        }
    } else {
        alert("No call connected");
    }
}

function mute() {
    if (connected == "1" && session) {
        let pc = session.sessionDescriptionHandler.peerConnection;
        pc.getSenders().forEach(sender => {
            if (sender.track.kind === "audio") {
                sender.track.enabled = !sender.track.enabled;
            }
        });
    } else {
        alert("No call connected");
    }
}

function call() {
    if (incomingcall) {
        session.accept({
            sessionDescriptionHandlerOptions: { constraints: { audio: true, video: false } }
        }).then(() => {
            console.log("Call accepted successfully");
        }).catch(error => {
            console.error("Call acceptance failed", error);
        });
    } else {
        var options = {
            sessionDescriptionHandlerOptions: { constraints: { audio: true, video: false } }
        };
        var num = document.getElementById('phonenumbertxt').value;
        session = userAgent.invite('sip:' + num + '@' + serverip, options);

        session.on('trackAdded', function () {
            var pc = session.sessionDescriptionHandler.peerConnection;
            var remoteStream = new MediaStream();
            pc.getReceivers().forEach(receiver => remoteStream.addTrack(receiver.track));
            document.getElementById('remoteAudio').srcObject = remoteStream;

            var localStream = new MediaStream();
            pc.getSenders().forEach(sender => localStream.addTrack(sender.track));
            document.getElementById('localAudio').srcObject = localStream;
        });

        session.on('accepted', function () {
            connected = "1";
            concount = "0";
            incomingcall = false;
            incomingfrom = num;
        });

        session.on('terminated', function (message, cause) {
            console.warn("Call Terminated: ", cause);
            connected = "0";
            concount = "0";
            incomingcall = false;
            incomingfrom = "";
            document.getElementById('status').innerHTML = "Call Ended";
        });
    }
}

function adddigit(digit) {
    if (connected == "1") {
        document.getElementById('dtmf_audio').play();
        document.getElementById('phonenumbertxt').value += digit.value;
        session.dtmf(digit.value);
        console.log(digit.value);
    } else {
        document.getElementById('dtmf_audio').play();
        document.getElementById('phonenumbertxt').value += digit.value;
    }
}


</script>
</body>

Please help me with this

thanks and regards

Media is flowing from the Asterisk perspective. I don’t do the browser side, so someone else will have to chime in if they wish.

1 Like

thank you so much for your help and suggestion…
i will try to take help from web team

thanks and regards once again