Unable to use Janus Sip Gateway with Asterisk

638 views
Skip to first unread message

Damien Fétis

unread,
Sep 4, 2014, 10:55:27 AM9/4/14
to meetech...@googlegroups.com
Hi all,

I'm trying to test last Git version of Janus SIP gateway with my asterisk-11 server and i'can't make a call from the demo application.

Other demo appplication like MCU and echo are running perfectly but not the sip gateway .....

When I try a call to an astersik extention, the REGISTER messages are OK but it's like astersik doesn't see the invite from janus.

I did some tcpdump on my Asterisk and i got this on the invite execution :



Via: SIP/2.0/UDP 192.168.1.143:57435;rport;branch=z9hG4bKeX0K4H00UjeH
v=0
o=- 3647685735571460965 6928923365833771788 IN IP4 192.168.1.143
s=-
t=0 0
m=audio 22636 RTP/AVP 111 103 104 0 8 106 105 13 126
c=IN IP4 192.168.1.143
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
Max-Forwards: 70
From: <sip:80...@0.0.0.0:0>;tag=DmeFtSBm2y38H
To: <sip:12...@192.168.1.147>
Call-ID: 7381d5b3-ae15-1232-23bd-080027a92b78
CSeq: 64540339 INVITE
Contact: 8000 <sip:80...@192.168.1.143:57435;transport=udp>
User-Agent: sofia-sip/1.12.11
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE
Supported: timer, 100rel
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 0


The INIVITE request part seems to be missing :
INVITE sip:12...@192.168.1.147 SIP/2.0


Does someone see that already ?


Regard,
Damien Fetis.

Lorenzo Miniero

unread,
Sep 4, 2014, 11:12:04 AM9/4/14
to meetech...@googlegroups.com
Hi Damien,

that's really weird... I just tried with the latest version with Asterisk 11.11.0 and it works fine for me, so I don't think there was any regression in the SIP plugin recently. I don't think anyone submitted any similar issue on github either. Have you tried doing a wireshark/tcpdump on the Janus machine as well?

Lorenzo

Damien Fétis

unread,
Sep 5, 2014, 10:16:38 AM9/5/14
to meetech...@googlegroups.com
Hi lorenzo,

thanks for your response.

I did a tcpdump on the janus machine and it's same the same resut..

But I found what cause this trouble in sip stack
.
For testing Janus gateway, I made a fresh linux install with lastest Fedora ( Fedora 20) and i install all required package by yum.
 
But there  are some bugs in Sofia-sip build in Fedora-20 du to GCC 4.8 optimisation (https://www.mail-archive.com/sofia-s...@lists.sourceforge.net/msg04563.html).

After rebuilding sofia-sip with -O0 options sip calls from janus to astersik work !!!!

Now I can continue to test Janus.





Lorenzo Miniero

unread,
Sep 5, 2014, 10:28:44 AM9/5/14
to meetech...@googlegroups.com
Good to know it works now, and thanks for the reference to the solution! I'm still on Fedora 18, which explains why I wasn't experiencing this. Let's hope they'll fix the package in the repository soon enough.

Lorenzo


Il giorno venerdì 5 settembre 2014 16:16:38 UTC+2, Damien Fétis ha scritto:
Hi lorenzo,

thanks for your response.

I did a tcpdump on the janus machine and it's same the same resut..

But I found what cause this trouble in sip stack
.
For testing Janus gateway, I made a fresh linux install with lastest Fedora ( Fedora 20) and i install all required package by yum.
 
But there  are some bugs in Sofia-sip build in Fedora-20 du to GCC 4.8 optimisation (https://www.mail-archive.com/sofia-sip-devel@lists.sourceforge.net/msg04563.html).

钟敬辉

unread,
Jan 4, 2016, 7:50:57 AM1/4/16
to meetecho-janus
I have the same issue on entos7。any update here?

Call-ID: 7381d5b3-ae15-1232-23bd-080027a92b78
CSeq: 64540339 INVITE
Contact: 8000 <sip:80...@192.168.1.143:57435;transport=udp>
User-Agent: sofia-sip/1.12.11
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE
Supported: timer, 100rel
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 0


The INIVITE request part seems to be missing :
INVITE sip:...@192.168.1.147 SIP/2.0

Lorenzo Miniero

unread,
Jan 4, 2016, 7:54:55 AM1/4/16
to meetecho-janus
It's a known issue of compiling the Sofia SIP library on distros with gcc >= 4.8, you need to compile it with a patch applied (something that CentoOS repo managers should do themselves, if you installed it via yum). More info here:


L.

钟敬辉

unread,
Jan 4, 2016, 8:18:42 AM1/4/16
to meetecho-janus
thanks Miniero, it works for me.
Reply all
Reply to author
Forward
0 new messages