本帖最後由 Qnewbie 於 2011-11-4 07:06 編輯
In dialplan with DISA, the autofallthrough should not be set.
Scenario:
I make a call(from 075512345678) to PSTN-line(ZAP/1-1), the PSTN-line answers the call, plays "DISAvoice" and transfers my call to a outbound calling rule(dialplan) with DISA.
This encountered a problem, i.e., asterisk hang up the call in less than 5 seconds after played "DISAvoice".- -- Starting simple switch on 'Zap/1-1'
- [Nov 3 22:15:12] NOTICE[20187]: chan_zap.c:3256 ss_thread: Got event 18 (Ring Begin)...
- -- Executing [s@DID_trunk_2:1] NoOp("Zap/1-1", "Incoming call from # 075512345678") in new stack
- -- Executing [s@DID_trunk_2:2] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
- -- Executing [s@DID_trunk_2:3] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
- -- Executing [s@DID_trunk_2:4] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
- -- Executing [s@DID_trunk_2:5] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
- -- Executing [s@DID_trunk_2:6] GotoIf("Zap/1-1", "1?test-DISA|s|1") in new stack
- -- Goto (test-DISA,s,1)
- -- Executing [s@test-DISA:1] Answer("Zap/1-1", "") in new stack
- -- Executing [s@test-DISA:2] BackGround("Zap/1-1", "DISAvoice") in new stack
- -- <Zap/1-1> Playing 'DISAvoice' (language 'en')
- -- Executing [s@test-DISA:3] DISA("Zap/1-1", "no-password|CallingRule_outbound") in new stack
- == Spawn extension (test-DISA, s, 3) exited non-zero on 'Zap/1-1'
- -- Hungup 'Zap/1-1'
複製代碼 Solution:
http://www.voip-info.org/wiki/view/Asterisk+cmd+WaitExten
I set autofallthrough to no.
Might be WaitExten is a better solution... |