<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
How about this :<BR>
<BR>
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.<BR>
You could then read the ${DIALSTATUS}-variable (which will be 'CANCEL') and execute a command based on this.<BR>
<BR>
GoToIf($["${DIALSTATUS}"="ANSWER"]?here:there)<BR>
<BR>
Jonas.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
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?
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>