question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webrtc support and interop with asterisk

See original GitHub issue

Hello,

First of all thanks for this project and all the hard work you are putting into maintaining this project.

I have started using baresip recently to connect to our asterisk server. We are now using it over TLS protocol, but would like to connect over webrtc. With TLS or SIP I need to allow port 5060 or 5061 in firewall, which gets scanned and attacked quite quickly. I can use a higher port, but its just a matter of time before it is found out.

I can avoid this with Webrtc/Websocket connection of asterisk with an nginx in front.

I have configured baresip with proxy as sip:myserver.io:443;transport=wss, and in nginx logs I am seeing: "GET / HTTP/1.1" 404 240 "-" "-" and baresip throws Protocol Error

What does baresip expect when it sends the HTTP request? Any one with a successful connection between asterik and baresip using WSS or webrtc?

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
juha-hcommented, Apr 12, 2022

I configured my Apache web server to act as Websocket proxy like this:

<VirtualHost _default_:443>
...
         SSLProxyEngine on
	<LocationMatch />
		ProxyPass ws://192.168.206.95:5063/
	</LocationMatch>	
        SSLEngine on
...
</VirtualHost>

My SIP server is configure to listen for SIP requests over WS at at 192.168.206.95:5063.

Then I configured baresip’s outbound proxy like this:

sip:<web server address>:443;transport=wss

after which baresip was able to register with my SIP server via the Apache Websocket proxy.

0reactions
xuoguotocommented, Apr 25, 2022

There is an update:

When I originally compiled libbaresip-android package pkg-config was missing. After installing pkg-config and recompiling, the crackling noise has disappeared. Now everything is working fine.

Thank you for helping me with this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asterisk and sipml5 interoperability – autostatic.com
At the moment Asterisk has limited functionality to communicate with clients that use WebRTC, like sipml5. Asterisk understands the offered media profile ...
Read more >
rtcp-mux in WebRTC - Asterisk.org
I added support for rtcp-mux for chan_pjsip, and Sean Bright added rtcp-mux for chan_sip. The feature is available starting in Asterisk 13.15.0 ...
Read more >
Integrating Asterisk with WebRTC - ground up - Stack Overflow
From my reading there, it appears that Asterisk has a builtin webserver for wss support, uses pjproject for ICE, TURN/STUN servers, among other ......
Read more >
Fronting Asterisk with Kamailio for WebRTC and web-service ...
Two important aspects for providing any service are scaling and security. This session will explain how Kamailio can be used to distribute ...
Read more >
Moving WebRTC From Asterisk to Headline | Light Reading
If WhatsApp, Messenger, Google Talk, Skype, or any other service had open voice interoperability, it would make life a lot easier for users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found