Call from Web browser with IOS


#1

Hi all,
I have a big problem with call from web browser with IOS (Iphone,Ipad), MacOS (Macbook …) which using WebRTC to call
Base on that link https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5
I build a server asterisk version 14.
After finished i try with multi device
With Chrome browser (firefox browser) of android and window (linux) is work fined
With Chrome browser of ios or macos -> only login but when I try call then nothing happen :frowning:
https://wiki.asterisk.org/wiki/download/attachments/27200129/Screen%20Shot%202017-06-28%20at%202.25.55%20PM.png
So please help me about that problem because I lose more than 2 week about that :frowning:

Here is config of /etc/asterisk/pjsip.conf
[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0

[199]
type=aor
max_contacts=1
remove_existing=yes

[199]
type=auth
auth_type=userpass
username=199
password=199
[199]
type=endpoint
aors=199
auth=199
use_avpf=yes
media_encryption=dtls
dtls_ca_file=/etc/asterisk/keys/ca.crt
dtls_cert_file=/etc/asterisk/keys/default.pem
dtls_verify=fingerprint
dtls_setup=actpass
ice_support=yes
media_use_received_transport=yes
rtcp_mux=yes
context=default
disallow=all
allow=opus
allow=alaw
allow=ulaw
allow=gsm
allow=h264

Here is config of /etc/asterisk/sip_additional.conf
[199]
host=dynamic
secret=199
context=default
type=friend
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=ulaw
allow=g722
allow=gsm
allow=opus
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/keys/default.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass
rtcp_mux=yes
transport=wss,ws,udp,tcp,tls

Thanks


#2

You’ll need to check the browser and see what it is doing, specifically the Javascript and WebRTC aspect of it. If you don’t have the knowledge to do that then trying to use WebRTC will likely end poorly when any problem is experienced, which WILL happen.


#3

Thanks about your reply.
But I have a question.
That is Device of Apple such as Iphone, Ipad … can establish a call from web browser

Because in this link https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5
I don’t see any thing about infomation which IOS,MacOS can do that which Android or Window can do

Thanks about your help


#4

I don’t use the Apple ecosystem so I have no idea. I do recall that they added support to Safari, but it wasn’t working. That’s all I know.