-1

I want to setup asterisk 13 that working on ubuntu 16.04 on local machine to enable WebRTC, I'am testing with https://www.doubango.org/sipml5/ on firefox

I had the sipml5 client connected successfully to asterisk but when imitating a call it's said Call in Progress,

http is enable and bound to port 8088

this is sip.conf :

[web_rtc]
context=default
host=dynamic
secret=abc101
type=friend
transport=udp,ws,wss,tcp
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=opus
allow=ulaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/ast.pem
dtlscafile=/etc/asterisk/ast.pem
dtlssetup=actpass/
rtcp_mux=yes

and this is extension.conf :

[web_rtc]
exten => 100,1,Answer()
exten => n,Playback(hello-world)
exten => n,Hangup()

1 Answers1

0

I have tested sipml5 on Ubuntu 18.04 on Asterisk 13 and it worked fine. I suggest to add to your rtp.conf file (/etc/asterisk/rtp.conf) an stun server by adding the following line:

stunaddr=stun.l.google.com:19302

Then, on the live demo, configure your ICE Servers on the expert mode section adding [{ url: 'stun:stun.l.google.com:19302'}]

Anyway, I tried sipml5 and I had some problems integrating it with Asterisk (I have problems muting the call or pausing it), so I tried other libraries and finally I decided to use sip.js (https://sipjs.com/), which I recommend.

Hope it helps.

  • I edit to add the sipml5 client stack configuration that I used on my JS script:

sipStack = new SIPml.Stack({ realm: 'example.com', impi: 'sip_user', impu: 'sip:sip_user@example.com:port', password: 'super_secret_password', websocket_proxy_url: 'wss://example.com:port/ws', outbound_proxy_url: null, ice_servers: "[{ url: 'stun:stun.l.google.com:19302'}]", enable_rtcweb_breaker: true, enable_early_ims: true, enable_media_stream_cache: true, sip_headers: [ { name: 'enter code hereUser-Agent', value: 'IM-client/OMA1.0 sipML5-v1.2016.03.04' }, { name: 'Organization', value: 'My_company' } ], events_listener: { events: '*', listener: eventsListener } });

strgtasa
  • 24
  • 3