[sub-out-do-dial]
exten => s,1,NoOp(Dial)
 same => n,NoOp(FirstChannel: ${CHANNEL})
 same => n,Dial(????,60,gF)
 same => n,NoOp(SecondChannel: ${CHANNEL})
 same => n,Return()

[some]
exten => s,1,GoSub(sub-out-do-dial,s,1)

In case of the destination channel hangs up in log i see:
ERROR[26570][C-000000e7] app_stack.c: Return without Gosub: stack is empty

Yes. SecondChannel != FirstChannel.
Is it a wrong way to use Dial(g)+Gosub? Or any Dial in sub?

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
     https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to