本帖最後由 bubblestar 於 2012-7-21 13:11 編輯
回復 57# lawleo
Try this:
sip.conf
[general]
…..
pedantic = yes
…..
register = 852350xxxxx:password@202.0.179.3/852350xxxxx
[cmphone]
type=peer
host=202.0.179.3
port=5060
fromdomain=huawei.com
fromuser=852350xxxxx
realm=huawei
secret=your_password
username=852350xxxxx
insecure=port,invite
context=from-cmphone
authname=852350xxxxx
dtmfmode=auto
canreinvite=no
qualify=no
extensions.conf
[viaCMPhone]
exten => _888X.,1,Dial(SIP/cmphone/${EXTEN:3})
exten => _888X.,n,Hangup()
[from-cmphone]
exten => 852350xxxxx(你的 CMphone號碼),1,Dial(SIP/6001,30,Ttr)
exten => 852350xxxxx(你的CMphone號碼),n,Hangup() |