- 在新堆栈中执行[1001 @ users:1]宏(“SIP / to_freepbx-0000003a”,“stduser,1001,tT”) - 在新堆栈中执行[s @ macro-stduser:1] GotoIf(“SIP / to_freepbx-0000003a”,“1?FORWARD”) - Goto(macro-stduser,s,4) - 在新堆栈中执行[s @ macro-stduser:4] Answer(“SIP / to_freepbx-0000003a”,“”) - 在新堆栈中执行[s @ macro-stduser:5] Goto(“SIP / to_freepbx-0000003a”,“users,1002,1”) - 转到(用户,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(macro-stduser,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 CoS标记5 - 称为SIP / 2004 @ to_freepbx [9月8日12:24:54]通知[17431]:chan_sip.c:21050 handle_response_invite:无法在INVITE上对“LEO”进行身份验证; tag = as6388ac84' - SIP / to_freepbx-0000003b电路忙 ==此时每个人都忙/拥挤(1:0/1/0) - 自动落实,渠道'SIP / to_freepbx-0000003a'状态为'CONGESTION'
除了通知“chan_sip.c:21050 handle_response_invite:”无法在INVITE上验证“
之外,在日志中看到的流程似乎没有任何问题我有两个pbx服务器..一个是gui-less星号,而另一个是freepbx ..我创建了一个sip trunk,供他们连接..它是
[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
这是我的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调用我的星号本地扩展时,它会进入拥塞状态..我该怎么解决这个问题
答案 0 :(得分:0)
如果两个服务器上都存在调用sip用户,则可能会发生这种情况。