Hello,
I have installed janus server in one of my server in my local network
I have downloaded the siptest.html, siptest.js, settings.js and janus.js in my local computer and connected websocket to janus server in my local network. Everything works fine for registration and my sip account is registered with kamailio server through janus server. All three devices are in same LAN.In kamailio the contact address is shown as Janus server ip.
But the issue is -
When I am making call from my local computer using siptest.html, the call is directly going to kamailio server from my local computer and because of that reason the call is getting rejected by kamailio. The call should actualy go via websocket connection though janus server.
kindly help me for this issue.
I also tried with janus-gateway library in angular and that also behaved same. Kindly suggest how can i solve this, I am using janus first time.
logs from my browser console is as follows, when i tried from angular janus-gateway client
Angular is running in development mode. Call enableProdMode() to enable production mode.
janus.component.ts:24 Initializing library
janus.component.ts:33 Library initialized: true
janus.component.ts:33 Using WebSockets to contact Janus: ws://10.13.1.137:8188/janus
janus.js:793 Created session: 734999196496576
janus.js:995 Created handle: 4906770995621481
janus.component.ts:43 Plugin attached! (janus.plugin.sip, id=4906770995621481)
janus.component.ts:53 this.sipcall undefined
janus.component.ts:103 this.sipcall {session: Janus, plugin: ‘janus.plugin.sip’, id: 4906770995621481, token: null, detached: false, …}
janus.js:1626 Creating PeerConnection
janus.js:1635 Preparing local SDP and gathering candidates (trickle=true)
janus.js:1683 Adding local stream
janus.js:1685 Adding local track: MediaStreamTrack {kind: ‘audio’, id: ‘ac98f7b8-8977-4473-8b07-42ede7fc4230’, label: ‘Default’, enabled: true, muted: false, …}
janus.js:2296 Creating offer (iceDone=false)
janus.js:2406 Setting local description
janus.js:2428 Offer ready
janus server logs are as follows
Apr 14 16:53:37 ubuntu janus[1894]: [6715587489114799] WebRTC resources freed; 0x7fddec002090 0x7fdda800c620
Apr 14 17:06:07 ubuntu janus[1894]: Destroying session 1758689402818897; 0x7fdda800c620
Apr 14 17:06:08 ubuntu janus[1894]: Detaching handle from JANUS SIP plugin; 0x7fddec002090 0x7fdda4012640 0x7fddec002090 0x7fddec006d90
Apr 14 17:06:08 ubuntu janus[1894]: [WSS-0x7fdda40018a0] Destroying WebSocket client
Apr 14 17:06:08 ubuntu janus[1894]: [6715587489114799] Handle and related resources freed; 0x7fddec002090 0x7fdda800c620
Apr 14 17:06:08 ubuntu janus[1894]: Creating new session: 734999196496576; 0x7fddec001bd0
Apr 14 17:06:08 ubuntu janus[1894]: Creating new handle in session 734999196496576: 4906770995621481; 0x7fddec001bd0 0x7fddec002090
Apr 14 17:06:15 ubuntu janus[1894]: [4906770995621481] Creating ICE agent (ICE Full mode, controlled)
Apr 14 17:06:47 ubuntu janus[1894]: [janus.plugin.sip-0x7fdda400f180] No WebRTC media anymore
Apr 14 17:06:47 ubuntu janus[1894]: [4906770995621481] WebRTC resources freed; 0x7fddec002090 0x7fddec001bd0