当我尝试转发呼叫时出现了这个问题。
——在新栈中执行[1001@users:1]宏("SIP/to_freepbx-0000003a", "stduser,1001,tT")——在新栈中执行[s@macro-stduser:1] GotoIf("SIP/to_freepbx-0000003a", "1?FORWARD"——Goto (macrostduser,s,4)——在新栈中执行[s@macro-stduser:4] Answer("SIP/to_freepbx-0000003a", ")——在新栈中执行[s@macro-stduser:5] Goto("SIP/to_freepbx-0000003a", "users,1002,1")——Goto (users,1002,1)==通道'SIP/to_freepbx-0000003a'跳出宏'stduser'——在新栈中执行[1002@users:1]宏("SIP/to_freepbx-0000003a", "stduser,1002,tT")——在新栈中执行[s@macro-stduser:1] GotoIf("SIP/to_freepbx-0000003a", "1?FORWARD"——Goto (macrostduser,s,4)——在新栈中执行[s@macro-stduser:4] Answer("SIP/to_freepbx-0000003a", ")在新栈中执行[s@macro-stduser:5] Goto("SIP/to_freepbx-0000003a", "users,2004,1")——Goto(用户,2004,1)==通道'SIP/to_freepbx-0000003a'跳出宏'stduser'——在新栈中执行[2004@users:1]拨号("SIP/to_freepbx-0000003a", "SIP/2004@to_freepbx")==使用SIP RTP标记5——称为SIP/2004@to_freepbx[Sep 8 12:24:54] NOTICE[17431]: chan_sip.c:21050 handle_response_invite: Failed to authenticate on INVITE to '"LEO";tag=as6388ac84'——SIP/to_freepbx-0000003b线路忙==此时大家都很忙/拥塞(1:0/1/0)—自动故障,通道'SIP/to_freepbx-0000003a'状态为'拥塞'
在日志中除了通知" chan_sip.c:21050 handle_response_invite: " Failed to authenticate on INVITE to "
我有两个PBX服务器。一个是gui-less星号,另一个是freepbx..我创建了一个sip中继让它们连接,如下
[general]
context=users
realm=training.com
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=gsm
language=en
trustrpid=yes
sendrpid=yes
[examconfig](!)
type=friend
host=dynamic
secret=1qaz1qaz
qualify=yes
callgroup=1
pickupgroup=1
context=users
canreinvite=no
[1001](examconfig)
mailbox=1001@default
callerid="Michael Jordan" <1001>
setvar=USERID=1001
[1002](examconfig)
mailbox=1002@default
callerid="Kobe Brian" <1002>
setvar=USERID=1002
[to_freepbx]
type=friend
host=192.168.1.250
insecure=port,invite
qualify=yes
context=users
disallow=all
allow=ulaw
allow=gsm
canreinvite=no
nat=no
dtmfmode=inband
这里是my extensions.conf
的一部分 enter code here
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
extenpatternmatchnew=no
[globals]
[users]
exten => _1XXX,1,Macro(stduser,${EXTEN},tT)
exten => _2XXX,1,Dial(SIP/${EXTEN}@to_freepbx)
exten => _NXXXXXX,1,Dial(SIP/${EXTEN}@to_freepbx)
exten => _09X.,1,Dial(SIP/${EXTEN}@to_freepbx)
exten => 5002,1,GotoIftime(8:30-18:30,mon-fri,*,*?menu,s,1:menu_night,s,1)
include => features
[macro-stduser]
exten => s,1,GotoIf($["${DB(users/${ARG1}/FWD/Status)}" = "1"]?FORWARD)
exten => s,n,Dial(SIP/${ARG1},20)
exten => s,n,GotoIf($[“${DIALSTATUS}” = “NOANSWER”]?TIMEOUT)
exten => s,n(FORWARD),Answer()
exten => s,n,Goto(users,${DB(users/${ARG1}/FWD/Number)},1)
exten => s,n(TIMEOUT),Answer()
exten => s,n,Wait(1)
exten => s,n,Voicemail(${MACRO_EXTEN}@default,u)
exten => s,n,Hangup()
exten => h,1,NoOp(Shucks,hung up!)
当我启用转发并尝试从星号处的本地设备呼叫时,转发成功
但是当我尝试从freepbx呼叫我的星号本地扩展时,它会阻塞。如何排除这个
如果两个服务器上都存在一个主叫sip用户,则可能发生这种情况。