由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_voip版 - asterisk 1.8的incoming call的问题
相关主题
关于asterisk注册nonoh的问题gv+sipgate+freepbx+ata, 15分钟限制?
崩溃了,Asterisk 1.8.7.1+GV+Dockstar 没有incoming call啊caller id?
求救!asterisk分机打另一个分机只响铃二次就出忙音.问一下,版上有没大牛分享过asterisk的配置文件?
谁能共享一个asterisk dialplan?Asterisk 1.8 多google voice用户一点心得
新手请教个问题:Asterisk+GV是不是要这么回事?asterisk gtalk接不起来的,你们有没有试过
Asterisk 1.4, GV call out problemasterisk又接不起来了<==已解决
asterisk + gv无法打入拨的是0118613312345678,asterisk给我拨少了一个号。
(solved) 奇怪的 one way voice 问题 (asterisk, pygooglevoicasterisk 1.6 的bridge功能怎么用?
相关话题的讨论汇总
话题: exten话题: dial话题: sip话题: outbound话题: callerid
1 (共1页)
k****t
发帖数: 2288
1
装了1.8,也用了google talk,但是也用了sipgate来接sipgate的电话或者是用来打800
电话。但是现在我从sipgate的另外一个号码call这个650XXXXX2的电话得到如下的log
,给人的感觉就是进了outbound的了,好奇怪;看了一下externsion。conf,应该是
come in phone call会自动dial default的呀?
其他的都很正常:从1001往外打电话,接gtalk来的电话,但是没有办法接从sipgate过
来的电话。
== Using SIP RTP CoS mark 5
-- Executing [650XXXXXX2@outbound:1] Set("SIP/SipGate-0000001d", "
CALLERID(dnid)=1650XXXXXX2") in new stack
-- Executing [650XXXXXX2@outbound:2] Goto("SIP/SipGate-0000001d", "
1650XXXXXX2,1") in new stack
-- Goto (outbound,1650XXXXXX2,1)
-- Executing [1650XXXXXX2@outbound:1] Dial("SIP/SipGate-0000001d", "
Gtalk/kermit.shen/1*********[email protected]") in new stack
-- Called Gtalk/mygmail/1*********[email protected]
-- Gtalk/1*********[email protected] is ringing
== Spawn extension (outbound, 1650XXXXXX2, 1) exited non-zero on 'SIP/
SipGate-0000001d'
下面是是我的externsion.conf:
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (
usually 1 or 0)
[default]
exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => s,n,Dial(SIP/1001,10)
exten => s,n, Hangup
exten => 1001, 1, Dial(SIP/1001, 10)
exten => 1002, 1, Dial(SIP/1002, 10)
[google-in]
exten => m*****[email protected], 1, GotoIf(${DB_EXISTS(gv_dialout/channel)}?
bridged)
exten => m*****[email protected], n, NoOp(Callerid ${CALLERID(name)})
exten => m*****[email protected], n, Set(CALLERID(num)=${SHIFT(CALLERID(name),@)})
exten => m*****[email protected], n, Set(CALLERID(name)=${DB(cidname/${CALLERID(
num)})})
exten => m*****[email protected], n, Answer
exten => m*****[email protected], n, Wait(2)
exten => m*****[email protected], n, SendDTMF(1)
exten => m*****[email protected], n, Dial(SIP/1001, 180, )
exten => m*****[email protected], n(bridged),Bridge(${DB_DELETE(gv_dialout/channel
)}, p)
[outbound]
include => to-china
include => seven-digit
include => local-devices
include => tollfree
include => talk-gmail-outbound
include => talk-numeric-outbound
include => dial-uri
[to-china]
exten => _01186X.,1,Set(CALLERID(num)=1xxxxxxx)
exten => 01186NX.,n,Dial(SIP/${EXTEN}@nonoh,50,trg)
exten => 01186NX.,n,Congestion
exten => 011X.,1,Hangup
[local-devices]
exten => _1, 1, Dial(SIP/1001,10)
exten => 1001, 1, Dial(SIP/1001,10)
exten => _2, 1, Dial(SIP/1002,10)
exten => 1002, 1, Dial(SIP/1002,10)
[tollfree]
exten => _411, 1, Dial(SIP/1*********[email protected],60)
exten => _1800NXXXXXX,1,Dial(SIP/${EXTEN}@SipGate,60)
exten => _1888NXXXXXX,1,Dial(SIP/${EXTEN}@SipGate,60)
exten => _1877NXXXXXX,1,Dial(SIP/${EXTEN}@SipGate,60)
exten => _1866NXXXXXX,1,Dial(SIP/${EXTEN}@SipGate,60)
;[tollfree]
;exten => _411, 1, Dial(SIP/1*********[email protected],60)
;exten => _1800NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
;exten => _1888NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
;exten => _1877NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
;exten => _1866NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
[seven-digit]
exten => _NXXXXXX,1,Set(CALLERID(dnid)=1408${CALLERID(dnid)})
exten => _NXXXXXX,n,Goto(1408${EXTEN},1)
exten => _NXXNXXXXXX,1,Set(CALLERID(dnid)=1${CALLERID(dnid)})
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1)
[talk-gmail-outbound]
exten => _[a-z][email protected],1,Dial(Gtalk/mygmail/${EXTEN}@gmail.com)
exten => _[A-Z][email protected],1,Dial(Gtalk/mygmail/${EXTEN}@gmail.com)
[talk-numeric-outbound]
exten => _1NXXNXXXXXX,1,Dial(Gtalk/mygmail/${EXTEN}@voice.google.com)
exten => _+1NXXNXXXXXX,1,Dial(Gtalk/mygmail/${EXTEN}@voice.google.com)
[gv-agi-outbound]
exten => _1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)
exten => _+1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)
[dial-uri]
exten => _[a-z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _[A-Z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _X.,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
下面是我的sip.conf
[general]
register => sipgateaccount:p*[email protected]/650xxxxx2
context=default ; Default context for incoming calls
allowoverlap=no ; Disable overlap dialing support. (Default
is yes)
bindport=5060 ; UDP Port to bind to (SIP standard port is
5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to
all)
tcpenable=yes ; Enable server for incoming TCP connections
(default is no)
tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.
0.0 binds to all interfa
ces)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
localnet=192.168.0.0/255.255.0.0
nat=yes
alwaysauthreject=yes
[1001]
secret=LI
type=friend
host=dynamic
context=outbound
outgoinglimit=1
incominglimit=1
canreinvite=no
transport=udp
permit=192.168.0.0/255.255.0.0
nat=yeS
qualify=yes
disallow=all
allow=alaw
allow=ulaw
allow=gsm
dtmfmode=rfc2833
[1002]
secret=p
type=friend
host=dynamic
context=outbound
outgoinglimit=1
incominglimit=1
canreinvite=no
transport=udp
disallow=all
allow=g729
allow=alaw
allow=ulaw
allow=gsm
dtmfmode=rfc2833
deny=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.0.0
[SipGate]
disallow=all
username=account
type=peer
secret=pwd
nat=yes
insecure=invite
host=sipgate.com
fromuser=accoount
fromdomain=sipgate.com
context=outbound
canreinvite=no
caninvite=no
allow=ulaw
allow=alaw
qualify=yes
outboundproxy=proxy.live.sipgate.com
dtmfmode=rfc2833
[nonoh]
disallow=all
username=username
type=peer
secret=password
nat=yes
insecure=invite
host=sip.nonoh.net
fromuser=kermit_2006
fromdomain=sip.nonoh.net
context=outbound
canreinvite=no
caninvite=no
qualify=yes
allow=ulaw
allow=alaw
i**w
发帖数: 883
2
sip.conf里面的sipgate的context设错了,不该是outbound
k****t
发帖数: 2288
3
那应该是default?

【在 i**w 的大作中提到】
: sip.conf里面的sipgate的context设错了,不该是outbound
1 (共1页)
相关主题
asterisk 1.6 的bridge功能怎么用?新手请教个问题:Asterisk+GV是不是要这么回事?
Outbound/inbound 是不是需要 registration (转载)Asterisk 1.4, GV call out problem
asterisk 如何避免二个分机同时使用NONOH?asterisk + gv无法打入
谁能给个asterisk的教程啊(solved) 奇怪的 one way voice 问题 (asterisk, pygooglevoic
关于asterisk注册nonoh的问题gv+sipgate+freepbx+ata, 15分钟限制?
崩溃了,Asterisk 1.8.7.1+GV+Dockstar 没有incoming call啊caller id?
求救!asterisk分机打另一个分机只响铃二次就出忙音.问一下,版上有没大牛分享过asterisk的配置文件?
谁能共享一个asterisk dialplan?Asterisk 1.8 多google voice用户一点心得
相关话题的讨论汇总
话题: exten话题: dial话题: sip话题: outbound话题: callerid