Hi , i have a scenario (there is a chance this question is duplicate but bare with me please) . I have set a remote Janus server on AWS , i have exposed all UDP ports (0-65535) in the security groups , i have also set a coturn server using this article
I have handled both calling and receiving incoming via sip plugin . So i have a sip gateway (Asterisk 18.3.0 version) . I am having a problem when handling the incoming call event . Yes i manage to send the accept event to Janus the call starts but i am not getting any audio on a remote server ,locally its working (i am getting audio) .
My configs :
janus.jcfg - {
stun_port = 3478
nice_debug = false
full_trickle = true
#ice_lite = true
#ice_tcp = true
nat_1_1_mapping = "PUBLIC_IP_FROM_AWS"
turn_server = "PUBLIC_IP_FROM_AWS"
turn_port = 3478
turn_type = "tcp"
turn_user = "userroot"
turn_pwd = "y1o2DfBu1h4av5etTho"
}
As shown above i have setup on the corturn server as shown using credentials as shown .
janus.plugin.sip.jcfg - {
local_ip = "PUBLIC_IP_FROM_AWS"
sdp_ip = "PUBLIC_IP_FROM_AWS"
behind_nat = true
rtp_port_range = "0-65535"
}
i have substituted the server ip address with PUBLIC_IP_FROM_AWS for the sake of this example so that others can benefit as well .
Below are logs i am getting from my android app from janus .
"jsep": {
"type": "offer",
"sdp": "v=0\r\no=- 388609065 388609065 IN IP4 3.64.60.46\r\ns=Asterisk\r\nt=0 0\r\na=group:BUNDLE audio\r\na=msid-semantic: WMS janus\r\nm=audio 9 UDP/TLS/RTP/SAVPF 8 101\r\nc=IN IP4 3.64.60.46\r\na=sendrecv\r\na=mid:audio\r\na=rtcp-mux\r\na=ice-ufrag:4eJw\r\na=ice-pwd:oDpqN+opNuQpXkEzKU7Nh7\r\na=ice-options:trickle\r\na=fingerprint:sha-256 55:C5:68:19:F7:64:F3:49:4E:DC:4B:4C:51:EB:72:E6:AF:99:B2:26:B3:83:84:8E:C5:F6:C2:D4:DC:76:CE:E2\r\na=setup:actpass\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=ptime:20\r\na=maxptime:150\r\na=msid:janus janusa0\r\na=ssrc:3048226372 cname:janus\r\na=ssrc:3048226372 msid:janus janusa0\r\na=ssrc:3048226372 mslabel:janus\r\na=ssrc:3048226372 label:janusa0\r\n"
}
{
"janus": "trickle",
"session_id": 3184109748864224,
"sender": 3799766952334023,
"candidate": {
"sdpMid": "audio",
"sdpMLineIndex": 0,
"candidate": "candidate:2 1 udp 1679819007 3.64.60.46 43420 typ srflx raddr 172.31.41.177 rport 43420"
}
}
{
"janus": "trickle",
"session_id": 3184109748864224,
"sender": 3799766952334023,
"candidate": {
"sdpMid": "audio",
"sdpMLineIndex": 0,
"candidate": "candidate:2 1 udp 1679819007 3.64.60.46 43420 typ srflx raddr 172.31.41.177 rport 43420"
}
}
{
"janus": "trickle",
"session_id": 3184109748864224,
"sender": 3799766952334023,
"candidate": {
"completed": true
}
}
{
"janus": "ack",
"session_id": 3184109748864224,
"transaction": "gLfKFA8MMjZo"
}
{
"janus": "event",
"session_id": 3184109748864224,
"transaction": "gLfKFA8MMjZo",
"sender": 3799766952334023,
"plugindata": {
"plugin": "janus.plugin.sip",
"data": {
"sip": "event",
"result": {
"event": "accepted"
},
"call_id": "05bde116-93ad-4792-af21-783fcc4cc24b"
}
}
}
{
"janus": "event",
"session_id": 3184109748864224,
"sender": 3799766952334023,
"plugindata": {
"plugin": "janus.plugin.sip",
"data": {
"sip": "event",
"result": {
"event": "hangup",
"code": 200,
"reason": "Session Terminated"
},
"call_id": "05bde116-93ad-4792-af21-783fcc4cc24b"
}
}
}
{
"janus": "hangup",
"session_id": 3184109748864224,
"sender": 3799766952334023,
"reason": "Close PC"
}
{
"janus": "ack",
"session_id": 3184109748864224,
"transaction": "QNrlOjLAxsQ1"
}
So please can any one help me why i am not getting any audio despite the above configs when i answer the call .