返回列表 發帖

OBi Dialplan的讨论

最近有时间再看OBi的Admin Guide,使我想起一些事,在整理后让大家分享。

Dialplan的出现,可能以前的PABX机都有,但是在VoIP界里,可能说是从Sipura ATA和Asterisk说起,因为他们都同时采用了Dialplan这个术语,那么后来的人都把我们拨打电话的方式一概说成Dialplan。

在早期的ATA里,都是一般的数字上的更改,加插等函数,而Sipura SPA3000的出现,打法就更加多,但是那个时候依然采用Dialplan这个术语,后来的Linksys SPA3102也是,到了OBi110开始,因为打发变化更加大,所以Dialplan这个术语不再采用,而出现两个新名词,就是CallRoute and DigitMap。

CallRoute主要有:

1) InboundCallRoute —— 主要处理SP1,SP2,OBitalk,LINE port(li)的打入的电话

2) OutboundCallRoute —— 主要处理 Phone port (ph),Auto Attendant (aa)打出的电话

DigitMap的出现其实大家可以把它看成programming的subroutine。而这些subroutine可以被CallRoute里才用(call),如果不被called就没有用。

简单说,所有打电话的信息处理都是在CallRoute里,如果在CallRoute没有call Mlabel(DigitMap subroutine),在有关Trunk的DigitalMap是什么codes都不会被执行的。 而在CallRoute里,你可以有两个选择, 1) 把自己特定的数字变化函数写在CallRoute里,OBi叫embedded-digit-map,2)call DigitMap Subroute (Mlabel)。


通过上面的说明,大家在理解OBi110的CallRoute与DigitMaps的关系就更加清晰。如果有不明白,欢迎跟帖讨论。


角色

本帖最後由 角色 於 2011-4-11 22:02 編輯

OBiTalk的InboundCallRoute

{(obitalk_no_1|obitalk_no_2)>(xx.):LI},
{(obitalk_no_1|obitalk_no_2):aa},{ph}


Switch InboundCallRoute
{
    case "(obitalk_no_1|obitalk_no_2)>(xx.)":  // if caller=obitalk_no_1 or
                                                             // obitalk_no_2
                                                             // and use speed-dial
        LI;        
        break;   
    case "(obitalk_no_1|obitalk_no_2)":        // if caller=obitalk_no_1 or obitalk_no_2
        aa;
        break;
    default:                                            // otherwise (=default)
        ph;   
}

TOP

不知道我这样写出来,是否简单又再复杂化呢?

角色

TOP

For those dialplan newbies,they have to read the manual again and again. Also use their OBi110 as a tool to learn the CallRoute function.

YH

TOP

The correct dialling method is

6*xxxx xxxx Guangzhou landline
6*138 xxxx xxxx Guangzhou mobile
6*010 xxxxx xxxx Beijing landline
6*0137 xxxx xxxx other than Guangzhou mobile

YH

TOP

如果不是,应该是(<:133>xxxxxxxx)。

角色

TOP

LINE的Digitit是用于Inbound,而不是Outbound。

你应该set PHONE的OutboundCallRoute吧。

还要记住,在PHONE里的Digitmap没有被在PHONE的OutbounCallRoute用,等于你在Digitmap写什么都不执行!

如果你不喜欢call,那么你在OutboundCallRoute在写入embedded digitmap就可以。


角色

TOP

你可以参考下面的Link:
http://www.obitalk.com/forum/index.php?topic=743.0

角色

TOP

I believe that you want the HK PSTN fixed line to be VIRTUALLY connected to your OBi device in the US such that your can treat the phone connected to the US OBi device as the phone located in Hong Kong.

I believe that it can be achieved.

You will be advised later when the script is ready for evaluation.

YH

TOP

如果你有OBi在手,再加上手册和OBihai forum,很多问题都能解决。

角色

TOP

如果没有Dialplan,那么你能拨打的功能就会少很多。

角色

TOP

返回列表