I setup asterisk to play a DEMO sound for cmphone. When I called 35012565, it seems try to play to sound file but it immediate hang up. Here is the detail:
extensions.conf
[from_cmphone]
exten => 85235012565,n,Playback(demo-echotest)
exten => 85235012565,n,Hangup()
複製代碼
sip.conf
[cmphone]
type=peer
host=202.0.179.3
port=5060
fromdomain=huawei.com
fromuser=85235012565
realm=huawei
secret=XXXX
username=85235012565
insecure=port,invite
context=from_cmphone
authname=85235012565
dtmfmode=auto
canreinvite=no
qualify=no
複製代碼
cli
== Using SIP RTP CoS mark 5
-- Executing [85235012565@from_cmphone:1] Playback("SIP/cmphone-00000000", "demo-echotest") in new stack
== Spawn extension (from_cmphone, 85235012565, 1) exited non-zero on 'SIP/cmphone-00000000'