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'
sip show registry
Host dnsmgr Username Refresh State Reg.Time
202.0.179.3:5060 N 85235012565 105 Registered Sun, 11 Dec 2011 14:05:29
1 SIP registrations.
call to 28805522
cli>
== Using SIP RTP CoS mark 5
-- Executing [28805522@default:1] Dial("SIP/nexus-00000006", "SIP/cmphone/28805522") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/cmphone/28805522
-- Got SIP response 503 "Service Unavailable" back from 202.0.179.3:5060
-- SIP/cmphone-00000007 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [28805522@default:2] Hangup("SIP/nexus-00000006", "") in new stack
== Spawn extension (default, 28805522, 2) exited non-zero on 'SIP/nexus-00000006'
1. enabled the DMZ to my machine.
2. changed the bindport=5060
3. restarted asterisk
4. call from my mobile to asterisk and here the result with debug enabled: