Giter Club home page Giter Club logo

Comments (4)

egreenmachine avatar egreenmachine commented on June 16, 2024

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.

Frulko avatar Frulko commented on June 16, 2024

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.

vinhthien0301 avatar vinhthien0301 commented on June 16, 2024

@Frulko you should change file PhoneRTCDelegate.m in plugin as:
self.doVideo = FALSE; // before is: self.doVideo = YES;

from onsip-cordova.

HabibAli avatar HabibAli commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.