Hi, Using AMI or dial plan, how can i know which leg (channel ?) of a bridged call, hangup ? AMI send 2 hangup events, which have both cause 16 (normal clearing), and the first hangup event is the called leg hangup event, not the one who hangup. Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061215/a9ffd1bb/attachment.htm
Gregory Duchatelet a ?crit :> > Hi, > > Using AMI or dial plan, how can i know which leg (channel ?) of a > bridged call, hangup ? > > AMI send 2 hangup events, which have both cause 16 (normal clearing), > and the first hangup event is the called leg hangup event, not the one > who hangup? > > Greg > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >adding g in your dial application and the call will go on the extension when the callee hangup
> adding g in your dial application and the call will go on the extension > when the callee hangupYes, i could also use "h" extension, but how to know which one hangup first ? ${HANGUPCAUSE} always say "16" (Normal clearing), and ${CHANNEL} is set to the current channel in the dial plan... Greg