本帖最後由 角色 於 2010-9-1 15:44 編輯
sip.conf- [general]
- disallow=all
- allow=ulaw,alaw,gsm,g729,iLBC,speex
- nat=yes
- canreinvite=no
- insecure=port,invite
- qualify=yes
- dtmfmode=rfc2833
- context=fron-desk
- register => john:john_password@iptel.org/from-iptel-john
- [iptel]
- type=friend
- username=john
- fromuser=john
- fromdomain=iptel.org
- host=iptel.org
- secret=john_password
- context=from-iptel
- [6001]
- type=friend
- secret=6001_password
- host=dynamic
- context=internal
- [6002]
- type=friend
- secret=6002_password
- host=dynamic
- context=internal
複製代碼 extensions.conf- [iptel]
- exten => _102.,1,Dial(SIP/iptel/${EXTEN:3},,)
- [internal]
- include => iptel
- exten => 6001,1,Dial(SIP/6001,,r)
- exten => 6002,1,Dial(SIP/6002,,r)
- [from-iptel]
- exten => from-iptel-john,1,Dial(SIP/6002,,)
複製代碼 Using the prefix 102 for sending outbound calls for iptel. For instance 1000 to check voicemail.
YH |