由买买提看人间百态

topics

全部话题 - 话题: exten
首页 上页 1 2 3 4 5 6 7 8 (共8页)
r****t
发帖数: 10904
1
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.
g**d
发帖数: 723
2
挂在上面的硬盘有DISK error. 一会儿查一下.
g**d
发帖数: 723
3
那么我整个的dialplan应该怎么写?
买来的时候就是:
(*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
假设我的area code ABC
r****t
发帖数: 10904
4
抄 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
发帖数: 723
5
不太懂, "每个 pattern 放在 || 中间", 也就是说|[3469]11| 就是311, 411, 611,
911? 那么|0|和|00|是什么?
a9
发帖数: 21638
6
应该没用。可能是拨0进入ivr或者什么的吧。
其实不加S0也可以,拨号的时候加#结尾就直接拨出去了。
我一般就是设成x.,拨号的时候加个#

很少
行。
r****t
发帖数: 10904
7
如果 match 上<:1ABC>[2-9]xxxxxx,没有 S0 的等多久 PAP2 才会拨出呢? 没找到默
认值,我
用了 S2, 可能是等 2 秒以后拨出。
g**d
发帖数: 723
8
我发现如果我拨1800-goog411, 用sipsorcery都会快很多。 决定以后要拨这个1来省这
十秒。
a9
发帖数: 21638
9
默认值可能是4秒
p**i
发帖数: 688
10
我测了一下, 我的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
发帖数: 10904
11
Thanks! This post should be marked.

001ABC>
g**d
发帖数: 723
12
来自主题: _voip版 - caller id?
extensions.conf extensions_dialplan.conf extensions_function.conf extensions
_global.conf modules.conf sip.conf, sip_extensions.conf, sip_servers.conf
sip_registrations.conf
是从帖子直接copy的内容, 我把换行的都去掉了. 现在我觉得的问题是:
第一: 我从sipgate看, asterisk是注册上了的. 但是从sipgate做"test phone", 说 "
line busy". 只有我把answer_sipgate变成你原来answer_gizmo的才能打入.
;answer call from sipgate
[answer-sipgate]
exten => ${SIPGATE_DID},1,Dial(SIP/${DEFAULT_EXT},90)
第二: 无法用sipgate打出, 打goog411, goto (call-with-sipgate), 然后就是忙音.
我以前只config过gv_c
g**d
发帖数: 723
13
来自主题: _voip版 - 重新来过了.
我发现不用
exten => _NXXNXXXXXX,n,ParkAndAnnounce(,,Console/dsp)
而是原来的Park()
就没有这个oneway voice problem.
r****t
发帖数: 10904
14
http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
# g: When the called party hangs up, exit to execute more commands in the
current context.
# G(context^exten^pri): If the call is answered, transfer both parties to
the specified context and extension. The calling party is transferred to
priority x, and the called party to priority x+1. This allows the dialplan
to distinguish between the calling and called legs of the call (new in v1.2).
# A(x): Play an announcement (x.gsm) to the called part
r****t
发帖数: 10904
15
来自主题: _voip版 - 使用asterisk的安全问题
防止同时打多个电话:
exten => _0Z.,n,GotoIf($[${GROUP_COUNT(OUTBOUND_GROUP_ONCE@nonoh)}>1]?InUse)
a9
发帖数: 21638
16
修改extensions.conf,加上限制。
extern => ......,n,ExecIf($["${EXTEN}" != "101"]?Hangup())
t*m
发帖数: 1044
17
来自主题: _voip版 - asterisk中Park命令发声
更好的方法是用:
exten => _NXXNXXXXXX,n,ParkAndAnnounce(,0,)
r****t
发帖数: 10904
18
还有,check 这个帖子:
http://www.mitbbs.com/clubarticle_t/voip/31205491.html
http://www.mitbbs.com/clubarticle/voip/31205061_0.html
简单的说 [gv-outbound] 里面 Set DB 需要发生在 call gvoice 之前,而不是之后。
这对于 dockstar 或者是 502gu 这样的尤其重要,估计可以缩短不少等待时间。避免 gv 回拨
到了还没准备好 park/bridge 的情况。所以其实 gv 回拨是很快也很稳定的,你看都可以比你
gvoice logout 快,不知道抱怨 gv 回拨慢的人都是怎么回事。
exten => _X.,n,Set(DB(gv_dialout/channel)=${CHANNEL})
k****t
发帖数: 2288
19
a9,好厉害呀~~~~
将那句话按照如下方式修改一下就OK了!!!
(就是将最后的space给删除了)
exten => 650xxxx,n,Bridge(${DB_DELETE(gv_dialout/channel):0:-1},p)
^^^^^
k****t
发帖数: 2288
20
呵呵,我也就是在想这个问题呀~~
仔细review我的dialplan,发现问题了:
exten => _X.,n,Set(DB(gv_dialout/channel)=${CHANNEL} )
我的这句话}与)之间有个空格。
我的原来的不work,是因为没有使用local。后来用了local,结果不知道怎么回事,在
}与)之间加了一个空格。
哎~~~
m****m
发帖数: 2452
21
Kermit,
我用了你的这个CONFIG。打进一点问题也没有,打出,出现下面问题:
== Using SIP RTP CoS mark 5
-- Executing [9xx6xx6xxxx@from-internal:1] Dial("SIP/101-00000000", "Loc
al/9xx6xx6xxxx@gv-outbound/n") in new stack
-- Called 9xx6xx6xxxx@gv-outbound/n
-- Executing [9xx6xx6xxxx@gv-outbound:1] NoOp("Local/9xx6xx6xxxx@gv-outb
ound-ff9d;2", "") in new stack
-- Executing [9xx6xx6xxxx@gv-outbound:2] Set("Local/9xx6xx6xxxx@gv-outbo
und-ff9d;2", "DB(gv_dialout/channel)=Local/9xx6xx6xxxx@gv-outbound-ff9d;2")
in ne... 阅读全帖
i**w
发帖数: 883
22
这个SipGate的CallerID问题很诡异,有时候会加前缀1,有时候不加,看一下SipGate
的incoming history,有时候会是(XXX)XXX XXXX,有时候会是11XXX XXX XXXX。
我的dialplan里面,GV_NUMBER应该定义为10位:XXX XXX XXXX
这样,下面的dialplan对有没有1前缀的CallerID都可以正确处理:
exten => ${SipGate_DID},1,GotoIf($[${CALLERID(num)}=~"(\d)?${GV_NUMBER}" > 0
]?:normalcall)
a9
发帖数: 21638
23
https://getgvoice.appspot.com/welcome?email=[google voice 账号]&passwd=[
google voice密码]&outgoing=[要拨打的号码]&forwarding=%2b[回拨号码]
放心不会记录你的账号。有需要源代码的可以给我发email,方便不使用python的朋友
可以这样用
exten => _X.,n,System(/usr/bin/curl "上面的链接")
s*k
发帖数: 507
24
了解了
是不是
exten => ${SipGate_DID},n,Bridge(${DB_DELETE(gv_dialout/channel)},p)
我觉得了解了原理,可以自己写个script代替pygooglevoice,似乎就是自动访问google voice
的网页,登陆,并且拨电话就好了。
s*k
发帖数: 507
25
chan_sip.c:17295 handle_request_invite: Call from '100a' to extension
'7474743246' rejected because extension not found
怎么回事啊?
dialplan show的时候明明有:
[ Context 'gv-outbound' created by 'pbx_config' ]
'_NXXNXXXXXX' => 1. NoOp() [pbx_config]
2. Set(DB(gv_dialout/channel)=${CHANNEL}) [pbx_config]
3. System(/mnt/apps/asterisk/gvoice ${EXTEN}) [pbx_config]
4. Wait(20) [pbx_config]
5... 阅读全帖
C*******1
发帖数: 422
26
Thanks. That is what I have. That is from
http://www.arctangent.net/~superm1/gv_configs/extensions.conf
I am not seeing any diference from this.
I understand
exten => s*****[email protected], n, Dial(SIP/101, 180, D(:1))
is giving DTMF(1).
I may need to try
answer, wait and sendDTMF.
C*******1
发帖数: 422
27
Thanks. That is what I have. That is from
http://www.arctangent.net/~superm1/gv_configs/extensions.conf
I am not seeing any diference from this.
I understand
exten => s*****[email protected], n, Dial(SIP/101, 180, D(:1))
is giving DTMF(1).
I may need to try
answer, wait and sendDTMF.
D*********Z
发帖数: 415
28
我没有用这个,用的是
exten => m************[email protected],1,Dial(SIP/101,20,D(:1))
p**i
发帖数: 688
29
顶一个, 这个很有用, 不过
exten => _X.,n,Background("hello") 在我的asterisk上报错file not found
改成Background(demo-thanks)就好了
bash script里也可以用循环
# numbers to dial
LIST="360xxxxxxx 818xxxxxxx 415xxxxxxx"
# now the actual dial
for SNUM in $LIST; do
asterisk -rx "originate LOCAL/1$SNUM@gv-outbound extension s@say-
hello"
sleep 60
done

-call 改成你的 gv 号就行),实际上这个 context 里面并没有用到任何 ipkall 的号
码,所以适用于任何需要周期性的打入来保持使用的 voip 帐号,只要 include=>
inbound-gv-picup-maint 这个 conte:
during testing.
m******t
发帖数: 4077
30
以前都用的好好的。最近好长一段时间没有收到incoming call了,才注意到根本就受
不到了。对方拨电话,听到的是响铃, 然后直接进voicemail。
在asterisk console上完全看不到有incoming call。 但是Sipdroid和GrooveIP都是好
的,所以chat是肯定forward了。
jabber show connection - connected
chan_gtalk.so Gtalk Channel Driver 0
- 这是对的吧
打出去也是完全没有问题。
exten => c*******[email protected], n, Wait(2) 也改过了,没有用处。Touchpad已经关
了,phone上的gtalk也sign out了。
attached是我的config file,也是从本版上下的,各位高手给诊断诊断吧。
w*m
发帖数: 1806
31
来自主题: _voip版 - 谁能共享一个asterisk dialplan?
here is the message:
unknown*CLI>
> Saved useragent "RTP300-3.1.22" for peer 101
> Saved useragent "Cisco-CP7940G/8.0" for peer 103
== Using SIP RTP CoS mark 5
-- Executing [01186XXXXXXXXXXX@outbound:1] Dial("SIP/103-00000000", "
Gtalk/wdmshop/0**************[email protected]") in new stack
-- Called Gtalk/wdmshop/0**************[email protected]
[Oct 19 11:42:40] WARNING[1778]: channel.c:5851 ast_channel_make_compatible_
helper: No path to translate from Gtalk/01186XXX... 阅读全帖
c****0
发帖数: 784
32
直接一点不同分机用不同context出去走不同GV就是了。
复杂一点可以用一个context,根据exten动态选择不同GV。
w*******t
发帖数: 960
33
来自主题: _voip版 - 问个VOIP的问题 (转载)
弄明白了,register的确是必须的
但是dialplan里还必须要增加有这个
exten => _00861NX.,1,Set(CALLERID(num)=600xxx)
我在nonoh里callerid是随便写的手机号,没有关系,yescall就必须是分机号
s*****p
发帖数: 5342
34
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: startup (不會玩的人=會上班的豬), 信区: WashingtonDC
标 题: 急寻SATA HDD Docking Station
发信站: BBS 未名空间站 (Mon Jun 15 22:35:29 2009, 美东)
I have an internal drive but my friend need an extenal drive before this Fri
. I am wondering if someone could lend me one docking station for this
weekend.
Thanks!
首页 上页 1 2 3 4 5 6 7 8 (共8页)