[asterisk-users] cant use h,1 at cancel!

Anthony anthonyf at rockynet.com
Thu Jun 11 09:13:40 CDT 2009


Tilghman Lesher wrote:
> On Thursday 11 June 2009 03:59:01 Steve Howes wrote:
>   
>> 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?
>>>       
>> Because the call was cancelled and not actually hung up? Generally the
>> hangup context is used to 'clean up' or provide info about the call.
>> If it didn't happen its a bit irrelevant.
>>     
>
> I think you mean that it wasn't ANSWERED, and therefore, it cannot be
> hung up.
>
>   
Yes, the simple answer is to use Answer() and then play a ring while 
connecting the caller to the callee.



More information about the asterisk-users mailing list