naidu / sipml5

Automatically exported from code.google.com/p/sipml5
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

SIPml5 behind NAT, Freeswitch on Amazon EC2, Calll Hang Up #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (Wireshark) or Javascript console log
if you want quick response

What steps will reproduce the problem?
1. Calling any freeswitch extension (including the IVR) from chrome client

What is the expected output? What do you see instead?

Expected: Connected call, audio at both side. 
Instead: When the client has Public IP, it works perfectly. When the client is 
behind NAT (has a private IP) call is hangup. 

What version of the product are you using? On what operating system?
OS: Mac OS X 10.9.4
SIPml-api: 1.4.217
Freeswitch: FreeSWITCH Version 1.5.14b on Amazon EC2 Ubuntu 14.04
Chrome: Version 37.0.2062.122 or Firefox: 32.0.1

Please provide any additional information below.

/**************************************************************************/
Same network and settings other softphones work fine. 

/**************************************************************************/
SIPMl Stack:

oSipStack = new SIPml.Stack({
realm : '54.69.89.143',
impi : '1005',
impu : 'sip:1005@54.69.89.143',
password : 'XXXXXXXX', //optional
enable_rtcweb_breaker : 'true',
ice_servers : [{
url : 'stun:stun.l.google.com:19302'
}, {
url : 'turn:numb.viagenie.ca',
username :    'XXXXX',
credential : 'XXXXX'
}]
});

/**************************************************************************/
FreeSwitch Log:

2014-09-23 00:48:18.123774 [WARNING] switch_core_media.c:3548 Crypto not 
negotiated but required.
2014-09-23 00:48:18.123774 [NOTICE] switch_channel.c:3727 Hangup 
sofia/internal/1005@54.69.89.143 [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2014-09-23 00:48:18.123774 [NOTICE] switch_core_session.c:1633 Session 10 
(sofia/internal/1005@54.69.89.143) Ended
2014-09-23 00:48:18.123774 [NOTICE] switch_core_session.c:1637 Close Channel 
sofia/internal/1005@54.69.89.143 [CS_DESTROY]

/**************************************************************************/
JavaScript Log:

onGetUserMediaSuccess SIPml-api.js:1
createOffer SIPml-api.js:1
onCreateSdpSuccess SIPml-api.js:1
onSetLocalDescriptionSuccess SIPml-api.js:1
9onIceCandidate = undefined SIPml-api.js:1
ICE GATHERING COMPLETED! SIPml-api.js:1
onIceGatheringCompleted SIPml-api.js:1
SEND: INVITE sip:5000@54.69.89.143 SIP/2.0
Via: SIP/2.0/WSS 
df7jal23ls0d.invalid;branch=z9hG4bKK4NPEnPd9eX53E8qW6AvweJ7BDdbGvUG;rport
From: <sip:1005@54.69.89.143>;tag=DecJ2KytcDnRO6FzNvXz
To: <sip:5000@54.69.89.143>
Contact: 
"undefined"<sips:1005@df7jal23ls0d.invalid;rtcweb-breaker=yes;click2call=no;tran
sport=wss>;impi=1005;ha1=75339c05c37cc18880d49a4300cc4ccb;+g.oma.sip-im;+sip.ice
;language="en,fr"
Call-ID: 9e3fb96b-f1e2-ab10-36f0-43194e5d6b0c
CSeq: 16578 INVITE
Content-Type: application/sdp
Content-Length: 1987
Max-Forwards: 70

v=0
o=- 8297082278286409000 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS NSxuIMeV0hbmKhPIBicVb2VvSsIi4KUqb6Jv
m=audio 51969 UDP/TLS/RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 66.228.45.110
a=rtcp:51969 IN IP4 66.228.45.110
a=candidate:1777363142 1 udp 2122194687 192.168.1.153 54648 typ host generation 
0
a=candidate:1777363142 2 udp 2122194687 192.168.1.153 54648 typ host generation 
0
a=candidate:661886006 1 tcp 1518214911 192.168.1.153 0 typ host generation 0
a=candidate:661886006 2 tcp 1518214911 192.168.1.153 0 typ host generation 0
a=candidate:3904401010 1 udp 1685987071 172.7.49.159 54648 typ srflx raddr 
192.168.1.153 rport 54648 generation 0
a=candidate:3904401010 2 udp 1685987071 172.7.49.159 54648 typ srflx raddr 
192.168.1.153 rport 54648 generation 0
a=candidate:2565634929 1 udp 41819903 66.228.45.110 51969 typ relay raddr 
172.7.49.159 rport 59579 generation 0
a=candidate:2565634929 2 udp 41819903 66.228.45.110 51969 typ relay raddr 
172.7.49.159 rport 59579 generation 0
a=ice-ufrag:jIw+M1L73MSO3cvj
a=ice-pwd:VKqiGDaN6FS0NQ8nPyH7/Ilo
a=ice-options:google-ice
a=fingerprint:sha-256 
A2:D4:9E:13:E6:AB:40:AA:3D:40:1D:2E:67:4D:0D:BD:25:27:5F:78:46:F3:30:20:54:2D:80
:B2:B9:10:05:CD
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:2953671492 cname:v8nmdNn7MmuBdvHe
a=ssrc:2953671492 msid:NSxuIMeV0hbmKhPIBicVb2VvSsIi4KUqb6Jv 
96afbdcc-4118-4bda-8ff5-74a8a1d8e418
a=ssrc:2953671492 mslabel:NSxuIMeV0hbmKhPIBicVb2VvSsIi4KUqb6Jv
a=ssrc:2953671492 label:96afbdcc-4118-4bda-8ff5-74a8a1d8e418
 SIPml-api.js:1
__tsip_transport_ws_onmessage SIPml-api.js:1
recv=SIP/2.0 100 Trying (sent from the Transaction Layer)
Via: SIP/2.0/WSS 
df7jal23ls0d.invalid;rport;branch=z9hG4bKK4NPEnPd9eX53E8qW6AvweJ7BDdbGvUG
From: <sip:1005@54.69.89.143>;tag=DecJ2KytcDnRO6FzNvXz
To: <sip:5000@54.69.89.143>
Call-ID: 9e3fb96b-f1e2-ab10-36f0-43194e5d6b0c
CSeq: 16578 INVITE
Content-Length: 0

 SIPml-api.js:1
State machine: x0000_Any_2_Any_X_i1xx SIPml-api.js:1
__tsip_transport_ws_onmessage SIPml-api.js:1
recv=SIP/2.0 180 Ringing
Via: SIP/2.0/WSS 
df7jal23ls0d.invalid;rport;branch=z9hG4bKK4NPEnPd9eX53E8qW6AvweJ7BDdbGvUG
From: <sip:1005@54.69.89.143>;tag=DecJ2KytcDnRO6FzNvXz
To: <sip:5000@54.69.89.143>;tag=12356693502
Contact: 
<sips:5000@188.165.231.30:13062;transport=wss;ws-src-ip=172.7.49.159;ws-src-port
=58774;ws-src-proto=wss>
Call-ID: 9e3fb96b-f1e2-ab10-36f0-43194e5d6b0c
CSeq: 16578 INVITE
Content-Length: 0
Allow: ACK,BYE,CANCEL,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,UPDATE

 SIPml-api.js:1
State machine: x0000_Any_2_Any_X_i1xx SIPml-api.js:1
__tsip_transport_ws_onmessage SIPml-api.js:1
recv=SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/WSS 
df7jal23ls0d.invalid;rport;branch=z9hG4bKK4NPEnPd9eX53E8qW6AvweJ7BDdbGvUG
From: <sip:1005@54.69.89.143>;tag=DecJ2KytcDnRO6FzNvXz
To: <sip:5000@54.69.89.143>;tag=12356693502
Call-ID: 9e3fb96b-f1e2-ab10-36f0-43194e5d6b0c
CSeq: 16578 INVITE
Content-Length: 0
Reason: text="Not Acceptable Here";cause=488;text="Not Acceptable Here"

 SIPml-api.js:1
SEND: ACK sip:5000@54.69.89.143 SIP/2.0
Via: SIP/2.0/WSS 
df7jal23ls0d.invalid;branch=z9hG4bKK4NPEnPd9eX53E8qW6AvweJ7BDdbGvUG;rport
From: <sip:1005@54.69.89.143>;tag=DecJ2KytcDnRO6FzNvXz
To: <sip:5000@54.69.89.143>;tag=12356693502
Call-ID: 9e3fb96b-f1e2-ab10-36f0-43194e5d6b0c
CSeq: 16578 ACK
Content-Length: 0
Max-Forwards: 70

 SIPml-api.js:1
State machine: c0000_Outgoing_2_Terminated_X_i300_to_i699INVITE SIPml-api.js:1
=== INVITE Dialog terminated === SIPml-api.js:1
PeerConnection::stop() SIPml-api.js:1
The FSM is in the final state SIPml-api.js:1
2__tsip_transport_ws_onclose 
/**************************************************************************/

Original issue reported on code.google.com by malihe...@gmail.com on 23 Sep 2014 at 1:33

GoogleCodeExporter commented 9 years ago
Problem fixed by defining websocket_proxy_url, and outbound_proxy_url on the 
client and uncommenting 
<param name="ws-binding"  value=":5066"/> and 
<param name="wss-binding" value=":7443"/>
in internal.xml.

Original comment by malihe...@gmail.com on 30 Sep 2014 at 12:15

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 10 Dec 2014 at 11:26