l***h 发帖数: 9308 | 1 关于Obi高级技巧,billk (章芽吴爪) http://mitbbs.com/clubarticle_t/voip/31264115.html 的帖子里介绍了很有用处的技巧。利用GV免费直接拨美国号码,而中国号码不用拨01186,而是010-xxxx-xxxx,0139-xxx-xxx直接拨中国号码。省去了**1,***2调用不同SP拨号的麻烦。
后来使用中,发现GV不提供CNAM(Caller ID with Name ),只能看到哪个城市打来的
,不爽,直到发现通过callcentric可以免费显示对方姓名,马上采用,具体设置见
http://www.obitalk.com/forum/index.php?topic=3640.0
但跟着就有一个问题,callcentric只负责显示CNAM,也不能打出(除非交钱),还要
占据OBI 宝贵的2个SP之一。如果不用GV而选用其他voip provider打长途,该怎么办呐?
幸好Obi内置了一大堆语音网关voice gateway,任由选用。详见大牛总结教程
Need help in OutboundCallRoute
http://www.obitalk.com/forum/index.php?topic=1740.0
Using OBi Voice Gateways with SIP Providers
http://www.obitalk.com/forum/index.php?topic=526.0
受以上2贴的启发,我按自己的要求重新改变了一下,简要介绍以下:
目的是:美国号码,直接拨号,通过SP1上注册的GV完成;中国号码,直接拨01186-
xxxx,由相应的虚拟语音网关上面的voip provider来完成,如果临时需要更改voip
provider,不用修改一大堆注册数据,只需改变预设的**3,还是**4,或者**6等等的
voip provider。
更改处为
Service Providers-->ITSP Profile A-->DigitMap: (1xxxxxxxxxx|<1>[2-9]
xxxxxxxxx|<**3>011xx.|xx.|(Mipd)|[^*#]@@.)
中**3为**4,**6等等(在Gateways and Trunk Groups里面不同的voice gateway;不
能用**5,因为系统专用占用)
大致流程:
1、收到话机拨号01186xxx.,通过Service Providers-->ITSP Profile A中|<**3>
011xx.|,把011开头的号码加上**3,也就是**301186xxx
2、Physical Interfaces --Phone Port--OutboundCallRoute :将**3开头的号码去掉*
*3,也就是把01186xxx转到Voice Gateway 3处理
3、Voice Service--Gateways and Trunk Groups---Voice Gateway 3--DigitMap,转
到自定义(Mste),或者选择相应dial plan,比如localphone不是要求011-86,而是*
1688+86,DigitMap就改成(<011:*1688>xx.)
以下为Obi设置
----------------------------------------------------------------------------
--------------------------------
Service Providers
ITSP Profile A
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**3>011xx.|xx.|(Mipd)|[^*#]@@.)
ITSP Profile B
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)
----------------------------------------------------------------------------
--------------------------------
Voice Service
Auto Attendant 1
DigitMap :([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|<00:$1>|0|**1(Msp1)|**2(Msp2)|**9
(Mpp)|(Mpli))
OutboundCallRoute :{([1-9]x?*(Mpli)):pp},{0:ph},{(<**1:>(Msp1)):sp1},{(<**2:
>(Msp2)):sp2},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Gateways and Trunk Groups
Voice Gateway3
AccessNumber: SP2(sip.callwithus.com)
DigitMap (Mste)
AuthUserID
AuthPassword
Voice Gateway4/AccessNumber: :SP2(sip.nonoh.net); DigitMap (Mste)
Voice Gateway6AccessNumber: :SP2(gateway.localphone.com) ; DigitMap (<
011:*1688>xx.)
Voice Gateway7AccessNumber: :SP2(voip.onesuite.com); DigitMap (Mste)
----------------------------------------------------------------------------
--------------------------------
Physical Interfaces --PHONE Port
DigitMap: ([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|<00:$1>|0|**1(Msp1)|**2(Msp2)|**3
(Mvg3)|**4(Mvg4)|**6(Mvg6)|**7(Mvg7)|**9(Mpp)|(Mpli))
OutboundCallRoute : {([1-9]x?*(Mpli)):pp},{**0:aa},{***:aa2},{(<**1:>(Msp1))
:sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Mvg3)):vg3},{(<**4:>(Mvg4)):vg4},{(<**6:
>(Mvg6)):vg6},{(<**7:>(Mvg7)):vg7},{(<**9:>(Mpp)):pp},{(Mpli):pli}
CallReturnDigitMaps: {pli:(xx.)},{sp1:(<**1>xx.)},{sp2:(<**2>xx.)},{pp:(<**9
>xx.)}
----------------------------------------------------------------------------
--------------------------------
User Settings
User Defined Digit Maps1
Label: ipd
DigitMap: (xx.<*:@>xx?x?<*:.>xx?x?<*:.>xx?x?<*:.>xx?x?|xx.<*:@>xx?x?<*:.>xx?
x?<*:.>xx?x?<*:.>xx?x?<*::>xx?x?x?x?)
User Defined Digit Maps2
Label: ste
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|(Mipd)|[^*]@@.'@'@@.) |