在 A2Billing 的設計架構下,只能針對下車(outbound calls) 的撥號行為作計費,如果想做到DID上車的計費模式,可以參考以下的教學。
情境設計:用戶從外線撥入 DID 後,直接轉入指定的 IVR 語音,並作上車的計費。
系統需求:
- Asterisk
- FreePBX
- A2Billing
設定開始
A2Billing)
在 A2B 的管理介面有幾個項目要作:
- 新增 DID 號碼,INBOUND DID > Add >
DID = DID 號碼
BILLING = Only dialout rate
DIDGROUP = 事先新增 DIDGROUP
ACTIVATED = Yes
MONTHLY RATE = 0
CONNECT CHARGE = 0
SELLING RATE = 0 - 新增轉接目的號碼,Destination > Add
DESTINATION = 填 IVR 的虛擬號碼,參考 FreePBX 設定
CUSTOMERID = 選擇要計費的帳戶號碼
DID = 選擇要綁定的 DID 號碼
ACTIVATED = Yes
PRIORITY = 1
VOIP_CALL = No - 新增 Provider,PROVIDERS > Providers > Add
PROVIDER NAME = AST - 新增 Trunk,PROVIDERS > Trunks > Add
VOIP-PROVIDER = AST
LABEL = Local
REMOVE PREFIX = 2
PROVIDER TECH = LOCAL
PROVIDER IP = %dialingnumber%@from-internal - 新增 Prefix code,PROVIDERS > Prefixes > Add
PREFIX = 2
DESTINATION = DID Inbound
FreePBX)
- 新增 SIP Trunk 連結 Provider,Trunks > Add
...
context=a2billing-did - 新增 IVR 設定,IVR > Add
- 新增 feature code 導向 IVR,Misc Applications
Description = whatever
Feature Code = 9990 這是 IVR 的虛擬號碼
Feature Status = Enable
Destination = IVR