Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIP testing - Issues?? #9

Closed
tchandler48 opened this issue Mar 11, 2014 · 24 comments
Closed

SIP testing - Issues?? #9

tchandler48 opened this issue Mar 11, 2014 · 24 comments

Comments

@tchandler48
Copy link

I am posting this here. It should be more a mailing list post, but for the time....
I tested Janus-gateway, siptest.html. Any comments or questions, I will try to answer.

Configuration:
Asterisk-11.8.rc2
(with opus/vp8 patch applied)
Janus-gateway
(current svn as of 3/10/2014)
ATA Sip phones
Browser: Chrome Version 33.0.1750.146 m (windows 7)
Chromium ersion 30.0.1599.114 Ubuntu 12.04

Testing the Janus-gateway sip plug-in.

Test #1
All components on the save private network
(192.168.1.xxx)

PSTN -> Siptest.html
    RESULT:  Webpage answers but NO AUDIO in either
         direction.  Disconnect by PSTN, NO
         segmentation fault.........

Test #2
siptest.html -> PSTN (Hangup webpage)
RESULT: Good two way audio, using HANGUP button
on webpage disconnects the call.

siptest.html -> PSTN    (Hangup PSTN)
    RESULT:  Good two way audio. Hanging up the
         sip phone, Janus produces a segmentation
         fault.
         [nua_l_bye]: 200 Session Terminated
         Pushing event: [
            "sip:": "event",
            "result": [
               "event": "hangup",
               "username": sip:[email protected]:5060",
               "reason": "200 Session Terminated"
            ]
        ]
        Segmentation fault [core dumped)

Test #3
Chrome -> Chromium
RESULT: Call Connected - Asterisk shows call active with
two channels in use. NO AUDIO in either direction.
Hangup button on either browser has NO affect.
Closing Chromium broswer, Janus segmemtation fault....

Chromium -> Chrome
    RESULT: Call Connected - Asterisk shows call active with
        two channels in use.  NO AUDIO in either direction
        Hangup button on either broswer returns the browser to
        start-up state, but Asterisk still show call active.
        In this test, Janus DID NOT segmentation fault.

Asterisk SIP.conf

[2250] ;ATA sip phone
type=friend
secret=1234
host=dynamic
context=local
qualify=yes
transport=udp
directmedia=no
videosupport=no
disallow=all
allow=ulaw

[8000] ;Chrome browser
secret=1234
context=local
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
qualify=yes
transport=udp,ws
callcounter=yes
icesupport=yes
directmedia=no
disallow=all
allow=ulaw,vp8

[8001] ;Chromium browser
secret=1234
context=local
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
qualify=yes
transport=ws
callcounter=yes
icesupport=yes
directmedia=no
transport=udp,ws
disallow=all
allow=ulaw,vp8

Hope this helps, I will continue to test..

Tom C

@lminiero
Copy link
Member

@tchandler48 thanks for the detailed info!

As you might have guessed, the SIP plugin is quite immature right now: video support in particular, for instance, is quite flaky. I only made some quick tests by having the browsers call some extensions on Asterisk, and a few where an external softphone called a registered browser, and it seemed to work fine mostly. I hope your tests will help us make it more stable.

Have you any further detail on the segmentation faults? Could you try and replicate the crashing scenarios launching Janus with either gdb or valgrind, in order to understand where exactly the code is breaking? My guess is that it's some race condition, as proper locking is not involved yet in the plugins, but there may be something else hidden somewhere.

@tchandler48
Copy link
Author

attached gdb of segmentation fault.... hope it helps, let me know if you
need additional info.....

Cheers
Tom c

On Tue, Mar 11, 2014 at 9:57 AM, Lorenzo Miniero
[email protected]:

@tchandler48 https://github.com/tchandler48 thanks for the detailed
info!

As you might have guessed, the SIP plugin is quite immature right now:
video support in particular, for instance, is quite flaky. I only made some
quick tests by having the browsers call some extensions on Asterisk, and a
few where an external softphone called a registered browser, and it seemed
to work fine mostly. I hope your tests will help us make it more stable.

Have you any further detail on the segmentation faults? Could you try and
replicate the crashing scenarios launching Janus with either gdb or
valgrind, in order to understand where exactly the code is breaking? My
guess is that it's some race condition, as proper locking is not involved
yet in the plugins, but there may be something else hidden somewhere.

Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-37304723
.

gdb ./janus

The program 'gdb' is currently not installed. You can install it by typing:
apt-get install gdb
root@kamailo:/var/www/janus# apt-get install gdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gdb-doc gdbserver
The following NEW packages will be installed:
gdb
0 upgraded, 1 newly installed, 0 to remove and 107 not upgraded.
Need to get 2,308 kB of archives.
After this operation, 6,694 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main gdb amd64 7.4-2012.04-0ubuntu2.1 [2,308 kB]
Fetched 2,308 kB in 4s (483 kB/s)
Selecting previously unselected package gdb.
(Reading database ... 76197 files and directories currently installed.)
Unpacking gdb (from .../gdb_7.4-2012.04-0ubuntu2.1_amd64.deb) ...
Processing triggers for man-db ...
Setting up gdb (7.4-2012.04-0ubuntu2.1) ...
root@kamailo:/var/www/janus# gdb ./janus
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://bugs.launchpad.net/gdb-linaro/...
Reading symbols from /var/www/janus/janus...done.
(gdb) run
Starting program: /var/www/janus/janus
[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Starting Meetecho Janus (WebRTC Gateway)

Reading configuration from ./conf/janus.cfg
[janus.cfg]
[general]
configs_folder: ./conf
plugins_folder: ./plugins
[webserver]
http: yes
port: 8088
https: no
secure_port: 8889
base_path: /janus
[certificates]
cert_pem: certs/mycert.pem
cert_key: certs/mycert.key
Checking command line arguments...
[janus.cfg]
[general]
configs_folder: ./conf
plugins_folder: ./plugins
[webserver]
http: yes
port: 8088
https: no
secure_port: 8889
base_path: /janus
[certificates]
cert_pem: certs/mycert.pem
cert_key: certs/mycert.key
Available interfaces:
lo: 127.0.0.1
eth0: 192.168.1.169
Using 192.168.1.169 as local IP...
Using certificates:
certs/mycert.pem
certs/mycert.key
Fingerprint of our certificate is C5:5F:DA:7D:84:47:B1:BF:6B:55:16:62:48:31:3E:D3:F1:7B:25:89:92:4A:4B:4D:4D:D9:D5:AF:EA:D8:15:44
Plugins folder: ./plugins
Loading plugin 'janus_sip.so'...
JANUS SIP plugin created!
Configuration file: ./conf/janus.plugin.sip.cfg
[janus.plugin.sip.cfg]
Available interfaces:
lo: 127.0.0.1
eth0: 192.168.1.169
Using 192.168.1.169 as local IP...
[New Thread 0x7ffff317b700 (LWP 2474)]
JANUS SIP plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.sip] JANUS SIP plugin
This is a simple SIP plugin for Janus, allowing WebRTC peers to register at a SIP server and call SIP user agents through the gateway.
Loading plugin 'janus_echotest.so'...
[janus_sip.c:janus_sip_handler:491:] Joining thread
JANUS EchoTest plugin created!
Configuration file: ./conf/janus.plugin.echotest.cfg
[janus.plugin.echotest.cfg]
[New Thread 0x7ffff2772700 (LWP 2475)]
JANUS EchoTest plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.echotest] JANUS EchoTest plugin
[janus_echotest.c:janus_echotest_handler:322:] This is a trivial EchoTest plugin for Janus, just used to showcase the plugin interface.
Joining thread
Loading plugin 'janus_videocall.so'...
JANUS VideoCall plugin created!
Configuration file: ./conf/janus.plugin.videocall.cfg
[janus.plugin.videocall.cfg]
[New Thread 0x7ffff1d67700 (LWP 2476)]
JANUS VideoCall plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.videocall] JANUS VideoCall plugin
This is a simple video call plugin for Janus, allowing two WebRTC peers to call each other through the gateway.
Loading plugin 'janus_streaming.so'...
[janus_videocall.c:janus_videocall_handler:349:] Joining thread
JANUS Streaming plugin created!
Configuration file: ./conf/janus.plugin.streaming.cfg
[janus.plugin.streaming.cfg]
[gstreamer-sample]
type: rtp
id: 1
description: Opus/VP8 live stream coming from gstreamer
audio: yes
video: yes
audioport: 5002
audiopt: 111
audiortpmap: opus/48000/2
videoport: 5004
videopt: 100
videortpmap: VP8/9000
[file-live-sample]
type: live
id: 2
description: a-law file source
filename: ./plugins/streams/radio.alaw
audio: yes
video: no
[file-ondemand-sample]
type: ondemand
id: 3
description: mu-law file source
filename: ./plugins/streams/music.mulaw
audio: yes
video: no
Adding stream 'gstreamer-sample'
Audio enabled, Video enabled
[New Thread 0x7ffff1359700 (LWP 2477)]
Adding stream 'file-live-sample'
[New Thread 0x7ffff0b58700 (LWP 2478)]
Adding stream 'file-ondemand-sample'
::: [3][file-ondemand-sample] mu-law file source (on demand, file source)
::: [2][file-live-sample] a-law file source (live, file source)
::: [1][gstreamer-sample] Opus/VP8 live stream coming from gstreamer (live, RTP source)
[janus_streaming.c:janus_streaming_relay_thread:1064:] Starting relay thread
[gstreamer-sample] Audio listener bound to port 5002
[gstreamer-sample] Video listener bound to port 5004
[New Thread 0x7fffe3fff700 (LWP 2479)]
JANUS Streaming plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.streaming] JANUS Streaming plugin
This is a streaming plugin for Janus, allowing WebRTC peers to watch/listen to pre-recorded files or media generated by gstreamer.
Loading plugin 'janus_voicemail.so'...
[janus_streaming.c:janus_streaming_filesource_thread:959:] Filesource RTP thread starting...
Opening file source ./plugins/streams/radio.alaw...
Streaming audio file: ./plugins/streams/radio.alaw
[janus_streaming.c:janus_streaming_handler:643:] Joining thread
JANUS VoiceMail plugin created!
Configuration file: ./conf/janus.plugin.voicemail.cfg
[janus.plugin.voicemail.cfg]
[general]
path: ./html/voicemail/
base: /voicemail/
Recordings path: ./html/voicemail/
Recordings base: /voicemail/
[New Thread 0x7fffe35f7700 (LWP 2480)]
JANUS VoiceMail plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.voicemail] JANUS VoiceMail plugin
This is a plugin implementing a very simple VoiceMail service for Janus, recording Opus streams.
Loading plugin 'janus_videoroom.so'...
[janus_voicemail.c:janus_voicemail_handler:415:] Joining thread
JANUS VideoRoom plugin created!
Configuration file: ./conf/janus.plugin.videoroom.cfg
[janus.plugin.videoroom.cfg]
[1234]
description: Demo Room
publishers: 6
bitrate: 128000
Adding video room '1234'
Created videoroom: 1234 (Demo Room)
::: [1234][Demo Room] 128000, max 6 publishers
[New Thread 0x7fffe2bea700 (LWP 2481)]
JANUS VideoRoom plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.videoroom] JANUS VideoRoom plugin
This is a plugin implementing a videoconferencing MCU for Janus, something like Licode.
Loading plugin 'janus_audiobridge.so'...
[janus_videoroom.c:janus_videoroom_handler:524:] Joining thread
JANUS AudioBridge plugin created!
Configuration file: ./conf/janus.plugin.audiobridge.cfg
[janus.plugin.audiobridge.cfg]
[1234]
description: Demo Room
sampling_rate: 16000
record: yes
Adding audio room '1234'
Created audiobridge: 1234 (Demo Room)
[New Thread 0x7fffe1f9d700 (LWP 2482)]
::: [1234][Demo Room] 16000 (will be recorded)
Audio bridge thread starting...
Thread is for mixing room 1234 (Demo Room)...
Recording requested, opened file /tmp/janus-audioroom-1234.wav for writing
[New Thread 0x7fffe179c700 (LWP 2483)]
JANUS AudioBridge plugin initialized!
Version: 1 (0.0.1)
[janus.plugin.audiobridge] JANUS AudioBridge plugin
This is a plugin implementing an audio conference bridge for Janus, mixing Opus streams.
[janus_audiobridge.c:janus_audiobridge_handler:497:] Joining thread
[New Thread 0x7fffe0f9b700 (LWP 2484)]
HTTP webserver started (port 8088, /janus path listener)...
HTTPS webserver disabled
[New Thread 0x7fffbffff700 (LWP 2485)]
Got a HTTP OPTIONS request on /janus...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Accept: /
Access-Control-Request-Headers: accept, content-type
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Access-Control-Request-Method: POST
Connection: keep-alive
Host: 192.168.1.169:8088
Request completed, freeing data
[Thread 0x7fffbffff700 (LWP 2485) exited]
[New Thread 0x7fffbf7fe700 (LWP 2486)]
Got a HTTP POST request on /janus...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Content-Length: 47
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP POST request on /janus...
... parsing request...
Processing POST data (application/json)...
-- Uploaded data (47 bytes)
-- Data we have now (47 bytes)
Got a HTTP POST request on /janus...
... parsing request...
Processing POST data (application/json)...
Done getting payload, we can answer
[janus.c:janus_ws_handler:302:] {"janus":"create","transaction":"UBBTI00fZT9I"}
Creating new session: 644550446
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
[New Thread 0x7fffbffff700 (LWP 2487)]
Got a HTTP OPTIONS request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Accept: /
Access-Control-Request-Headers: accept, content-type
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Access-Control-Request-Method: POST
Connection: keep-alive
Host: 192.168.1.169:8088
Request completed, freeing data
[Thread 0x7fffbffff700 (LWP 2487) exited]
[New Thread 0x7fffbeffd700 (LWP 2488)]
Got a HTTP POST request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Content-Length: 75
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP POST request on /janus/644550446...
... parsing request...
Session: 644550446
Processing POST data (application/json)...
-- Uploaded data (75 bytes)
-- Data we have now (75 bytes)
Got a HTTP POST request on /janus/644550446...
... parsing request...
Session: 644550446
Processing POST data (application/json)...
Done getting payload, we can answer
[janus.c:janus_ws_handler:302:] {"janus":"attach","plugin":"janus.plugin.sip","transaction":"ErzxADDlRrJn"}
Creating new handle in session 644550446: 582006710
Request completed, freeing data
Got a HTTP OPTIONS request on /janus/644550446/582006710...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Accept: /
Access-Control-Request-Headers: accept, content-type
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Access-Control-Request-Method: POST
Connection: keep-alive
Host: 192.168.1.169:8088
Request completed, freeing data
[Thread 0x7fffbeffd700 (LWP 2488) exited]
[New Thread 0x7fffbffff700 (LWP 2489)]
Got a HTTP POST request on /janus/644550446/582006710...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Content-Length: 157
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP POST request on /janus/644550446/582006710...
... parsing request...
Session: 644550446
Handle: 582006710
Processing POST data (application/json)...
-- Uploaded data (157 bytes)
-- Data we have now (157 bytes)
Got a HTTP POST request on /janus/644550446/582006710...
... parsing request...
Session: 644550446
Handle: 582006710
Processing POST data (application/json)...
Done getting payload, we can answer
[janus.c:janus_ws_handler:302:] {"janus":"message","body":{"request":"register","username":"8000","secret":"1234","proxy_ip":"192.168.1.171","proxy_port":5060},"transaction":"Yt6fHiut0hsi"}
There's a message for JANUS SIP plugin
{
"proxy_ip": "192.168.1.171",
"secret": "1234",
"username": "8000",
"request": "register",
"proxy_port": 5060
}
Request completed, freeing data
Handling message: {
"proxy_ip": "192.168.1.171",
"secret": "1234",
"username": "8000",
"request": "register",
"proxy_port": 5060
}
Registering user 8000 (secret 1234) @ 192.168.1.171:5060
[New Thread 0x7fffbeffd700 (LWP 2490)]
Joining sofia loop thread (8000)...
Setting up sofia stack (sip:[email protected]:0)
[New Thread 0x7fffbe7fc700 (LWP 2491)]
[nua_r_set_params]: 200 OK
sip:[email protected]:5060 --> sip:192.168.1.171:5060
Pushing event: {
"sip": "event",
"result": {
"event": "registering"
}
}
[582006710] Adding event to queue of messages...

0
[nua_r_register]: 401 Unauthorized
Digest:"192.168.1.171":8000:1234
[nua_i_options]: 200 OK
[nua_r_register]: 200 OK
Successfully registered
Pushing event: {
"sip": "event",
"result": {
"event": "registered",
"username": "8000"
}
}
[582006710] Adding event to queue of messages...
0
[nua_i_error]: 500 Responding to a Non-Existing Request
outbound(0x7fffec002000): FAILED to validate sip:[email protected]:38832;transport=udp
outbound(0x7fffec002000): FAILED with 404 Not Found
[nua_i_outbound]: 404 Not Found
We have a message to serve...
{
"janus": "event",
"plugindata": {
"data": {
"sip": "event",
"result": {
"event": "registering"
}
},
"plugin": "janus.plugin.sip"
},
"sender": 582006710,
"transaction": "Yt6fHiut0hsi"
}
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
Long poll time out for session 644550446...
We have a message to serve...
{"janus" : "keepalive"}
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
Got a HTTP OPTIONS request on /janus/644550446/582006710...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Accept: /
Access-Control-Request-Headers: accept, content-type
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Access-Control-Request-Method: POST
Connection: keep-alive
Host: 192.168.1.169:8088
Request completed, freeing data
[Thread 0x7fffbffff700 (LWP 2489) exited]
[New Thread 0x7fffbdffb700 (LWP 2492)]
Got a HTTP POST request on /janus/644550446/582006710...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Content-Length: 2518
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP POST request on /janus/644550446/582006710...
... parsing request...
Session: 644550446
Handle: 582006710
Processing POST data (application/json)...
-- Uploaded data (1559 bytes)
-- Data we have now (1559 bytes)
Got a HTTP POST request on /janus/644550446/582006710...
... parsing request...
Session: 644550446
Handle: 582006710
Processing POST data (application/json)...
-- Uploaded data (959 bytes)
-- Data we have now (2518 bytes)
Got a HTTP POST request on /janus/644550446/582006710...
... parsing request...
Session: 644550446
Handle: 582006710
Processing POST data (application/json)...
Done getting payload, we can answer
[janus.c:janus_ws_handler:302:] {"janus":"message","body":{"request":"call","extension":"2250"},"transaction":"5dTeMdv5dL9q","jsep":{"sdp":"v=0\r\no=- 4725926248249735291 3 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio\r\na=msid-semantic: WMS LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn\r\nm=audio 53142 RTP/SAVPF 111 103 104 0 8 106 105 13 126\r\nc=IN IP4 75.65.80.57\r\na=rtcp:53142 IN IP4 75.65.80.57\r\na=candidate:906912009 1 udp 2113937151 169.254.137.230 53141 typ host generation 0\r\na=candidate:906912009 2 udp 2113937151 169.254.137.230 53141 typ host generation 0\r\na=candidate:3188989370 1 udp 2113937151 192.168.1.35 53142 typ host generation 0\r\na=candidate:3188989370 2 udp 2113937151 192.168.1.35 53142 typ host generation 0\r\na=candidate:2294684747 1 udp 2113937151 192.168.58.1 53143 typ host generation 0\r\na=candidate:2294684747 2 udp 2113937151 192.168.58.1 53143 typ host generation 0\r\na=candidate:1208247406 1 udp 1845501695 75.65.80.57 53142 typ srflx raddr 192.168.1.35 rport 53142 generation 0\r\na=candidate:1208247406 2 udp 1845501695 75.65.80.57 53142 typ srflx raddr 192.168.1.35 rport 53142 generation 0\r\na=candidate:2022546937 1 tcp 1509957375 169.254.137.230 0 typ host generation 0\r\na=candidate:2022546937 2 tcp 1509957375 169.254.137.230 0 typ host generation 0\r\na=candidate:4036485450 1 tcp 1509957375 192.168.1.35 0 typ host generation 0\r\na=candidate:4036485450 2 tcp 1509957375 192.168.1.35 0 typ host generation 0\r\na=candidate:3326468283 1 tcp 1509957375 192.168.58.1 0 typ host generation 0\r\na=candidate:3326468283 2 tcp 1509957375 192.168.58.1 0 typ host generation 0\r\na=ice-ufrag:pMzYOsQ3Pruy8779\r\na=ice-pwd:NXsuJoZnN5s0itz93MetEj0s\r\na=ice-options:google-ice\r\na=fingerprint:sha-256 55:44:4C:E5:42:87:F8:00:1F:15:69:3A:6D:1E:79:3A:3C:D2:39:B1:0C:15:16:09:BD:BA:0D:39:9E:90:23:4E\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:2751861712 cname:/lcuM5ZH5ad69/NT\r\na=ssrc:2751861712 msid:LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn 18a2ed01-d198-4a39-ab20-1925306dd460\r\na=ssrc:2751861712 mslabel:LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn\r\na=ssrc:2751861712 label:18a2ed01-d198-4a39-ab20-1925306dd460\r\n","type":"offer"}}
There's a message for JANUS SIP plugin
Remote SDP:
v=0
o=- 4725926248249735291 3 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn
m=audio 53142 RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 75.65.80.57
a=rtcp:53142 IN IP4 75.65.80.57
a=candidate:906912009 1 udp 2113937151 169.254.137.230 53141 typ host generation 0
a=candidate:906912009 2 udp 2113937151 169.254.137.230 53141 typ host generation 0
a=candidate:3188989370 1 udp 2113937151 192.168.1.35 53142 typ host generation 0
a=candidate:3188989370 2 udp 2113937151 192.168.1.35 53142 typ host generation 0
a=candidate:2294684747 1 udp 2113937151 192.168.58.1 53143 typ host generation 0
a=candidate:2294684747 2 udp 2113937151 192.168.58.1 53143 typ host generation 0
a=candidate:1208247406 1 udp 1845501695 75.65.80.57 53142 typ srflx raddr 192.168.1.35 rport 53142 generation 0
a=candidate:1208247406 2 udp 1845501695 75.65.80.57 53142 typ srflx raddr 192.168.1.35 rport 53142 generation 0
a=candidate:2022546937 1 tcp 1509957375 169.254.137.230 0 typ host generation 0
a=candidate:2022546937 2 tcp 1509957375 169.254.137.230 0 typ host generation 0
a=candidate:4036485450 1 tcp 1509957375 192.168.1.35 0 typ host generation 0
a=candidate:4036485450 2 tcp 1509957375 192.168.1.35 0 typ host generation 0
a=candidate:3326468283 1 tcp 1509957375 192.168.58.1 0 typ host generation 0
a=candidate:3326468283 2 tcp 1509957375 192.168.58.1 0 typ host generation 0
a=ice-ufrag:pMzYOsQ3Pruy8779
a=ice-pwd:NXsuJoZnN5s0itz93MetEj0s
a=ice-options:google-ice
a=fingerprint:sha-256 55:44:4C:E5:42:87:F8:00:1F:15:69:3A:6D:1E:79:3A:3C:D2:39:B1:0C:15:16:09:BD:BA:0D:39:9E:90:23:4E
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:126 telephone-event/8000
a=maxptime:60
a=ssrc:2751861712 cname:/lcuM5ZH5ad69/NT
a=ssrc:2751861712 msid:LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn 18a2ed01-d198-4a39-ab20-1925306dd460
a=ssrc:2751861712 mslabel:LZ0eG9skRDMSV5uWfTOYDbqz9SircKjBqVGn
a=ssrc:2751861712 label:18a2ed01-d198-4a39-ab20-1925306dd460
[582006710] Setting ICE locally: got OFFER (1 audios, 0 videos)
[New Thread 0x7fffbffff700 (LWP 2493)]
[582006710] Creating ICE agent (controlled mode)
[582006710] ICE thread started, looping...
[New Thread 0x7fffbd7fa700 (LWP 2494)]
[New Thread 0x7fffbcff9700 (LWP 2495)]
[582006710] Parsing audio candidates (stream=1)...
[582006710] ICE ufrag (local): pMzYOsQ3Pruy8779
[582006710] ICE pwd (local): NXsuJoZnN5s0itz93MetEj0s
[582006710] Fingerprint (local) : sha-256 55:44:4C:E5:42:87:F8:00:1F:15:69:3A:6D:1E:79:3A:3C:D2:39:B1:0C:15:16:09:BD:BA:0D:39:9E:90:23:4E
[582006710] DTLS setup (local): actpass
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 169.254.137.230:53141
[582006710] Candidate added to the list! (1 elements for 1/1)
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 169.254.137.230:53141
[582006710] Candidate added to the list! (1 elements for 1/2)
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 192.168.1.35:53142
[582006710] Candidate added to the list! (2 elements for 1/1)
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 192.168.1.35:53142
[582006710] Candidate added to the list! (2 elements for 1/2)
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 192.168.58.1:53143
[582006710] Candidate added to the list! (3 elements for 1/1)
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 192.168.58.1:53143
[582006710] Candidate added to the list! (3 elements for 1/2)
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding srflx candidate... 192.168.1.35:53142 --> 75.65.80.57:53142
[582006710] Candidate added to the list! (4 elements for 1/1)
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding srflx candidate... 192.168.1.35:53142 --> 75.65.80.57:53142
[582006710] Candidate added to the list! (4 elements for 1/2)
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 169.254.137.230:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 169.254.137.230:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 192.168.1.35:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 192.168.1.35:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!
[582006710] Adding remote candidate for component 1 to stream 1
[582006710] Adding host candidate... 192.168.58.1:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!
[582006710] Adding remote candidate for component 2 to stream 1
[582006710] Adding host candidate... 192.168.58.1:0
[sdp.c:janus_sdp_parse:240:] [582006710] Unsupported transport tcp!


Anonymized (2298 --> 418 bytes)


v=0
o=- 4725926248249735291 3 IN IP4 127.0.0.1
s=-
t=0 0
m=audio 1 RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 1.1.1.1
a=sendrecv
a=mid:audio
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:126 telephone-event/8000
a=maxptime:60

{
"request": "call",
"extension": "2250"
}
Request completed, freeing data
Handling message: {
"request": "call",
"extension": "2250"
}
8000 is calling 2250
This is involving a negotiation (offer) as well:
v=0
o=- 4725926248249735291 3 IN IP4 127.0.0.1
s=-
t=0 0
m=audio 1 RTP/SAVPF 111 103 104 0 8 106 105 13 126
c=IN IP4 1.1.1.1
a=sendrecv
a=mid:audio
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:126 telephone-event/8000
a=maxptime:60

Going to negotiate audio...
Allocating audio ports:
Audio RTP listener bound to port 32292
Audio RTCP listener bound to port 32293
Setting local audio port: 32292
Pushing event: {
"sip": "event",
"result": {
"event": "calling"
}
}
[582006710] Adding event to queue of messages...

0
[nua_i_state]: 0 INVITE sent
[nua_r_invite]: 401 Unauthorized
Digest:"192.168.1.171":8000:1234
[nua_i_state]: 0 INVITE sent
[nua_r_invite]: 180 Ringing
[nua_i_state]: 180 Ringing
We have a message to serve...
{
"janus": "event",
"plugindata": {
"data": {
"sip": "event",
"result": {
"event": "calling"
}
},
"plugin": "janus.plugin.sip"
},
"sender": 582006710,
"transaction": "5dTeMdv5dL9q"
}
Request completed, freeing data
[582006710] Gathering done for stream 1
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
[nua_r_invite]: 200 OK
Peer accepted our call:
v=0
o=root 151581971 151581971 IN IP4 192.168.1.171
s=Asterisk PBX 11.8.0-rc2
c=IN IP4 192.168.1.171
t=0 0
m=audio 14180 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
Media lines:
Audio: 14180
Media RTP maps:
[0] PCMU
[101] telephone-event
Media attributes:
[New Thread 0x7fff9ffff700 (LWP 2496)]
Pushing event to peer: {
"sip": "event",
"result": {
"event": "accepted",
"username": "sip:[email protected]:5060"
}
}


Anonymized (266 --> 256 bytes)


v=0
o=root 151581971 151581971 IN IP4 192.168.1.171
s=Asterisk PBX 11.8.0-rc2
c=IN IP4 1.1.1.1
t=0 0
m=audio 1 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
a=silenceSupp:off - - - -
a=ptime:20

[582006710] We have 2 candidates for Stream #1, Component #1
[582006710] Stream #1, Component #1
[582006710] Address: 192.168.1.169:56621
[582006710] Priority: 2013266431
[582006710] Foundation: 1
[582006710] a=candidate:1 1 udp 2013266431 192.168.1.169 56621 typ host

[582006710] Stream #1, Component #1
[582006710] Address: 75.65.80.57:56621
[582006710] Priority: 1677721855
[582006710] Foundation: 2
[582006710] a=candidate:2 1 udp 1677721855 75.65.80.57 56621 typ srflx raddr 192.168.1.169 rport 56621

[582006710] We have 2 candidates for Stream #1, Component #2
[582006710] Stream #1, Component #2
[582006710] Address: 192.168.1.169:33183
[582006710] Priority: 2013266430
[582006710] Foundation: 1
[582006710] a=candidate:1 2 udp 2013266430 192.168.1.169 33183 typ host

[582006710] Stream #1, Component #2
[582006710] Address: 75.65.80.57:33183
[582006710] Priority: 1677721854
[582006710] Foundation: 2
[582006710] a=candidate:2 2 udp 1677721854 75.65.80.57 33183 typ srflx raddr 192.168.1.169 rport 33183


Merged (256 --> 958 bytes)


v=0
o=root 151581971 151581971 IN IP4 127.0.0.1
s=Asterisk PBX 11.8.0-rc2
t=0 0
a=msid-semantic: WMS janus
a=fingerprint:sha-256 C5:5F:DA:7D:84:47:B1:BF:6B:55:16:62:48:31:3E:D3:F1:7B:25:89:92:4A:4B:4D:4D:D9:D5:AF:EA:D8:15:44
m=audio 56621 RTP/SAVPF 0 101
c=IN IP4 192.168.1.169
a=sendrecv
a=rtcp:33183 IN IP4 192.168.1.169
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ice-ufrag:Zsk5
a=ice-pwd:8GA1O5Yk4Ya/Pcz0UCF4F4
a=setup:active
a=connection:new
a=silenceSupp:off - - - -
a=ptime:20
a=ssrc:12345 cname:janusaudio
a=ssrc:12345 msid:janus janusa0
a=ssrc:12345 mslabel:janus
a=ssrc:12345 label:janusa0
a=candidate:1 1 udp 2013266431 192.168.1.169 56621 typ host
a=candidate:2 1 udp 1677721855 75.65.80.57 56621 typ srflx raddr 192.168.1.169 rport 56621
a=candidate:1 2 udp 2013266430 192.168.1.169 33183 typ host
a=candidate:2 2 udp 1677721854 75.65.80.57 33183 typ srflx raddr 192.168.1.169 rport 33183

[582006710] Done! Ready to setup remote candidates and send connectivity checks...
[582006710] ## Setting remote candidates: stream 1, component 1 (4 in the list)
[582006710] >> Remote Stream #1, Component #1
[582006710] Address: 169.254.137.230:53141
[582006710] Priority: 2113937151
[582006710] Foundation: 906912009
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #1
[582006710] Address: 192.168.1.35:53142
[582006710] Priority: 2113937151
[582006710] Foundation: 3188989370
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #1
[582006710] Address: 192.168.58.1:53143
[582006710] Priority: 2113937151
[582006710] Foundation: 2294684747
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #1
[582006710] Address: 75.65.80.57:53142
[582006710] Priority: 1845501695
[582006710] Foundation: 1208247406
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] Setting remote credendials...
[582006710] Component state changed for component 1 in stream 1: 2 (connecting)
Starting relay thread (8000 <--> sip:[email protected]:5060)
[582006710] Remote candidates set!
[582006710] ## Setting remote candidates: stream 1, component 2 (4 in the list)
[582006710] >> Remote Stream #1, Component #2
[582006710] Address: 169.254.137.230:53141
[582006710] Priority: 2113937151
[582006710] Foundation: 906912009
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #2
[582006710] Address: 192.168.1.35:53142
[582006710] Priority: 2113937151
[582006710] Foundation: 3188989370
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #2
[582006710] Address: 192.168.58.1:53143
[582006710] Priority: 2113937151
[582006710] Foundation: 2294684747
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] >> Remote Stream #1, Component #2
[582006710] Address: 75.65.80.57:53142
[582006710] Priority: 1845501695
[582006710] Foundation: 1208247406
[582006710] Username: pMzYOsQ3Pruy8779
[582006710] Password: NXsuJoZnN5s0itz93MetEj0s
[582006710] Setting remote credendials...
[582006710] Component state changed for component 2 in stream 1: 2 (connecting)
[582006710] Remote candidates set!
[582006710] Adding event to queue of messages...

0
[nua_i_state]: 200 OK
[nua_i_active]: 200 Call active
[ice.c:janus_ice_relay_rtp:641:] [582006710] audio stream component has no valid SRTP session (yet?)
We have a message to serve...
{
"janus": "event",
"plugindata": {
"data": {
"sip": "event",
"result": {
"event": "accepted",
"username": "sip:[email protected]:5060"
}
},
"plugin": "janus.plugin.sip"
},
"sender": 582006710,
"jsep": {
"sdp": "v=0\r\no=root 151581971 151581971 IN IP4 127.0.0.1\r\ns=Asterisk PBX 11.8.0-rc2\r\nt=0 0\r\na=msid-semantic: WMS janus\r\na=fingerprint:sha-256 C5:5F:DA:7D:84:47:B1:BF:6B:55:16:62:48:31:3E:D3:F1:7B:25:89:92:4A:4B:4D:4D:D9:D5:AF:EA:D8:15:44\r\nm=audio 56621 RTP/SAVPF 0 101\r\nc=IN IP4 192.168.1.169\r\na=sendrecv\r\na=rtcp:33183 IN IP4 192.168.1.169\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=ice-ufrag:Zsk5\r\na=ice-pwd:8GA1O5Yk4Ya/Pcz0UCF4F4\r\na=setup:active\r\na=connection:new\r\na=silenceSupp:off - - - -\r\na=ptime:20\r\na=ssrc:12345 cname:janusaudio\r\na=ssrc:12345 msid:janus janusa0\r\na=ssrc:12345 mslabel:janus\r\na=ssrc:12345 label:janusa0\r\na=candidate:1 1 udp 2013266431 192.168.1.169 56621 typ host\r\na=candidate:2 1 udp 1677721855 75.65.80.57 56621 typ srflx raddr 192.168.1.169 rport 56621\r\na=candidate:1 2 udp 2013266430 192.168.1.169 33183 typ host\r\na=candidate:2 2 udp 1677721854 75.65.80.57 33183 typ srflx raddr 192.168.1.169 rport 33183\r\n",
"type": "answer"
}
}
Request completed, freeing data
[582006710] Component state changed for component 2 in stream 1: 3 (connected)
New selected pair for component 2 in stream 1: 1 <-> 3188989370
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
[582006710] Component state changed for component 1 in stream 1: 3 (connected)
New selected pair for component 1 in stream 1: 1 <-> 3188989370
[582006710] Component state changed for component 1 in stream 1: 4 (ready)
[582006710] Component is ready, starting DTLS handshake...
[582006710] Setting connect state (DTLS client)
[582006710] Creating retransmission timer with ID 6
[582006710] Component state changed for component 2 in stream 1: 4 (ready)
[582006710] Component is ready, starting DTLS handshake...
[582006710] Setting connect state (DTLS client)
[582006710] Creating retransmission timer with ID 7
[582006710] DTLS established, yay!
[582006710] Computing sha-256 fingerprint of remote certificate...
[582006710] Remote fingerprint (sha-256) of the client is 55:44:4C:E5:42:87:F8:00:1F:15:69:3A:6D:1E:79:3A:3C:D2:39:B1:0C:15:16:09:BD:BA:0D:39:9E:90:23:4E
[582006710] Fingerprint is a match!
[582006710] Created inbound SRTP session for component 1 in stream 1
[582006710] Created outbound SRTP session for component 1 in stream 1
[582006710] The DTLS handshake for the component 1 in stream 1 has been completed
[582006710] DTLS established, yay!
[582006710] Computing sha-256 fingerprint of remote certificate...
[582006710] Remote fingerprint (sha-256) of the client is 55:44:4C:E5:42:87:F8:00:1F:15:69:3A:6D:1E:79:3A:3C:D2:39:B1:0C:15:16:09:BD:BA:0D:39:9E:90:23:4E
[582006710] Fingerprint is a match!
[582006710] Created inbound SRTP session for component 2 in stream 1
[582006710] Created outbound SRTP session for component 2 in stream 1
Going to send a RTCP REPORT (SDES)...
[582006710] The DTLS handshake for the component 2 in stream 1 has been completed
[582006710] Telling the plugin about it (JANUS SIP plugin)
[janus_sip.c:janus_sip_setup_media:405:] WebRTC media is now available
[582006710] Peer audio SSRC: 2751861712
[582006710] Got an RTCP packet (audio stream)!
[582006710] A second has passed on component 1 of stream 1
[582006710] DTLS already set up, disabling retransmission timer!
[582006710] A second has passed on component 2 of stream 1
[582006710] DTLS already set up, disabling retransmission timer!
[582006710] Got an RTCP packet (audio stream)!
[nua_i_options]: 200 OK
[nua_i_error]: 500 Responding to a Non-Existing Request
[582006710] Got an RTCP packet (audio stream)!
[582006710] Got an RTCP packet (audio stream)!
Long poll time out for session 644550446...
We have a message to serve...
{"janus" : "keepalive"}
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
[582006710] Got an RTCP packet (audio stream)!
[582006710] Got an RTCP packet (audio stream)!
[nua_r_register]: 100 Request Authorized by Cache
[nua_i_options]: 200 OK
[nua_r_register]: 200 OK
Successfully registered
Pushing event: {
"sip": "event",
"result": {
"event": "registered",
"username": "8000"
}
}
[582006710] Adding event to queue of messages...
0
[nua_i_error]: 500 Responding to a Non-Existing Request
outbound(0x7fffec002000): FAILED to validate sip:[email protected]:38832;transport=udp
outbound(0x7fffec002000): FAILED with 404 Not Found
[nua_i_outbound]: 404 Not Found
We have a message to serve...
{
"janus": "event",
"plugindata": {
"data": {
"sip": "event",
"result": {
"event": "registered",
"username": "8000"
}
},
"plugin": "janus.plugin.sip"
},
"sender": 582006710
}
Request completed, freeing data
Got a HTTP GET request on /janus/644550446...
... Just parsing headers for now...
Accept-Language: en-US,en;q=0.8
Accept-Encoding: gzip,deflate,sdch
Referer: http://192.168.1.169/janus/html/siptest.html
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Origin: http://192.168.1.169
Accept: application/json, text/javascript, /; q=0.01
Connection: keep-alive
Host: 192.168.1.169:8088
Got a HTTP GET request on /janus/644550446...
... parsing request...
Session: 644550446
Session 644550446 found... returning message
... handling long poll...
[582006710] Got an RTCP packet (audio stream)!
[nua_i_bye]: 200 Session Terminated
Pushing event: {
"sip": "event",
"result": {
"event": "hangup",
"username": "sip:[email protected]:5060",
"reason": "200 Session Terminated"
}
}
[582006710] Adding event to queue of messages...
0
[nua_i_state]: 200 Session Terminated
[nua_i_terminated]: 200 Session Terminated

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9ffff700 (LWP 2496)]
0x00007ffff5b18b23 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)

(gdb) backtrace
#0 0x00007ffff5b18b23 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000000000412c47 in janus_ice_relay_rtp (handle=0x7fffb0009b40, video=0,
buf=0x7fff9fffe7b0 "", len=-1) at ice.c:649
#2 0x0000000000000000 in ?? ()
(gdb)

@lminiero
Copy link
Member

Yes, as I guessed it's some kind of race condition. The call is closed but the related session-with-plugin and/or gateway handle is not valid anymore. I'll investigate the issue and try to fix this in the next commit.

Thanks!

@tchandler48
Copy link
Author

No problem. Thank You. I STILL THINK this is a GREAT PRODUCT, and look
forward to more testing, and, yes, feature requests..

Cheers
Tom C

On Tue, Mar 11, 2014 at 10:27 AM, Lorenzo Miniero
[email protected]:

Yes, as I guessed it's some kind of race condition. The call is closed but
the related session-with-plugin and/or gateway handle is not valid anymore.
I'll investigate the issue and try to fix this in the next commit.

Thanks!

Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-37308623
.

@lminiero
Copy link
Member

lminiero commented Apr 3, 2014

Tom,

I made some fixes to the code that should help with the segfaults issues: could you try and replicate your scenarios with the latest revision and let me know if that did actually at least fix those? Once I'm sure that's settled I'll try and dig into the SIP issues as well.

@tchandler48
Copy link
Author

Be glad to, may be later today or tonight, but I promise I will get it done.

Thank You for all your hard work, and for a GREAT project.

Cheers
Tom C

On Thu, Apr 3, 2014 at 10:50 AM, Lorenzo Miniero
[email protected]:

Tom,

I made some fixes to the code that should help with the segfaults issues:
could you try and replicate your scenarios with the latest revision and let
me know if that did actually at least fix those? Once I'm sure that's
settled I'll try and dig into the SIP issues as well.

Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-39468102
.

@lminiero
Copy link
Member

@tchandler48 apologies if this took so long, but I finally found some time to work on the SIP plugin. It should be more stable and work better in general. Could you let me know if you keep on getting the same issues when you find some time to replicate those tests?

Thanks!

@tchandler48
Copy link
Author

Will start on it this morning, and report back to you.

Thank You
Tom

On Wed, May 14, 2014 at 8:36 AM, Lorenzo Miniero
[email protected]:

@tchandler48 https://github.com/tchandler48 apologies if this took so
long, but I finally found some time to work on the SIP plugin. It should be
more stable and work better in general. Could you let me know if you keep
on getting the same issues when you find some time to replicate those tests?

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43080539
.

@lminiero
Copy link
Member

Thanks, keep me posted!

@tchandler48
Copy link
Author

I am having trying registering on the new updates. I have the tried the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43085282
.

@lminiero
Copy link
Member

Hi Tom,

In the latest version of the plugin the web interface for the SIP plugin
changed, as the syntax for URIs changed as well, are you using the updated
siptest.html/js?

For both the server and username parts you now need the sip prefix, e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha scritto:

I am having trying registering on the new updates. I have the tried the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43099514
.

@tchandler48
Copy link
Author

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero
[email protected]:

Hi Tom,

In the latest version of the plugin the web interface for the SIP plugin
changed, as the syntax for URIs changed as well, are you using the updated
siptest.html/js?

For both the server and username parts you now need the sip prefix, e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha scritto:

I am having trying registering on the new updates. I have the tried the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43101719
.

@tchandler48
Copy link
Author

Update below:

Test's of new updates 5/14/2014

  1. Echo Test
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit
Firefox - 29.0.1
After about 10 seconds, the following message started scrolling
on the console, and video become very jerky......

[ERR] [ice.c:janus_ice_cb_nice_recv:555:] [658826199]
       SRTP unprotect error: err_status_replay_old (len=1112-->1112)

Chrome - Version 34.0.1847.137 m
    NO ISSUES after 5 minutes.  GREAT video/audio
  1. SIP Gateway
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit (ext 3000)
    Client - 2005 ATA sip phone (ext 2005)
I can register ok.  Asterisk log shows both the browser and the sip
    phone registered.  If I place a call from the sip phone to
    the browser (2005 -> 3000), I get the popup on the browser
    announcing an incomming call and to answer.  However this
    popup is over the chrome allow/deny prompt and I can not get
    to it.  If I click on answer, then I get the following message

    WebRTC error... "CreateAnswer can't be called before

SetRemoteDescription."
WebRTC error... "Failed to set remote offer sdp: Session error
code: ERROR_CONTENT.
Session error description: Failed to set video send
codecs.."

Also it appears the the sip phone is left in a busy state, not

clearing the call. If I
try to make a second call from sip -> browser, I get the
following:

     Called SIP/3000
        -- Got SIP response 486 "Busy Here" back from

192.168.1.177:36922
-- SIP/3000-0000001a is busy
== Everyone is busy/congested at this time (1:1/0/0)

If you wish, could you send me the sip.conf entry for your browser

for asterisk.
I can compare it to what I have.

Thank you for all the HARD work. Sorry to be bearer of bad news. It may
be that I am doing something wrong......

Cheers
Tom c

On Wed, May 14, 2014 at 11:32 AM, Tom Chandler [email protected]:

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero <
[email protected]> wrote:

Hi Tom,

In the latest version of the plugin the web interface for the SIP plugin
changed, as the syntax for URIs changed as well, are you using the
updated
siptest.html/js?

For both the server and username parts you now need the sip prefix, e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha
scritto:

I am having trying registering on the new updates. I have the tried the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43101719
.

@lminiero
Copy link
Member

2014-05-14 18:59 GMT+02:00 tchandler48 [email protected]:

Update below:

Test's of new updates 5/14/2014

  1. Echo Test
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit

Firefox - 29.0.1
After about 10 seconds, the following message started scrolling
on the console, and video become very jerky......

[ERR] [ice.c:janus_ice_cb_nice_recv:555:] [658826199]
SRTP unprotect error: err_status_replay_old (len=1112-->1112)

Weird, I guess this is caused by the fact that Firefox ignores REMB
messages and so starts ramping up the bandwidth, up to the point where your
gateway can't deal with packets anymore and drops them or they get lost.
Dropped packets trigger NACKs, and NACKs trigger retransmissions: when the
gateway receives retransmitted packets and it actually already received
them, a replay SRTP error appears. That said, it's not a fatal error, it
just means that the packet has been ignored.

One of the plans for the gateway is to start handling NACKs within the
gateway, to retransmit lost packets automatically instead of relaying the
NACK to the peer.

Chrome - Version 34.0.1847.137 m
NO ISSUES after 5 minutes. GREAT video/audio

  1. SIP Gateway
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit (ext 3000)
    Client - 2005 ATA sip phone (ext 2005)

I can register ok. Asterisk log shows both the browser and the sip
phone registered. If I place a call from the sip phone to
the browser (2005 -> 3000), I get the popup on the browser
announcing an incomming call and to answer. However this
popup is over the chrome allow/deny prompt and I can not get
to it. If I click on answer, then I get the following message

Actually, the popup should not be on the allow/deny prompt: the
answer/decline prompt should precede any webrtc-related activity. Only when
you press Answer you should be prompted for the mic/webcam, and so only
when the popup has been removed.

Did this happen all the time, or just sometimes? Was it Chrome or Firefox?
It may be a JavaScript problem, where handleRemoteJsep is not called, and
so createAnswer fails. I'll look into it tomorrow.

WebRTC error... "CreateAnswer can't be called before
SetRemoteDescription."
WebRTC error... "Failed to set remote offer sdp: Session error
code: ERROR_CONTENT.
Session error description: Failed to set video send
codecs.."

Also it appears the the sip phone is left in a busy state, not
clearing the call. If I
try to make a second call from sip -> browser, I get the
following:

Called SIP/3000
-- Got SIP response 486 "Busy Here" back from
192.168.1.177:36922
-- SIP/3000-0000001a is busy
== Everyone is busy/congested at this time (1:1/0/0)

Yes, that's an inconsistent state within the plugin, that answers with a
486. It's caused by the fact that the JavaScript application didn't
actually reply to the INVITE, and so is still in the "invited" state. I'll
have to better handle this error cases, thanks for bringing it to my
attention.

If you wish, could you send me the sip.conf entry for your browser
for asterisk.
I can compare it to what I have.

Thank you for all the HARD work. Sorry to be bearer of bad news. It may
be that I am doing something wrong......

Bad news are way better than no news, and I can only thank you for the
constant feedback you provide! I'll let you know as soon as I fix what you
found.

Cheers
Tom c

On Wed, May 14, 2014 at 11:32 AM, Tom Chandler [email protected]:

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero <
[email protected]> wrote:

Hi Tom,

In the latest version of the plugin the web interface for the SIP
plugin
changed, as the syntax for URIs changed as well, are you using the
updated
siptest.html/js?

For both the server and username parts you now need the sip prefix,
e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha
scritto:

I am having trying registering on the new updates. I have the tried
the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43101719>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43107620
.

@tchandler48
Copy link
Author

The popup problem was when I was testing with Chrome on a window 7 box. I
need to go back and test via FF.

I enjoy trying to help, and feel like in the long run, this will be the
best MCU in the GPL world.

Keep up the GREAT work!!!

Tom c

On Wed, May 14, 2014 at 2:42 PM, Lorenzo Miniero
[email protected]:

2014-05-14 18:59 GMT+02:00 tchandler48 [email protected]:

Update below:

Test's of new updates 5/14/2014

  1. Echo Test
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit

Firefox - 29.0.1
After about 10 seconds, the following message started scrolling
on the console, and video become very jerky......

[ERR] [ice.c:janus_ice_cb_nice_recv:555:] [658826199]
SRTP unprotect error: err_status_replay_old (len=1112-->1112)

Weird, I guess this is caused by the fact that Firefox ignores REMB
messages and so starts ramping up the bandwidth, up to the point where
your
gateway can't deal with packets anymore and drops them or they get lost.
Dropped packets trigger NACKs, and NACKs trigger retransmissions: when the
gateway receives retransmitted packets and it actually already received
them, a replay SRTP error appears. That said, it's not a fatal error, it
just means that the packet has been ignored.

One of the plans for the gateway is to start handling NACKs within the
gateway, to retransmit lost packets automatically instead of relaying the
NACK to the peer.

Chrome - Version 34.0.1847.137 m
NO ISSUES after 5 minutes. GREAT video/audio

  1. SIP Gateway
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit (ext 3000)
    Client - 2005 ATA sip phone (ext 2005)

I can register ok. Asterisk log shows both the browser and the sip
phone registered. If I place a call from the sip phone to
the browser (2005 -> 3000), I get the popup on the browser
announcing an incomming call and to answer. However this
popup is over the chrome allow/deny prompt and I can not get
to it. If I click on answer, then I get the following message

Actually, the popup should not be on the allow/deny prompt: the
answer/decline prompt should precede any webrtc-related activity. Only
when
you press Answer you should be prompted for the mic/webcam, and so only
when the popup has been removed.

Did this happen all the time, or just sometimes? Was it Chrome or Firefox?
It may be a JavaScript problem, where handleRemoteJsep is not called, and
so createAnswer fails. I'll look into it tomorrow.

WebRTC error... "CreateAnswer can't be called before
SetRemoteDescription."
WebRTC error... "Failed to set remote offer sdp: Session error
code: ERROR_CONTENT.
Session error description: Failed to set video send
codecs.."

Also it appears the the sip phone is left in a busy state, not
clearing the call. If I
try to make a second call from sip -> browser, I get the
following:

Called SIP/3000
-- Got SIP response 486 "Busy Here" back from
192.168.1.177:36922
-- SIP/3000-0000001a is busy
== Everyone is busy/congested at this time (1:1/0/0)

Yes, that's an inconsistent state within the plugin, that answers with a
486. It's caused by the fact that the JavaScript application didn't
actually reply to the INVITE, and so is still in the "invited" state. I'll
have to better handle this error cases, thanks for bringing it to my
attention.

If you wish, could you send me the sip.conf entry for your browser
for asterisk.
I can compare it to what I have.

Thank you for all the HARD work. Sorry to be bearer of bad news. It may
be that I am doing something wrong......

Bad news are way better than no news, and I can only thank you for the
constant feedback you provide! I'll let you know as soon as I fix what you
found.

Cheers
Tom c

On Wed, May 14, 2014 at 11:32 AM, Tom Chandler [email protected]:

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero <
[email protected]> wrote:

Hi Tom,

In the latest version of the plugin the web interface for the SIP
plugin
changed, as the syntax for URIs changed as well, are you using the
updated
siptest.html/js?

For both the server and username parts you now need the sip prefix,
e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the
one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha
scritto:

I am having trying registering on the new updates. I have the tried
the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43101719>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43107620>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43127795
.

@tchandler48
Copy link
Author

Additional note:

I just tested using Firefix 29.0.1, and it worked GREAT. No seg fault. I
am still having the problem with Chrome and will do more testing to see if
I can narrow it down.......

Cheers
Tom c

On Wed, May 14, 2014 at 2:49 PM, Tom Chandler [email protected] wrote:

The popup problem was when I was testing with Chrome on a window 7 box. I
need to go back and test via FF.

I enjoy trying to help, and feel like in the long run, this will be the
best MCU in the GPL world.

Keep up the GREAT work!!!

Tom c

On Wed, May 14, 2014 at 2:42 PM, Lorenzo Miniero <[email protected]

wrote:

2014-05-14 18:59 GMT+02:00 tchandler48 [email protected]:

Update below:

Test's of new updates 5/14/2014

  1. Echo Test
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit

Firefox - 29.0.1
After about 10 seconds, the following message started scrolling
on the console, and video become very jerky......

[ERR] [ice.c:janus_ice_cb_nice_recv:555:] [658826199]
SRTP unprotect error: err_status_replay_old (len=1112-->1112)

Weird, I guess this is caused by the fact that Firefox ignores REMB
messages and so starts ramping up the bandwidth, up to the point where
your
gateway can't deal with packets anymore and drops them or they get lost.
Dropped packets trigger NACKs, and NACKs trigger retransmissions: when
the
gateway receives retransmitted packets and it actually already received
them, a replay SRTP error appears. That said, it's not a fatal error, it
just means that the packet has been ignored.

One of the plans for the gateway is to start handling NACKs within the
gateway, to retransmit lost packets automatically instead of relaying the
NACK to the peer.

Chrome - Version 34.0.1847.137 m
NO ISSUES after 5 minutes. GREAT video/audio

  1. SIP Gateway
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit (ext 3000)
    Client - 2005 ATA sip phone (ext 2005)

I can register ok. Asterisk log shows both the browser and the sip
phone registered. If I place a call from the sip phone to
the browser (2005 -> 3000), I get the popup on the browser
announcing an incomming call and to answer. However this
popup is over the chrome allow/deny prompt and I can not get
to it. If I click on answer, then I get the following message

Actually, the popup should not be on the allow/deny prompt: the
answer/decline prompt should precede any webrtc-related activity. Only
when
you press Answer you should be prompted for the mic/webcam, and so only
when the popup has been removed.

Did this happen all the time, or just sometimes? Was it Chrome or
Firefox?
It may be a JavaScript problem, where handleRemoteJsep is not called, and
so createAnswer fails. I'll look into it tomorrow.

WebRTC error... "CreateAnswer can't be called before
SetRemoteDescription."
WebRTC error... "Failed to set remote offer sdp: Session error
code: ERROR_CONTENT.
Session error description: Failed to set video send
codecs.."

Also it appears the the sip phone is left in a busy state, not
clearing the call. If I
try to make a second call from sip -> browser, I get the
following:

Called SIP/3000
-- Got SIP response 486 "Busy Here" back from
192.168.1.177:36922
-- SIP/3000-0000001a is busy
== Everyone is busy/congested at this time (1:1/0/0)

Yes, that's an inconsistent state within the plugin, that answers with a
486. It's caused by the fact that the JavaScript application didn't
actually reply to the INVITE, and so is still in the "invited" state.
I'll
have to better handle this error cases, thanks for bringing it to my
attention.

If you wish, could you send me the sip.conf entry for your browser
for asterisk.
I can compare it to what I have.

Thank you for all the HARD work. Sorry to be bearer of bad news. It may
be that I am doing something wrong......

Bad news are way better than no news, and I can only thank you for the
constant feedback you provide! I'll let you know as soon as I fix what
you
found.

Cheers
Tom c

On Wed, May 14, 2014 at 11:32 AM, Tom Chandler [email protected]:

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero <
[email protected]> wrote:

Hi Tom,

In the latest version of the plugin the web interface for the SIP
plugin
changed, as the syntax for URIs changed as well, are you using the
updated
siptest.html/js?

For both the server and username parts you now need the sip prefix,
e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the
one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha
scritto:

I am having trying registering on the new updates. I have the
tried
the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43101719>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43107620>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43127795
.

@tchandler48
Copy link
Author

Please forgive me. I went back and tested using Chrome and the following
work great.....

chrome -> pstn. No seg faults, great audio. So hold off on the bug report,
It appears that it was an "end user" problem.

Thank You
Tom c

On Wed, May 14, 2014 at 2:59 PM, Tom Chandler [email protected] wrote:

Additional note:

I just tested using Firefix 29.0.1, and it worked GREAT. No seg fault. I
am still having the problem with Chrome and will do more testing to see if
I can narrow it down.......

Cheers
Tom c

On Wed, May 14, 2014 at 2:49 PM, Tom Chandler [email protected]:

The popup problem was when I was testing with Chrome on a window 7 box.
I need to go back and test via FF.

I enjoy trying to help, and feel like in the long run, this will be the
best MCU in the GPL world.

Keep up the GREAT work!!!

Tom c

On Wed, May 14, 2014 at 2:42 PM, Lorenzo Miniero <
[email protected]> wrote:

2014-05-14 18:59 GMT+02:00 tchandler48 [email protected]:

Update below:

Test's of new updates 5/14/2014

  1. Echo Test
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit

Firefox - 29.0.1
After about 10 seconds, the following message started scrolling
on the console, and video become very jerky......

[ERR] [ice.c:janus_ice_cb_nice_recv:555:] [658826199]
SRTP unprotect error: err_status_replay_old (len=1112-->1112)

Weird, I guess this is caused by the fact that Firefox ignores REMB
messages and so starts ramping up the bandwidth, up to the point where
your
gateway can't deal with packets anymore and drops them or they get lost.
Dropped packets trigger NACKs, and NACKs trigger retransmissions: when
the
gateway receives retransmitted packets and it actually already received
them, a replay SRTP error appears. That said, it's not a fatal error, it
just means that the packet has been ignored.

One of the plans for the gateway is to start handling NACKs within the
gateway, to retransmit lost packets automatically instead of relaying
the
NACK to the peer.

Chrome - Version 34.0.1847.137 m
NO ISSUES after 5 minutes. GREAT video/audio

  1. SIP Gateway
    Janus host = Ubuntu 12.04 LTS
    Client - Window 7 64bit (ext 3000)
    Client - 2005 ATA sip phone (ext 2005)

I can register ok. Asterisk log shows both the browser and the sip
phone registered. If I place a call from the sip phone to
the browser (2005 -> 3000), I get the popup on the browser
announcing an incomming call and to answer. However this
popup is over the chrome allow/deny prompt and I can not get
to it. If I click on answer, then I get the following message

Actually, the popup should not be on the allow/deny prompt: the
answer/decline prompt should precede any webrtc-related activity. Only
when
you press Answer you should be prompted for the mic/webcam, and so only
when the popup has been removed.

Did this happen all the time, or just sometimes? Was it Chrome or
Firefox?
It may be a JavaScript problem, where handleRemoteJsep is not called,
and
so createAnswer fails. I'll look into it tomorrow.

WebRTC error... "CreateAnswer can't be called before
SetRemoteDescription."
WebRTC error... "Failed to set remote offer sdp: Session error
code: ERROR_CONTENT.
Session error description: Failed to set video send
codecs.."

Also it appears the the sip phone is left in a busy state, not
clearing the call. If I
try to make a second call from sip -> browser, I get the
following:

Called SIP/3000
-- Got SIP response 486 "Busy Here" back from
192.168.1.177:36922
-- SIP/3000-0000001a is busy
== Everyone is busy/congested at this time (1:1/0/0)

Yes, that's an inconsistent state within the plugin, that answers with a
486. It's caused by the fact that the JavaScript application didn't
actually reply to the INVITE, and so is still in the "invited" state.
I'll
have to better handle this error cases, thanks for bringing it to my
attention.

If you wish, could you send me the sip.conf entry for your browser
for asterisk.
I can compare it to what I have.

Thank you for all the HARD work. Sorry to be bearer of bad news. It
may
be that I am doing something wrong......

Bad news are way better than no news, and I can only thank you for the
constant feedback you provide! I'll let you know as soon as I fix what
you
found.

Cheers
Tom c

On Wed, May 14, 2014 at 11:32 AM, Tom Chandler [email protected]:

Thank you. Got registered, now to do some testing.....

Tom c

On Wed, May 14, 2014 at 11:13 AM, Lorenzo Miniero <
[email protected]> wrote:

Hi Tom,

In the latest version of the plugin the web interface for the SIP
plugin
changed, as the syntax for URIs changed as well, are you using the
updated
siptest.html/js?

For both the server and username parts you now need the sip prefix,
e.g.,

Server: sip:serverip:5060
User: sip:username@serverip:5060

since the plugin now doesn't give for granted that your user or the
one
your trying to call refer to your proxy.

Let me know if that fixes it,
Lorenzo
Il 14/mag/2014 17:56 "tchandler48" [email protected] ha
scritto:

I am having trying registering on the new updates. I have the
tried
the
following and get an error popup everytime:

sip:192.168.1.171:5060 or
sip:[email protected]:5060

In the past, the 1st entry worked...

Suggestions?

Thanks
Tom C

On Wed, May 14, 2014 at 9:13 AM, Lorenzo Miniero
[email protected]:

Thanks, keep me posted!


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43085282>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43099514>

.


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43101719>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43107620>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43127795
.

@lminiero
Copy link
Member

Tom, I've made some more bugfixing in the SIP plugin and demo page, which should have made it more robust with respect to the inconsistencies (486) you got in your tests. Hopefully they'll be harder to replicate from now on!

@tchandler48
Copy link
Author

Using Firefox 29.0.1, the sip gateway works correctly. However on Chrome,
calling from the browser to sip phone works, but on a sip phone to browser
call I get the pop up to answer the call, then the Chrome prompt for using
micro, then I get the following message:
WebRTC error... "CreateAnswer can't be called before SetRemoteDescription."

WebRTC error... "Failed to set remote offer sdp: Session error code:
ERROR_CONTENT. Session error description: Failed to set video send codecs.."

This only happens on Chrome, not Firefox.

I did a git pull just before these test and saw the updates that you have
made.

Hope this helps....Sorry

Tom C

On Fri, May 16, 2014 at 8:28 AM, Lorenzo Miniero
[email protected]:

Tom, I've made some more bugfixing in the SIP plugin and demo page, which
should have made it more robust with respect to the inconsistencies (486)
you got in your tests. Hopefully they'll be harder to replicate from now on!


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43330624
.

@lminiero
Copy link
Member

Good catch, I should have fixed this now. We already call createAnswer after setRemoteDescription, but it looks like there was a potential race condition I was not handling in JavaScript, namely when createAnswer was executed and setRemoteDescription had not completed yet. The createAnswer is now in the success callback of setRemoteDescription, so it shouldn't happen anymore. Fingers crossed for good news, now :)

@tchandler48
Copy link
Author

sip phone to chrome is still giving the following error:

Using Chrome the only error message that I am getting now is:

WebRTC error... "Failed to set remote offer sdp: Session error code:
ERROR_CONTENT. Session error description: Failed to set video send codecs.."
and the call fails.

The create answer popup error is now gone. But I am still getting the
above error message.

Thank you for all your hard work.....

Tom c

On Fri, May 16, 2014 at 9:23 AM, Lorenzo Miniero
[email protected]:

*not=now


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43336822
.

@lminiero
Copy link
Member

This could be an issue with the negotiated codecs in the SDP, could you
share the SDP that Chrome and Janus exchange with each other?

2014-05-16 16:56 GMT+02:00 tchandler48 [email protected]:

sip phone to chrome is still giving the following error:

Using Chrome the only error message that I am getting now is:

WebRTC error... "Failed to set remote offer sdp: Session error code:
ERROR_CONTENT. Session error description: Failed to set video send
codecs.."
and the call fails.

The create answer popup error is now gone. But I am still getting the
above error message.

Thank you for all your hard work.....

Tom c

On Fri, May 16, 2014 at 9:23 AM, Lorenzo Miniero
[email protected]:

*not=now


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43336822>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43340888
.

@tchandler48
Copy link
Author

Lorenzo,

MY BAD. I had "screwed up" my asterisk. Fixed it and the sip gateway
works GREAT. I think you can close issue #9, and future problems can be
created via a new issue.

Works great on Chrome or Firefox.........

GREAT WORK.........now recording of audio/video on the janus server.....

JUST Kidding.......

Cheers
Tom c

On Fri, May 16, 2014 at 10:08 AM, Lorenzo Miniero
[email protected]:

This could be an issue with the negotiated codecs in the SDP, could you
share the SDP that Chrome and Janus exchange with each other?

2014-05-16 16:56 GMT+02:00 tchandler48 [email protected]:

sip phone to chrome is still giving the following error:

Using Chrome the only error message that I am getting now is:

WebRTC error... "Failed to set remote offer sdp: Session error code:
ERROR_CONTENT. Session error description: Failed to set video send
codecs.."
and the call fails.

The create answer popup error is now gone. But I am still getting the
above error message.

Thank you for all your hard work.....

Tom c

On Fri, May 16, 2014 at 9:23 AM, Lorenzo Miniero
[email protected]:

*not=now


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43336822>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43340888>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43342381
.

@lminiero
Copy link
Member

Good to know, thanks!
Audio recording is already there in the voicemail and audiobridge plugins,
video is a bit harder but we'll get there ;-)
Il 17/mag/2014 17:25 "tchandler48" [email protected] ha scritto:

Lorenzo,

MY BAD. I had "screwed up" my asterisk. Fixed it and the sip gateway
works GREAT. I think you can close issue #9, and future problems can be
created via a new issue.

Works great on Chrome or Firefox.........

GREAT WORK.........now recording of audio/video on the janus server.....

JUST Kidding.......

Cheers
Tom c

On Fri, May 16, 2014 at 10:08 AM, Lorenzo Miniero
[email protected]:

This could be an issue with the negotiated codecs in the SDP, could you
share the SDP that Chrome and Janus exchange with each other?

2014-05-16 16:56 GMT+02:00 tchandler48 [email protected]:

sip phone to chrome is still giving the following error:

Using Chrome the only error message that I am getting now is:

WebRTC error... "Failed to set remote offer sdp: Session error code:
ERROR_CONTENT. Session error description: Failed to set video send
codecs.."
and the call fails.

The create answer popup error is now gone. But I am still getting the
above error message.

Thank you for all your hard work.....

Tom c

On Fri, May 16, 2014 at 9:23 AM, Lorenzo Miniero
[email protected]:

*not=now


Reply to this email directly or view it on GitHub<

https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43336822>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43340888>

.


Reply to this email directly or view it on GitHub<
https://github.com/meetecho/janus-gateway/issues/9#issuecomment-43342381>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43409826
.

@YtelDrew YtelDrew mentioned this issue Mar 11, 2016
@ubonass ubonass mentioned this issue Aug 10, 2020
@mightZhong mightZhong mentioned this issue Feb 3, 2021
IbrayevRamil added a commit to IbrayevRamil/janus-gateway that referenced this issue Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants