[Asterisk + WebRTC] not peer to peer

186 views
Skip to first unread message

firstwa...@gmail.com

unread,
Aug 12, 2016, 4:40:37 AM8/12/16
to discuss-webrtc
Hi,

I have recently setup the Asterisk 11 with webrtc. All seem working fine but when I try to examen the flow between two host which are communicating using Wireshark, I see that all the flow is passing through asterisk and not peer-to-peer directly between two hosts. They are in the same LAN and can see each other via ping.

Could you please help me to understand this? Do you have any ideas/suggestions?

Thank you very much in advance.




Regards,
Tian 

nazmus shakeeb

unread,
Aug 14, 2016, 11:20:37 PM8/14/16
to discuss-webrtc
Hi Tian,

>>I see that all the flow is passing through asterisk and not peer-to-peer directly between two hosts. They are in the same LAN and can see each other via ping.

This is the feature of Asterisk. It is not a bug or a installation issue. Asterisk works as a back-to-back user agent (B2BUA). When you are sending SDP by Asterisk, 
Asterisk is changing SDP to prevent P2P.  Asterisk is doing so because it needs control over media. 


You need a Proxy Server to make a P2P call. 

Using Asterisk as a proxy may be possible but it is a popular way and I don't know much about it. When someone works a proxy, it doesn't alter SDP.
 
You can use other SIP servers which works as a  proxy like https://www.kamailio.org/w/
  

Thanks,
Shakeeb

Avinash Ingole

unread,
Dec 7, 2016, 4:58:01 AM12/7/16
to discuss-webrtc
Hi Tian,

I want to integrate WebRTC with asterisk. I tried some links and unfortunately not suceeded. Can you share the installation steps that works for your configuration?.

Regards,
Avin


On Friday, August 12, 2016 at 4:40:37 PM UTC+8, firstwa...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages