返回列表 發帖

autofallthrough and DISA

本帖最後由 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".
  1.     -- Starting simple switch on 'Zap/1-1'
  2. [Nov  3 22:15:12] NOTICE[20187]: chan_zap.c:3256 ss_thread: Got event 18 (Ring Begin)...
  3.     -- Executing [s@DID_trunk_2:1] NoOp("Zap/1-1", "Incoming call from # 075512345678") in new stack
  4.     -- Executing [s@DID_trunk_2:2] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
  5.     -- Executing [s@DID_trunk_2:3] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
  6.     -- Executing [s@DID_trunk_2:4] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
  7.     -- Executing [s@DID_trunk_2:5] GotoIf("Zap/1-1", "0?test-DISA|s|1") in new stack
  8.     -- Executing [s@DID_trunk_2:6] GotoIf("Zap/1-1", "1?test-DISA|s|1") in new stack
  9.     -- Goto (test-DISA,s,1)
  10.     -- Executing [s@test-DISA:1] Answer("Zap/1-1", "") in new stack
  11.     -- Executing [s@test-DISA:2] BackGround("Zap/1-1", "DISAvoice") in new stack
  12.     -- <Zap/1-1> Playing 'DISAvoice' (language 'en')
  13.     -- Executing [s@test-DISA:3] DISA("Zap/1-1", "no-password|CallingRule_outbound") in new stack
  14.   == Spawn extension (test-DISA, s, 3) exited non-zero on 'Zap/1-1'
  15.     -- 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...

返回列表