How about this :
if you add the option 'g' in your Dial()-command, then when the caller
hangs up Asterisk will continue to execute the commands hat follow.
You could then read the ${DIALSTATUS}-variable (which will be 'CANCEL')
and execute a command based on this.
GoToIf($["${DIALSTATUS}"="ANSWER"]?here:there)
Jonas.
>
>
> On 11 Jun 2009, at 08:59, BERGANZ François wrote:
> > In my dialplan, I do s,n,DIAL(…)
> > If my called phone response and after hangup, asterisk execute the
> > h,1,…
> >
> > But, if I the caller hangup at ringing (cancel), it don’t execute
> > the h,1,…
> >
> >
> > Know you why?
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users