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 => 588xxxxxx:588_password@sip.etelephone.cn:10002/from-et263-588xxxxxx
- [et263]
- type=friend
- username=588xxxxxx
- secret=588_password
- host=sip.etelephone.cn
- fromuser=588xxxxxx
- fromdomain=net263.com
- port=10002
- context=from-et263
- [6001]
- type=friend
- secret=6001_password
- host=dynamic
- context=internal
- [6002]
- type=friend
- secret=6002_password
- host=dynamic
- context=internal
複製代碼 extensions.conf- ;et263
- [et263]
- exten => _101.,1,Dial(SIP/et263/${EXTEN:3},,)
- [internal]
- include => et263
- exten => 6001,1,Dial(SIP/6001,,r)
- exten => 6002,1,Dial(SIP/6002,,r)
- [from-et263]
- exten => from-et263-588xxxxxx,Dial(SIP/6002,,)
複製代碼 |