本帖最後由 hn4498 於 2015-7-2 22:50 編輯
Workshop 9: Done and share my setting
ITSP Profile A
General
(911S0|1xxxxxxxxxxS0|011xx.S2|xx.S2|xS2|xxS2|*X.S2|(Mipd)|[^*#]@@.)
SIP
ITSP Profile B
SIP
SP1 Service
SP2 Service
Phone Port
{([1-9]x?*(Mpli)):pp},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
LINE Port
SP2(your PSTN line number)
Sip.conf
[59xx] ; KeckSeng Obi110
type=friend
secret=59xx
qualify=yes
nat=force_rport,comedia
host=dynamic
canreinvite=no
context=internal
[obi110-21234567] ; Dial string of 21234567
username=obi110-21234567
secret=21234567
host=dynamic
type=friend
context=from-trunk
qualify=yes
dtmfmodel=rfc2833
canreinvite=no
disallow=all
allow=speex,gsm,ulaw,alaw,ilbc,g729
extensions.conf
[internal]
exten => 5923,1,Dial<SIP/5923,,r>
;7853 Trunk via 21234567 OBi110's LINE port
exten => _7853.,1,Dial(SIP/${EXTEN:4}@obi110-21234567,,)
exten => _7853.,n,Hangup()
[from-trunk]
exten => 21234567,1,Dial(SIP/3115,,r)
exten => 21234567,n,Hangup() |