返回列表 發帖

想買個ATA, 將pstn連接入asterisk server

ching們:

如題,請問有咩好介紹?同係邊度可以買到?

有ching可幫忙嗎?

TOP

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

TOP

本帖最後由 orangelau 於 2014-1-15 00:58 編輯

回復 6# 角色

我而家用緊ck兄既image,已經加左#5樓帖既內容,因為只需要打出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
Screen Shot 2014-01-15 at 12.20.39 am.JPEG

TOP

已经写得非常清楚。

TOP

回復 4# 角色

睇左呢篇“http://www.telecom-cafe.com/foru ... &extra=page%3D8“,但唔係太明白,可以發一個完整教學出來嗎?

TOP

我都是看他的手册。

其实就是PSTN过来,然后转到一个SIP account (Asterisk Server),然后再转到别的extension。

TOP

本帖最後由 orangelau 於 2014-1-10 20:03 編輯

回復 2# 角色

我有,但設定有點困難,可有詳細教學嗎?

TOP

可以考虑OBi110.

TOP

返回列表