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

Ishfaq Malik ish at pack-net.co.uk
Thu Jun 11 09:38:53 CDT 2009



Anthony wrote:
> 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.
>   
Wouldn't that solution show all calls on the cdr as having a disposition 
of ANSWERED so rendering the cdr a bit useless?
-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062



More information about the asterisk-users mailing list