Comments (4)
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.
from onsip-cordova.
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:[email protected] SIP/2.0
Via: SIP/2.0/WS 7ci8m7sqp6j0.invalid;branch=z9hG4bK4697752
Max-Forwards: 70
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=iesac5o5af
Call-ID: 340lhbhcmtajakmtio68
CSeq: 5306 INVITE
Authorization: Digest algorithm=MD5, username="user", realm="xivo", nonce="4f33d322", uri="sip:[email protected]", response="f6d9e5707d8643b97d866973102c01df"
Contact: <sip:[email protected];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
from onsip-cordova.
@Frulko you should change file PhoneRTCDelegate.m in plugin as:
self.doVideo = FALSE; // before is: self.doVideo = YES;
from onsip-cordova.
Already done that but thats not the issue. The issue is call is dropped just after some seconds on iOS. Can somebody help
from onsip-cordova.
Related Issues (20)
- iOS to Web interoperability? HOT 6
- example code typo: "com.onsip.cordova.Sip.js" should be "com.onsip.cordova.Sipjs"
- SIP INVITE not send HOT 5
- One-way audio with PSTN to iOS 8 HOT 16
- Build Issue HOT 6
- Compile the WebRTC libraries for other architecture than arm7 HOT 1
- Investigate cordova-plugin-webrtc
- Can no longer submit to App Store due to lack of 64-bit support HOT 3
- Issue with the Get started example
- Undefined symbols for architecture i386 - ionic build ios HOT 2
- Try to receive call on iOS but not sure how HOT 5
- Video in browser Side HOT 1
- build in Xcode 7.1 HOT 4
- Called in wrong state: STATE_INPROGRESS. App crashes when the target party receives call
- plugin add not woking
- Can't show video on ios HOT 4
- Problem when integrating onsip-cordova
- Old plugin in registry HOT 2
- plugin installing and run for iOS error HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onsip-cordova.