Board logo

標題: 想買個ATA, 將pstn連接入asterisk server [打印本頁]

作者: orangelau    時間: 2014-1-9 22:57     標題: 想買個ATA, 將pstn連接入asterisk server

ching們:

如題,請問有咩好介紹?同係邊度可以買到?
作者: 角色    時間: 2014-1-10 19:46

可以考虑OBi110.
作者: orangelau    時間: 2014-1-10 19:56

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

回復 2# 角色

我有,但設定有點困難,可有詳細教學嗎?
作者: 角色    時間: 2014-1-10 20:26

我都是看他的手册。

其实就是PSTN过来,然后转到一个SIP account (Asterisk Server),然后再转到别的extension。
作者: orangelau    時間: 2014-1-10 22:15

回復 4# 角色

睇左呢篇“http://www.telecom-cafe.com/foru ... &extra=page%3D8“,但唔係太明白,可以發一個完整教學出來嗎?
作者: 角色    時間: 2014-1-10 23:17

已经写得非常清楚。
作者: orangelau    時間: 2014-1-15 00:36

本帖最後由 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

圖片附件: Screen Shot 2014-01-15 at 12.20.39 am.JPEG (2014-1-15 00:27, 70.22 KB) / 下載次數 698
http://telecom-cafe.com/forum/attachment.php?aid=3149&k=5b78afaf4aaf95f3067400c1f9ff04ed&t=1732345644&sid=bWp5kC


作者: orangelau    時間: 2014-1-15 01:03

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
作者: orangelau    時間: 2014-1-16 00:03

有ching可幫忙嗎?




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2