Board logo

標題: macro-trunkdial-failover [打印本頁]

作者: 角色    時間: 2010-9-7 11:04     標題: macro-trunkdial-failover

假如我们想拨打大陆电话,我们可以有两个途径。第一个经过HGC的PSTN线路(包月),第二个经ET263打出去,但是一分钟要0.07元人民币。

现在如果包月的HGC PSTN不通,直接转到收费ET263拨打。

拨打HGC PSTN的方式为:0086 + <大陆电话>
拨打ET263的方式为:0 + <大陆电话>

怎样启动这个macro呢?就是用prefix 7。拨到模式是70 + <大陆电话>。
  1. [macro-trunkdial-failover]
  2. exten = s,1,Dial(${ARG1})
  3. exten = s,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
  4. exten = 1-CHANUNAVAIL,1,Goto(failover-dial,1)
  5. exten = 1-CONGESTION,1,Goto(failover-dial,1)
  6. exten = 1-BUSY,1,Goto(failover-dial,1)
  7. exten = 1-out,1,Hangup()
  8. exten = failover-dial,1,Dial(${ARG2})


  9. [trunk-failover-dial-china]
  10. exten => _70.,1,Macro(trunkdial-failover,SIP/tw-gw/0086${EXTEN:2},SIP/et263/${EXTEN:1})

  11. [internal]
  12. Include => include => trunk-failover-dial-china

  13. exten => 3001,1,Dial(SIP/3001,,r)
  14. exten => 3002,1,Dial(SIP/3002,,r)
複製代碼
角色
作者: Qnewbie    時間: 2010-9-7 15:49

It is really a great stuff.

The first impression for VOIP for my family members is unreliable and sometimes troublesome. They trust only conventional PSTN as you sometimes cannot explain internet is down, firewall blocks, the VSP is down etc. With redundancy of VSP, I think it would increase the confidence for VOIP in the future.
作者: 角色    時間: 2010-9-7 17:43

For my family memers they are very concern about the charges. As a result, I let them have two prefixes, for instance a number with prefix 9 will charge them 0.07RMB for one minute telephone conversation and prefix 8 is free of charge. In fact I have already created another prefix 7 like the first post. However I believe that they do not like to use because they want to know the actual connect that they are using.

YH




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