r****t 发帖数: 10904 | 1 It turns out 这个问题是因为 ATA 没有及时拨出到 asterisk, 不是
asterisk 慢。 |
p**i 发帖数: 688 | 2 what is your dialplan on your ATA? it might have difficulty dialing a number
without prepending 1. 我的PAP2t dialplan如下(it always starts with 00 and
ABC is my area code):
(#S0|<:001ABC>[2-9]xxxxxx|<:00>1[2-9]xx[2-9]xxxxxxS0|<:001>[2-9]xx[2-9]
xxxxxxS0|<011:00>xx.)
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : It turns out 这个问题是因为 ATA 没有及时拨出到 asterisk, 不是 : asterisk 慢。
|
r****t 发帖数: 10904 | 3 Ah, I never thought about this in my pap2. I saw those alien codes
in PAP2 web interface and have always tried to avoid dealing with
them. Now maybe i have to learn them...
number
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : what is your dialplan on your ATA? it might have difficulty dialing a number : without prepending 1. 我的PAP2t dialplan如下(it always starts with 00 and : ABC is my area code): : (#S0|<:001ABC>[2-9]xxxxxx|<:00>1[2-9]xx[2-9]xxxxxxS0|<:001>[2-9]xx[2-9] : xxxxxxS0|<011:00>xx.)
|
r****t 发帖数: 10904 | 4 I only have a small question: if 011 is replaced with 00, how do you tell it
is an international call in asterisk, especially as you've prepended US
calls with 00, too?
number
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : what is your dialplan on your ATA? it might have difficulty dialing a number : without prepending 1. 我的PAP2t dialplan如下(it always starts with 00 and : ABC is my area code): : (#S0|<:001ABC>[2-9]xxxxxx|<:00>1[2-9]xx[2-9]xxxxxxS0|<:001>[2-9]xx[2-9] : xxxxxxS0|<011:00>xx.)
|
g**d 发帖数: 723 | 5 my dailplan in ATA:
(*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
words here are exactly the same as on ATA.
Is there anyroom to improve here? If my area code is ABC, how can I put
inside this dialplan?
My asterisk machine's harddisk broke, I need to repair it before try repast'
s suggestion.
number
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : what is your dialplan on your ATA? it might have difficulty dialing a number : without prepending 1. 我的PAP2t dialplan如下(it always starts with 00 and : ABC is my area code): : (#S0|<:001ABC>[2-9]xxxxxx|<:00>1[2-9]xx[2-9]xxxxxxS0|<:001>[2-9]xx[2-9] : xxxxxxS0|<011:00>xx.)
|
k***e 发帖数: 7933 | 6 我的是这样,打10位和11位好像差不多快/慢。
([2-9]xx[2-9]xxxxxxS0|1[2-9]xx[2-9]xxxxxxS0|011[2-9]x.|xT|*xx)
repast'
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : my dailplan in ATA: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) : words here are exactly the same as on ATA. : Is there anyroom to improve here? If my area code is ABC, how can I put : inside this dialplan? : My asterisk machine's harddisk broke, I need to repair it before try repast' : s suggestion. : : number
|
r****t 发帖数: 10904 | 7 I never tried myself, but this might work (putting area code):
add this as one of the parts, ABC=your area code
|<:1ABC>[2-9]xxxxxxS0|
From what you have, it does look like not covering 10-digit number. I
do not understand what the last part xxxxxxxxxxxx. means, but I can see it
does not have a S0 in it.
repast'
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : my dailplan in ATA: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) : words here are exactly the same as on ATA. : Is there anyroom to improve here? If my area code is ABC, how can I put : inside this dialplan? : My asterisk machine's harddisk broke, I need to repair it before try repast' : s suggestion. : : number
|
r****t 发帖数: 10904 | 8 Yes, this is supposed to make 10-digit number as fast as
11-digit numbers.
【在 k***e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 我的是这样,打10位和11位好像差不多快/慢。 : ([2-9]xx[2-9]xxxxxxS0|1[2-9]xx[2-9]xxxxxxS0|011[2-9]x.|xT|*xx) : : repast'
|
r****t 发帖数: 10904 | 9 Useful:
http://supremeit.com/voip/dialplan.php
repast'
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : my dailplan in ATA: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) : words here are exactly the same as on ATA. : Is there anyroom to improve here? If my area code is ABC, how can I put : inside this dialplan? : My asterisk machine's harddisk broke, I need to repair it before try repast' : s suggestion. : : number
|
r****t 发帖数: 10904 | 10 Your NSLU2 broke?
repast'
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : my dailplan in ATA: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) : words here are exactly the same as on ATA. : Is there anyroom to improve here? If my area code is ABC, how can I put : inside this dialplan? : My asterisk machine's harddisk broke, I need to repair it before try repast' : s suggestion. : : number
|
|
|
p**i 发帖数: 688 | 11 hehe, you have seen how it's dealt with by my asterisk: as long as the
number doesn't start with 001, it's an international number
[CallingRule_outbound]
exten => _001.,1,Dial(Local/${EXTEN:2}@gv-outbound/n)
exten => _00[2-9]X.,1,Macro(trunkdial-failover-0.3,${piii}/${EXTEN:0},,piii,
) ; piii is the name of voip trunk for voipbuster
[macro-trunkdial-failover-0.3]
exten = s,1,GotoIf($[${LEN(${FMCIDNUM})} > 6]?1-fmsetcid,1)
exten = s,2,GotoIf($[${LEN(${GLOBAL_OUTBOUNDCIDNAME})} > 1]?1-setgbobname,
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I only have a small question: if 011 is replaced with 00, how do you tell it : is an international call in asterisk, especially as you've prepended US : calls with 00, too? : : number
|
p**i 发帖数: 688 | 12 I think it's better to use <:1ABC>[2-9]xxxxxx than <:1ABC>[2-9]xxxxxxS0
otherwise you may have difficulty dialing such a number as 800goog411
depending on whether 800goog is matched by this dialplan
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I never tried myself, but this might work (putting area code): : add this as one of the parts, ABC=your area code : |<:1ABC>[2-9]xxxxxxS0| : From what you have, it does look like not covering 10-digit number. I : do not understand what the last part xxxxxxxxxxxx. means, but I can see it : does not have a S0 in it. : : repast'
|
r****t 发帖数: 10904 | 13 you are right. With S0, once we key in 7 digits like 800goog, it dials out
instantly, and we do not want it to dial out in that case before we enter
all 10 digits.
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I think it's better to use <:1ABC>[2-9]xxxxxx than <:1ABC>[2-9]xxxxxxS0 : otherwise you may have difficulty dialing such a number as 800goog411 : depending on whether 800goog is matched by this dialplan
|
g**d 发帖数: 723 | 14 挂在上面的硬盘有DISK error. 一会儿查一下.
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Your NSLU2 broke? : : repast'
|
g**d 发帖数: 723 | 15 那么我整个的dialplan应该怎么写?
买来的时候就是:
(*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
假设我的area code ABC
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : you are right. With S0, once we key in 7 digits like 800goog, it dials out : instantly, and we do not want it to dial out in that case before we enter : all 10 digits.
|
r****t 发帖数: 10904 | 16 抄 piii 的,加快速拨 10 位电话:
(*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|<:1>xxx[2-
9]xxxxxxS0|xxxxxxxxxxxx.)
这样把每个 pattern 放在 || 中间。我没有加省略区号拨 7-digit 的部分,觉得很少
用到。你这
个 dial plan 上面拨 7 位也有,只是需要在 asterisk 里面处理一下加上区号才行。
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 那么我整个的dialplan应该怎么写? : 买来的时候就是: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) : 假设我的area code ABC
|
g**d 发帖数: 723 | 17 不太懂, "每个 pattern 放在 || 中间", 也就是说|[3469]11| 就是311, 411, 611,
911? 那么|0|和|00|是什么?
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 抄 piii 的,加快速拨 10 位电话: : (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|<:1>xxx[2- : 9]xxxxxxS0|xxxxxxxxxxxx.) : 这样把每个 pattern 放在 || 中间。我没有加省略区号拨 7-digit 的部分,觉得很少 : 用到。你这 : 个 dial plan 上面拨 7 位也有,只是需要在 asterisk 里面处理一下加上区号才行。
|
a9 发帖数: 21638 | 18 应该没用。可能是拨0进入ivr或者什么的吧。
其实不加S0也可以,拨号的时候加#结尾就直接拨出去了。
我一般就是设成x.,拨号的时候加个#
很少
行。
【在 g**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 不太懂, "每个 pattern 放在 || 中间", 也就是说|[3469]11| 就是311, 411, 611, : 911? 那么|0|和|00|是什么?
|
r****t 发帖数: 10904 | 19 如果 match 上<:1ABC>[2-9]xxxxxx,没有 S0 的等多久 PAP2 才会拨出呢? 没找到默
认值,我
用了 S2, 可能是等 2 秒以后拨出。
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I think it's better to use <:1ABC>[2-9]xxxxxx than <:1ABC>[2-9]xxxxxxS0 : otherwise you may have difficulty dialing such a number as 800goog411 : depending on whether 800goog is matched by this dialplan
|
g**d 发帖数: 723 | 20 我发现如果我拨1800-goog411, 用sipsorcery都会快很多。 决定以后要拨这个1来省这
十秒。
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 如果 match 上<:1ABC>[2-9]xxxxxx,没有 S0 的等多久 PAP2 才会拨出呢? 没找到默 : 认值,我 : 用了 S2, 可能是等 2 秒以后拨出。
|
|
|
a9 发帖数: 21638 | 21 默认值可能是4秒
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 如果 match 上<:1ABC>[2-9]xxxxxx,没有 S0 的等多久 PAP2 才会拨出呢? 没找到默 : 认值,我 : 用了 S2, 可能是等 2 秒以后拨出。
|
p**i 发帖数: 688 | 22 我测了一下, 我的PAP2T会等~3秒拨出when I dial a 7 digit number with <:001ABC>
[2-9]xxxxxx
我在它的regional tab(advanced view)里的control timer values (sec)找到了
Interdigit Short Timer: 3和Interdigit Long Timer: 10
【在 r****t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 如果 match 上<:1ABC>[2-9]xxxxxx,没有 S0 的等多久 PAP2 才会拨出呢? 没找到默 : 认值,我 : 用了 S2, 可能是等 2 秒以后拨出。
|
r****t 发帖数: 10904 | 23 Thanks! This post should be marked.
001ABC>
【在 p**i 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 我测了一下, 我的PAP2T会等~3秒拨出when I dial a 7 digit number with <:001ABC> : [2-9]xxxxxx : 我在它的regional tab(advanced view)里的control timer values (sec)找到了 : Interdigit Short Timer: 3和Interdigit Long Timer: 10
|