SIP 中继呼入10断线的问题

加了SIP中继后呼出没有问题,但是呼入后分机接通10秒就会断。
网络环境是服务器在内网,外网做了端口映射到这台服务器的。
电话呼入IVR接通后按0到分机8014,摘下分机可以通话,但是10秒就会断掉,以下是日志
Asterisk 1.6.2.10, Copyright (C) 1999 – 2010 Digium, Inc. and others.
Created by Mark Spencer <[email]markster@digium.com[/email]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
=========================================================================
Connected to Asterisk 1.6.2.10 currently running on callcenter (pid = 2857)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
— Executing [051380107755@from-sip-external:1] NoOp(“SIP/122.193.249.158-00000067”, “Received incoming SIP connection from unknown peer to 051380107755”) in new stack
— Executing [051380107755@from-sip-external:2] Set(“SIP/122.193.249.158-00000067”, “DID=051380107755”) in new stack
— Executing [051380107755@from-sip-external:3] Goto(“SIP/122.193.249.158-00000067”, “s,1”) in new stack
— Goto (from-sip-external,s,1)
— Executing [s@from-sip-external:1] GotoIf(“SIP/122.193.249.158-00000067”, “1?checklang:noanonymous”) in new stack
— Goto (from-sip-external,s,2)
— Executing [s@from-sip-external:2] GotoIf(“SIP/122.193.249.158-00000067”, “0?setlanguage:from-trunk,051380107755,1”) in new stack
— Goto (from-trunk,051380107755,1)
— Executing [051380107755@from-trunk:1] NoOp(“SIP/122.193.249.158-00000067”, “Catch-All DID Match – Found 051380107755 – You probably want a DID for this.”) in new stack
— Executing [051380107755@from-trunk:2] Goto(“SIP/122.193.249.158-00000067”, “ext-did,s,1”) in new stack
— Goto (ext-did,s,1)
— Executing [s@ext-did:1] Set(“SIP/122.193.249.158-00000067”, “__FROM_DID=s”) in new stack
— Executing [s@ext-did:2] Gosub(“SIP/122.193.249.158-00000067”, “app-blacklist-check,s,1”) in new stack
— Executing [s@app-blacklist-check:1] GotoIf(“SIP/122.193.249.158-00000067”, “0?blacklisted”) in new stack
— Executing [s@app-blacklist-check:2] Set(“SIP/122.193.249.158-00000067”, “CALLED_BLACKLIST=1”) in new stack
— Executing [s@app-blacklist-check:3] Return(“SIP/122.193.249.158-00000067”, “”) in new stack
— Executing [s@ext-did:3] ExecIf(“SIP/122.193.249.158-00000067”, “1 ?Set(CALLERID(name)=80107791)”) in new stack
— Executing [s@ext-did:4] Ringing(“SIP/122.193.249.158-00000067”, “”) in new stack
— Executing [s@ext-did:5] Set(“SIP/122.193.249.158-00000067”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
— Executing [s@ext-did:6] Set(“SIP/122.193.249.158-00000067”, “CALLERPRES()=allowed_not_screened”) in new stack
— Executing [s@ext-did:7] Goto(“SIP/122.193.249.158-00000067”, “ivr-4,s,1”) in new stack
— Goto (ivr-4,s,1)
— Executing [s@ivr-4:1] Set(“SIP/122.193.249.158-00000067”, “MSG=custom/welcome_111”) in new stack
— Executing [s@ivr-4:2] Set(“SIP/122.193.249.158-00000067”, “LOOPCOUNT=0”) in new stack
— Executing [s@ivr-4:3] Set(“SIP/122.193.249.158-00000067”, “__DIR-CONTEXT=”) in new stack
— Executing [s@ivr-4:4] Set(“SIP/122.193.249.158-00000067”, “_IVR_CONTEXT_ivr-4=”) in new stack
— Executing [s@ivr-4:5] Set(“SIP/122.193.249.158-00000067”, “_IVR_CONTEXT=ivr-4”) in new stack
— Executing [s@ivr-4:6] GotoIf(“SIP/122.193.249.158-00000067”, “0?begin”) in new stack
— Executing [s@ivr-4:7] Answer(“SIP/122.193.249.158-00000067”, “”) in new stack
— Executing [s@ivr-4:8] Wait(“SIP/122.193.249.158-00000067”, “1”) in new stack
— Executing [s@ivr-4:9] Set(“SIP/122.193.249.158-00000067”, “TIMEOUT(digit)=3”) in new stack
— Digit timeout set to 3.000
— Executing [s@ivr-4:10] Set(“SIP/122.193.249.158-00000067”, “TIMEOUT(response)=10”) in new stack
— Response timeout set to 10.000
— Executing [s@ivr-4:11] Set(“SIP/122.193.249.158-00000067”, “__IVR_RETVM=”) in new stack
— Executing [s@ivr-4:12] ExecIf(“SIP/122.193.249.158-00000067”, “1?Background(custom/welcome_111)”) in new stack
Playing ‘custom/welcome_111.slin’ (language ‘en’)
— Executing [0@ivr-4:1] NoOp(“SIP/122.193.249.158-00000067”, “Deleting: “) in new stack
— Executing [0@ivr-4:2] Set(“SIP/122.193.249.158-00000067”, “__NODEST=”) in new stack
— Executing [0@ivr-4:3] GotoIf(“SIP/122.193.249.158-00000067”, “1?from-did-direct,8014,1:,return,1”) in new stack
— Goto (from-did-direct,8014,1)
— Executing [8014@from-did-direct:1] Macro(“SIP/122.193.249.158-00000067”, “exten-vm,novm,8014”) in new stack
— Executing [s@macro-exten-vm:1] Macro(“SIP/122.193.249.158-00000067”, “user-callerid,”) in new stack
— Executing [s@macro-user-callerid:1] Set(“SIP/122.193.249.158-00000067”, “AMPUSER=80107791”) in new stack
— Executing [s@macro-user-callerid:2] GotoIf(“SIP/122.193.249.158-00000067”, “0?report”) in new stack
— Executing [s@macro-user-callerid:3] ExecIf(“SIP/122.193.249.158-00000067”, “1?Set(REALCALLERIDNUM=80107791)”) in new stack
— Executing [s@macro-user-callerid:4] Set(“SIP/122.193.249.158-00000067”, “AMPUSER=”) in new stack
— Executing [s@macro-user-callerid:5] Set(“SIP/122.193.249.158-00000067”, “AMPUSERCIDNAME=”) in new stack
— Executing [s@macro-user-callerid:6] GotoIf(“SIP/122.193.249.158-00000067”, “1?report”) in new stack
— Goto (macro-user-callerid,s,10)
— Executing [s@macro-user-callerid:10] GotoIf(“SIP/122.193.249.158-00000067”, “0?continue”) in new stack
— Executing [s@macro-user-callerid:11] Set(“SIP/122.193.249.158-00000067”, “__TTL=64”) in new stack
— Executing [s@macro-user-callerid:12] GotoIf(“SIP/122.193.249.158-00000067”, “1?continue”) in new stack
— Goto (macro-user-callerid,s,19)
— Executing [s@macro-user-callerid:19] NoOp(“SIP/122.193.249.158-00000067”, “Using CallerID “80107791” <80107791>“) in new stack
— Executing [s@macro-exten-vm:2] Set(“SIP/122.193.249.158-00000067”, “RingGroupMethod=none”) in new stack
— Executing [s@macro-exten-vm:3] Set(“SIP/122.193.249.158-00000067”, “VMBOX=novm”) in new stack
— Executing [s@macro-exten-vm:4] Set(“SIP/122.193.249.158-00000067”, “EXTTOCALL=8014”) in new stack
— Executing [s@macro-exten-vm:5] Set(“SIP/122.193.249.158-00000067”, “CFUEXT=”) in new stack
— Executing [s@macro-exten-vm:6] Set(“SIP/122.193.249.158-00000067”, “CFBEXT=”) in new stack
— Executing [s@macro-exten-vm:7] Set(“SIP/122.193.249.158-00000067”, “RT=”””) in new stack
— Executing [s@macro-exten-vm:8] Macro(“SIP/122.193.249.158-00000067”, “record-enable,8014,IN”) in new stack
— Executing [s@macro-record-enable:1] GotoIf(“SIP/122.193.249.158-00000067”, “1?check”) in new stack
— Goto (macro-record-enable,s,4)
— Executing [s@macro-record-enable:4] ExecIf(“SIP/122.193.249.158-00000067”, “0?MacroExit()”) in new stack
— Executing [s@macro-record-enable:5] GotoIf(“SIP/122.193.249.158-00000067”, “0?Group:OUT”) in new stack
— Goto (macro-record-enable,s,15)
— Executing [s@macro-record-enable:15] GotoIf(“SIP/122.193.249.158-00000067”, “1?IN”) in new stack
— Goto (macro-record-enable,s,20)
— Executing [s@macro-record-enable:20] ExecIf(“SIP/122.193.249.158-00000067”, “1?MacroExit()”) in new stack
— Executing [s@macro-exten-vm:9] Macro(“SIP/122.193.249.158-00000067”, “dial,,tr,8014”) in new stack
— Executing [s@macro-dial:1] GotoIf(“SIP/122.193.249.158-00000067”, “1?dial”) in new stack
— Goto (macro-dial,s,3)
— Executing [s@macro-dial:3] AGI(“SIP/122.193.249.158-00000067”, “dialparties.agi”) in new stack
— Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘80107791’ number is ‘80107791’
dialparties.agi: Methodology of ring is ‘none’
— dialparties.agi: Added extension 8014 to extension map
— dialparties.agi: Extension 8014 cf is disabled
— dialparties.agi: Extension 8014 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 8014 has ExtensionState: 0
— dialparties.agi: Checking CW and CFB status for extension 8014
— dialparties.agi: dbset CALLTRACE/8014 to 80107791
— dialparties.agi: Filtered ARG3: 8014
AGI Script dialparties.agi completed, returning 0
— Executing [s@macro-dial:7] Dial(“SIP/122.193.249.158-00000067”, “SIP/8014,,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
— Called 8014
— SIP/8014-00000068 is ringing
— SIP/8014-00000068 answered SIP/122.193.249.158-00000067
— Executing [h@macro-dial:1] Macro(“SIP/122.193.249.158-00000067”, “hangupcall”) in new stack
— Executing [s@macro-hangupcall:1] GotoIf(“SIP/122.193.249.158-00000067”, “1?skiprg”) in new stack
— Goto (macro-hangupcall,s,4)
— Executing [s@macro-hangupcall:4] GotoIf(“SIP/122.193.249.158-00000067”, “1?skipblkvm”) in new stack
— Goto (macro-hangupcall,s,7)
— Executing [s@macro-hangupcall:7] GotoIf(“SIP/122.193.249.158-00000067”, “1?theend”) in new stack
— Goto (macro-hangupcall,s,9)
— Executing [s@macro-hangupcall:9] Hangup(“SIP/122.193.249.158-00000067”, “”) in new stack
[Oct 8 17:47:40] WARNING[2956] chan_sip.c: Maximum retries exceeded on transmission [email]428577676111200082417@122.193.249.158[/email] for seqno 1 (Critical Response) — See doc/sip-retransmit.txt.
[Oct 8 17:47:40] WARNING[2956] chan_sip.c: Hanging up call [email]428577676111200082417@122.193.249.158[/email] – no reply to our critical packet (see doc/sip-retransmit.txt).
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/122.193.249.158-00000067’ in macro ‘hangupcall’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/122.193.249.158-00000067’ in macro ‘dial’
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘SIP/122.193.249.158-00000067’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 8014, 1) exited non-zero on ‘SIP/122.193.249.158-00000067’

主题测试文章,只做测试使用。发布者:zhangyang,转转请注明出处:https://www.voip88.com/sip-%e4%b8%ad%e7%bb%a7%e5%91%bc%e5%85%a510%e6%96%ad%e7%ba%bf%e7%9a%84%e9%97%ae%e9%a2%98/

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022年 8月 26日 下午3:28
下一篇 2022年 8月 26日 下午3:28

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
自6.2开始主题新增页头通知功能,购买用户可免费升级到最新版体验