Open Frulko opened 9 years ago
The fact that it works with onsip sounds like it is a problem with you SIP server. The libraries used on iOS are more sensitive to mishaps than those used on the browser. I pushed several updates to the project, so try the latest version and see if that resolves your issue.
Hi, thanks for your answer. In fact I checked on the server the logs. It seems that the phonegap plugin makes the call with video but I set video to false in my Javascript declaration. The server saw the video request and it denied the call.
Can I force the call without the video only audio ? Thanks
The logs :
INVITE sip:06123456@xxx.yyy.zzz.www SIP/2.0
Via: SIP/2.0/WS 7ci8m7sqp6j0.invalid;branch=z9hG4bK4697752
Max-Forwards: 70
To: <sip:06123456@xxx.yyy.zzz.www>
From: <sip:user@xxx.yyy.zzz.www>;tag=iesac5o5af
Call-ID: 340lhbhcmtajakmtio68
CSeq: 5306 INVITE
Authorization: Digest algorithm=MD5, username="user", realm="xivo", nonce="4f33d322", uri="sip:06123456@xxx.yyy.zzz.www", response="f6d9e5707d8643b97d866973102c01df"
Contact: <sip:7vo8vjof@7ci8m7sqp6j0.invalid;transport=ws;ob>
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY
Content-Type: application/sdp
Supported: outbound
User-Agent: SIP.js/0.6.4
Content-Length: 4258
v=0
o=- 3115888991610566656 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS ARDAMS
m=audio 1 RTP/SAVPF 103 111 9 102 0 8 106 105 13 127 126
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:ldIgjUOeYByftxYH
a=ice-pwd:duBtoop5VGhUCVE9KFyI2Bek
a=ice-options:google-ice
a=fingerprint:sha-1 9B:72:40:A0:5F:1A:B5:FE:27:89:94:07:E1:D5:7F:7C:8A:83:3E:13
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:9 G722/16000
a=rtpmap:102 ILBC/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:127 red/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:1491740405 cname:Qmf54D5xIWQvIpR/
a=ssrc:1491740405 msid:ARDAMS ARDAMSa0
a=ssrc:1491740405 mslabel:ARDAMS
a=ssrc:1491740405 label:ARDAMSa0
a=candidate:1484770847 1 udp 2122129151 10.229.143.116 52473 typ host generation 0
a=candidate:1484770847 2 udp 2122129151 10.229.143.116 52473 typ host generation 0
a=candidate:1021689336 1 udp 2122063615 192.168.1.160 58204 typ host generation 0
a=candidate:1021689336 2 udp 2122063615 192.168.1.160 58204 typ host generation 0
a=candidate:385626863 1 tcp 1518149375 10.229.143.116 49696 typ host generation 0
a=candidate:385626863 2 tcp 1518149375 10.229.143.116 49696 typ host generation 0
a=candidate:1919303944 1 tcp 1518083839 192.168.1.160 49697 typ host generation 0
a=candidate:1919303944 2 tcp 1518083839 192.168.1.160 49697 typ host generation 0
a=candidate:3182279500 1 udp 1685855999 yyy.zzz.xxx.www 59292 typ srflx raddr 192.168.1.160 rport 58204 generation 0
a=candidate:3182279500 2 udp 1685855999 yyy.zzz.xxx.www 59292 typ srflx raddr 192.168.1.160 rport 58204 generation 0
a=candidate:2498949516 1 udp 1685921535 yyy.xxx.zzz.www 52473 typ srflx raddr 10.229.143.116 rport 52473 generation 0
a=candidate:2498949516 2 udp 1685921535 yyy.xxx.zzz.www 52473 typ srflx raddr 10.229.143.116 rport 52473 generation 0
m=video 1 RTP/SAVPF 100 116 117 96
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=ice-ufrag:ldIgjUOeYByftxYH
a=ice-pwd:duBtoop5VGhUCVE9KFyI2Bek
a=ice-options:google-ice
a=fingerprint:sha-1 9B:72:40:A0:5F:1A:B5:FE:27:89:94:07:E1:D5:7F:7C:8A:83:3E:13
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=rtpmap:96 rtx/90000
a=fmtp:96 apt=100
a=ssrc-group:FID 2396927922 658586006
a=ssrc:2396927922 cname:Qmf54D5xIWQvIpR/
a=ssrc:2396927922 msid:ARDAMS ARDAMSv0
a=ssrc:2396927922 mslabel:ARDAMS
a=ssrc:2396927922 label:ARDAMSv0
a=ssrc:658586006 cname:Qmf54D5xIWQvIpR/
a=ssrc:658586006 msid:ARDAMS ARDAMSv0
a=ssrc:658586006 mslabel:ARDAMS
a=ssrc:658586006 label:ARDAMSv0
a=candidate:1484770847 1 udp 2122129151 10.229.143.116 52473 typ host generation 0
a=candidate:1021689336 1 udp 2122063615 192.168.1.160 58204 typ host generation 0
a=candidate:1484770847 2 udp 2122129151 10.229.143.116 52473 typ host generation 0
a=candidate:1021689336 2 udp 2122063615 192.168.1.160 58204 typ host generation 0
a=candidate:385626863 1 tcp 1518149375 10.229.143.116 49696 typ host generation 0
a=candidate:385626863 2 tcp 1518149375 10.229.143.116 49696 typ host generation 0
a=candidate:1919303944 1 tcp 1518083839 192.168.1.160 49697 typ host generation 0
a=candidate:1919303944 2 tcp 1518083839 192.168.1.160 49697 typ host generation 0
a=candidate:3182279500 1 udp 1685855999 yyy.zzz.xxx.www 59292 typ srflx raddr 192.168.1.160 rport 58204 generation 0
a=candidate:3182279500 2 udp 1685855999 yyy.zzz.xxx.www 59292 typ srflx raddr 192.168.1.160 rport 58204 generation 0
a=candidate:2498949516 1 udp 1685921535 yyy.xxx.zzz.www 52473 typ srflx raddr 10.229.143.116 rport 52473 generation 0
a=candidate:2498949516 2 udp 1685921535 yyy.xxx.zzz.www 52473 typ srflx raddr 10.229.143.116 rport 52473 generation 0
@Frulko you should change file PhoneRTCDelegate.m in plugin as: self.doVideo = FALSE; // before is: self.doVideo = YES;
Already done that but thats not the issue. The issue is call is dropped just after some seconds on iOS. Can somebody help
Hi everyone, first thank you for your plugin. It's very cool and useful. I have a little problem :
I work with a custom SIP server. I wrote an example code which works on my browser. But the same code on iOS (with ios specifics settings) doesn't work. Few logs have been generated on XCode but the calling failed.
I tried your example code to make a call with the "sip:welcome@onsip.com" and it works.
Here the generated logs :
And my code :
Thank you for your helping :)