JSSIP/SIP-JS calls dropping out...

300 views
Skip to first unread message

kasin...@gmail.com

unread,
Apr 4, 2014, 1:00:07 AM4/4/14
to sip...@googlegroups.com
I am getting a dropout while making a call using jssip/sipjs library. There is no audio too. Following is shown in javascript console.

====
Fri Apr 04 2014 10:14:30 GMT+0530 (IST) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response sip-0.5.0.js:170
Fri Apr 04 2014 10:14:34 GMT+0530 (IST) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response sip-0.5.0.js:170
Fri Apr 04 2014 10:14:38 GMT+0530 (IST) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response sip-0.5.0.js:170
Fri Apr 04 2014 10:14:42 GMT+0530 (IST) | sip.sanitycheck | Via sent-by in the response does not match UA Via host value. Dropping the response sip-0.5.0.js:170

Set up involves an asterisk server and webrtc service.

Below given is the sample html page I am using to test.
=====
<!DOCTYPE html>
<html>
<head>
<!-- <script type="text/javascript" src="SIPml-api.js"></script> -->
</head>

<body>
Hello woirld
<video id="remoteVideo"></video>
<video id="localVideo" muted="muted"></video>
<button type="button" id="endButton">End</button>
<button type="button" id="callButton">Call</button>
</body>
<script type="text/javascript" src="sip-0.5.0.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">

(function () {
var session;

function onAccepted () {
alert("You made a call!");
}

var userAgent = new SIP.UA({
uri: 'sip:1...@X.X.X.X',
// wsServers: ['ws://mywebrtc.com:10060'],
wsServers: ['wss://mywebrtc.com:10062'],
authorizationUser: '100',
password: '1234'
});


$( document ).ready(function() {

var endButton = document.getElementById('endButton');
endButton.addEventListener("click", function() {
session.bye();
alert("Call Ended");
}, false);

});


//here you determine whether the call has video and audio
var options = {
mediaConstraints: {
audio: true,
video: true
}
};
//makes the call
session = userAgent.invite('111', options);
session.on('accepted', onAccepted);

}) ();

</script>
</html>


=====

Can somebody help me on this?

Bryan Wade

unread,
Apr 4, 2014, 9:49:06 AM4/4/14
to sip...@googlegroups.com, kasin...@gmail.com
Hey, Thanks for trying SIP.js out!  

 We'll look into this; we think that it might be a problem with your asterisk configuration.  Can you include a log of the call with SIP trace enabled?

Will Mitchell

unread,
Apr 28, 2014, 9:22:48 AM4/28/14
to sip...@googlegroups.com, kasin...@gmail.com
A WebRTC troubleshooting guide was just posted on Asterisk's forums: http://forums.digium.com/viewtopic.php?f=1&t=90167&sid=66fdf8cc4be5d955ba584e989a23442f
Reply all
Reply to author
Forward
0 new messages