我配置了Asterisk服務器,並試圖使用SipML5使瀏覽器瀏覽器調用瀏覽器。我跟着2個指南(單獨和一起 - 因此嘗試整個設置三次),這些指南位於here和SipML's official How-TO。Asterisk + SipML5 - 錯誤603「」無法獲得本地SDP「」
我sip.conf
文件看起來如下:
[general]
context=unauthenticated
allowguest=yes
srvlookup=no
udpbindaddr=0.0.0.0:5060
tcpenable=no
nat=force_rport,comedia
qualifyfreq=60 ; probe far end peer every 60 seconds
qualify=120000 ; allow 10 seconds for a reply (qualify)
callcounter=yes
realm=172.16.2.21
transport=udp,ws,wss
[sip_phone_template](!)
type=friend
context=LocalPhones
host=dynamic
nat=force_rport,comedia
dtmfmode=auto
avpf=yes
icesupport=yes
hassip=yes
;encryption=yes
videosupport=no
directmedia=no
disallow=all
allow=g722
allow=ulaw
allow=alaw
[Exten1001](sip_phone_template)
Callerid="Exten1001" <1001>
secret=test123
[Exten1002](sip_phone_template)
Callerid="Exten1002" <1002>
secret=test123
我extensions.conf
文件如下:
[globals]
PEX_ONE=Exten1001
PEX_TWO=Exten1002
[macro-DialStartMonitor]
; Calculate the time of the call from "epoch time", format it into yyyy-mm-dd and add the PhoneExt. at the end
exten => s,1,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-FROM-${CALLERID(num)}-TO-${ARG1})
same => n,MixMonitor(${MONITOR_FILENAME}.wav,b)
;b - Only save audio to the file while the channel is bridged. *does not include conferences*
[LocalPhones]
exten => 1001,1,noop(Dialing ${PEX_ONE})
same => n,Macro(DialStartMonitor,${PEX_ONE})
same => n,Dial(SIP/${PEX_ONE},30,mTt)
same => n,Playback(vm-nobodyavail) ; Play "no one's available"
same => n,Hangup()
exten => 1002,1,noop(Dialing ${PEX_TWO})
same => n,Macro(DialStartMonitor,${PEX_TWO})
same => n,Dial(SIP/${PEX_TWO},30,mTt)
same => n,Playback(vm-nobodyavail) ; Play "no one's available"
same => n,Hangup()
我可以成功地使2個SIP軟電話像Zoiper,Linphone中,的Ekiga等
之間的呼叫但是,當我嘗試從瀏覽器調用瀏覽器並且失敗時。確切的本質是,當目的地拿起電話時,呼叫被拒絕,並在Asterisk控制檯以下錯誤顯示出來:
Error 603 "Failed to get local SDP"
搜索谷歌狂歡,我需要禁用視頻,我已經做了都在sip.conf文件(videosupport = no)和SipML5應用程序中通過選中「禁用視頻選項」。我仍然得到同樣的錯誤。當我從軟電話呼叫瀏覽器時反覆出現此錯誤,反之亦然。
有人能指出我的錯誤嗎?有什麼額外的需要安裝/配置?或者是我的配置本身中的一些固有錯誤?任何幫助表示讚賞。
這不是編程問題。 SipML是經驗豐富的,所以你需要成爲星號專家才能正確使用它。 – arheops