[asterisk-users] Make the call finish after executing Dial(G())

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Thu May 6 08:29:17 CDT 2010


Hi!

> [connect-jack]
> exten => _X.,1,NoOp(${CHANNEL}) ; Leg A
> exten => _X.,2,NoOp(${CHANNEL}) ; Leg B
> 
> The problem is: after answering, [connect-jack] both priorities are
> executed, and right after executing them call drops.

The call legs drop because you do not do anything with them, since your 
dialplan is finished at this point. You could put them into a MeetMe 
conference, for example, or use Transfer() or ChannelRedirect(). 

  [connect-jack]
  exten => _X.,1,Goto(bridging,meet,1); Leg A
  exten => _X.,2,NoOp(${CHANNEL}) ; Leg B
  exten => _X.,n,Goto(bridging,meet,1); Leg B

  [bridging]
  exten => meet,1,MeetMe(1234)
  exten => meet,n,Hangup  ; handle a hangup after meetme cleanly

Another way to address this: Use Dial option M instead of G 

Philipp




More information about the asterisk-users mailing list