本帖最後由 orangelau 於 2014-1-16 00:08 編輯
我而家用緊ck兄既image,已經加左“http://www.telecom-cafe.com/forum/viewthread.php?tid=4768&extra=page%3D8“帖既內容,因為只需要打出pstn關係,所以有稍作修改。修改後,任何內線分線按9後可經obi110用pstn打電話出街,但結果係按9+12345678(電話號碼),只能進入obi110的aa,麻煩幫我睇下出左咩問題,謝謝!
user.conf
fullname=obi110
registersip=no
host=dynamic
callgroup=1
mailbox=1068
call-limit=100
type=friend
username=1068
transfer=yes
callcounter=yes
context=DLPN_DialPlan1
cid_number=1068
hasvoicemail=no
vmsecret=
email=
threewaycalling=no
hasdirectory=no
callwaiting=no
hasmanager=no
hasagent=no
hassip=yes
hasiax=yes
secret=12345678
nat=yes
canreinvite=no
dtmfmode=inband
insecure=no
pickupgroup=1
macaddress=1068
autoprov=yes
label=1068
linenumber=1
LINEKEYS=1
disallow=all
allow=ulaw,gsm,alaw,g729
transport=udp
extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no
[default]
exten=1068,1,Answer()
exten=1068,n,Dial(SIP/1068,20,tr)
exten=1068,n,Hangup.
exten=_9xxxxxxxx.,1,Dial(SIP/${EXTEN:1}@1068,,r)
exten=_xxxxxxxx.,n,Hangup()
exten=fax,1,Dial(IAX2/ttyIAX0/${EXTEN})
exten=fax,2,Dial(IAX2/ttyIAX1/${EXTEN})
exten=fax,3,Busy
exten=fax,4,Hangup
exten=300,1,Playback(demo-echotest)
exten=300,2,Echo
exten=300,3,Playback(demo-echodone)
OBi 110 setting
cli 係咁樣:
== Using SIP RTP CoS mark 5
-- Executing [966661234@DLPN_DialPlan1:1] Dial("SIP/1001-00000049", "SIP/66661234@1068,,r") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/66661234@1068
-- SIP/1068-0000004a is ringing
-- SIP/1068-0000004a answered SIP/1001-00000049
-- Locally bridging SIP/1001-00000049 and SIP/1068-0000004a
> 0xe20da0 -- Probation passed - setting RTP source address to 60.246.234.162:16812
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2014-01-15 00:54:32] WARNING[3216]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
> 0xb2feae68 -- Probation passed - setting RTP source address to 10.0.1.133:33000
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2014-01-15 00:54:47] WARNING[3216]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2014-01-15 00:55:02] WARNING[3216]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
-- Registered IAX2 'iax-fax0' (AUTHENTICATED) at 127.0.0.1:60573
-- Registered IAX2 'iax-fax3' (AUTHENTICATED) at 127.0.0.1:43963
-- Registered IAX2 'iax-fax2' (AUTHENTICATED) at 127.0.0.1:47079
-- Registered IAX2 'iax-fax1' (AUTHENTICATED) at 127.0.0.1:50041
== Spawn extension (DLPN_DialPlan1, 966661234, 1) exited non-zero on 'SIP/1001-00000049'
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2014-01-15 00:55:17] WARNING[3216]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[2014-01-15 00:55:32] WARNING[3216]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory |