進階篇

    版本為 15:35, 4 Oct 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    OBi110 進階設定篇。

    Echo Test OBi No.

    **9 222-222-222

    如何指定一個簡碼可從 LINE 撥出(不使用內建的 **8,只對 PHONE 有效)

     假設簡碼為 *00

    OBiTalk Expert > PHONE >

    • DigitMap:*00(Mli)       註:必須放在 (.....) 內,而且用直線作區隔
    • OutboundCallRoute:{(<*00:>(Mli)):li}     註:用逗號作區隔

    用 PHONE 的分機無法使用 FreePBX 的 feature code

    假設該分機使用 SP1 註冊
    OBi Talk > Enter OBi Expert > ITSP Profile A General

    • DigitMap:*xx|*x      註:必須放在 (.....) 內,而且用直線作區隔

    電話拿起後就會自動撥到指定號碼

    在某些特殊應用,例如警衛室,只需要有一個話筒,不需人工撥號下當拿起話筒時就會自動撥號。

    OBi Talk > Enter OBi Expert > PHONE Port

    DigitMap = S0:**812345678

    說明:

    • S0 話筒拿起後閒置 0 秒。
    • **8 是指從 LINE Port 撥出

    Inbound CallRoute 詳解

    (http://obihai.com/OBiAdminGuide.htm#_Toc304466482)

    重要名詞定義
    • ph - Phone Line
    • li - Line Port
    • ? - 未知的號碼
    • @ - 除了未知號碼以外的所有號碼
    • aa - 又稱 AA1(Automatic Attendant #1) 這是內建在 OBi110 的自動語音服務,可用來作二次撥號,將電話轉接到 SP1, SP2 或 OBiTalk。
    • aa2 - 這是另一個自動語音服務,用來設定 OBi110 參數用的。
    包含以下格式的規則(依序上至下)

    InboundCallRoute = {Rule},{Rule},{Rule} (用大括號包含每一條規則)

    Rule = perring-list:terminal-list

    peering-list = peering,peering,... (以逗號區隔)
    terminal-list = terminal,terminal,... (以逗號區隔)

    peering = caller-list > callee-list

    caller-list = caller|caller|caller|...
    callee-list = callee|callee|callee|...

    caller = 來話號碼 或 digitmap 或 ? 或 @
    callee = 受話號碼 或 digitmap 或 ? 或 @

    Notes:

    * 當沒有指定 terminal-list 時,表示拒絕該通話。冒號:不可省略,最多可以指定 4 個 terminal,而且每個 terminal 同時會響鈴。

    AA 的操作說明
    提示語音 操作說明
    Press 1 to continue this call. The call will be sent to the PHONE port of the OBi and rung the attached telephone.
    Press 2 to make a new call. If “Use PIN” authentication is enabled and the user enters a matching PIN, the OBi Attendant will immediately prompt the user to enter number followed by the pound (#) key. If the entered PIN is not a match, the Attendant will give the user two additional attempts to enter the PIN.  If the third attempt does not match, the
    Attendant will announce a thank you message and disconnect the call.
    Press 3 to enter a callback number. If a valid number is entered, the OBi Attendant says “Thank you” and “Goodbye”, then hangs up, and then after a two second wait, calls the previously entered number. It the given number is invalid, the OBi Attendant plays a tone followed by an error message.
    Tip: Callers may simply dial 00# to have the OBi call back the current number as recorded by its Caller ID.

    ※如果用戶都沒有做選擇,電話會被轉到 PHONE。

    DigitMap 詳解

    (http://obihai.com/OBiAdminGuide.htm#_Toc288059355)
    在 OBi 裝置裡要設定撥號規則,必須尋找 DigitMap 的設定參數,其用法如下:

    DigitMap 類型共分為幾種

    • Msp1 : DigitMap for SP1
    • Msp2 : DigitMap for SP2
    • Mli:DigitMap for Line
    • Mpli : DigitMap for Primary Line
    • Mpp : DigitMap for PP(OBiTalk)

    以上任何一種可以被另一種所包含(include),例如在 DigitMap for SP2 可以 include Msp1,一旦被包含後就套用了這個規則。

    規則的定義

    (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.)

    • 1xxxxxxxxxx = 1 開頭 + 10 位數號碼,這是典型的美國號碼。
    • <1>[2-9]xxxxxxxxx = 在 (2 至 9) + 9 位數號碼的開頭加上 1。
    • 011xx. = 011 開頭 + 兩位數 + 任何號碼。
    • xx. = 至少兩位數的任何號碼。

     

    其他規則

    • xxxxxxxS4 = 撥完任何 7 位數的號碼後,等待 4 秒後再送出。
    • <S4:1234> = 如果閒置 4 秒,就自動撥出 1234。
    • obxxxxxxxxx = "ob" + 9位數字,這是 OBiTALK call。

    如何使 Asterisk 以 Trunk 模式與 OBi110 連結,且能作 one-stage-dialing 撥出及撥入

    所謂 Trunk 模式就是將 OBi110 作為類似 FXO 形式的路由,可撥出及接收來電。

    在 FreePBX-Based Asterisk 設定)

    Trunks > Add Trunk

    • Trunk Description:OBi-PSTN<whatever>
    • Outbound Caller ID:<empty>
    • Outbound Dial Prefix:
      **8+.
    • Trunk Name:obitrunk<自訂從OBi110註冊的帳號>
    • Peer Details:
    host=dynamic
    type=friend
    secret=<自訂從OBi110註冊的密碼>
    context=from-trunk
    disallow=all
    allow=g729
    canreinvite=no
    quality=yes
    

    Tips:

    Trunk Name 就是 OBi110 要註冊的 SIP 帳戶

    不用參數 username

    **8+. 這必須與 OBi110 的 LINE 撥出規則相同,預設 **8 的 prefix code 會從 LINE 撥出,這裡配合 OBi110 > SP2 Service > X_InboundCallRoute 的規則。

    Outbound Routes > Add Route

    •  Route Name:OBi-PSTN<whatever>
    • Dial Pattern:026|. <以 prefix code 026 為例>
    • Trunk Sequence:<選擇剛剛新增的 Trunk>
       

    Inbound Routes > Add Route

    • Description:<whatever>
    • DID Number:<PSTN 號碼,例如031234567,這裡配合 OBi110 > Physical Interface > LINE > InboundCallRoute>
    • Set Destination:<IVR, Extension, etc...>
    在 OBi110 設定)

    OBiTalk (OBi Expert Mode) > Service Providers > ITSP Profile B SIP

    • Proxy Server:<Asterisk 主機位址>
    • X_SpoofCallerID:yes <是否顯示來自 PSTN 的 Caller ID>
       

    OBiTalk (OBi Expert Mode) > Voice Serice > SP2 Service >

    • X_ServProvProfile:B  (必須與 ITSP Profile B SIP 相同)
    • X_RingProfile:B  (必須與 ITSP Profile B SIP 相同)
    • X_CodecProfile:B  (必須與 ITSP Profile B SIP 相同)
    • AuthUserName:obitrunk  (必須與 FreePBX > Trunks 相同)
    • AuthPassword:<password> (必須與 FreePBX > Trunks 相同)
    • X_InboundCallRoute:*Asterisk 分機撥出時需要
    {@>(<**2:>xx.):sp2},{@>(<**8:>xx.):li},{@>(<**9:>xx.):pp}
    

    Tips:

    - 註冊 Asterisk 時,不要使用 OBiTalk 的快速設定方式,否則其他設定可能會被覆蓋。
    - 如果設定在 Service Provider 2(ITSP Profile B),必須 SP1 也要有註冊設定,簡言之 SP2 無法單獨使用,以作者為例,可將 SP1 用於註冊分機使用。
    - sp2: SP2 Service, li: PSTN, pp: OBiTalk Gateway
    - **2/8/9 必須與 Asterisk 的 dialplan 相符。

    OBiTalk (OBi Expert Mode) > Physical Interface > LINE

    • InboundCallRoute:*LINE(PSTN) 撥入時需要
    {SP2(031234567)},{ph}
    

    Tips:

    - 031234567 是 PSTN 的電話號碼,這號碼也必須是 Asterisk 的 Inbound Route 的 DID 號碼。
    - SP2 是指連接 Asterisk 的SP2 Service
    - 加上 {ph},當 SP2 有問題就轉接到 Phone。

    Powered by MindTouch Core