[OpenSIPS-Users] Arbitrary contact added in 302 generated responses

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon May 25 15:07:33 CEST 2009


Dan Pascu wrote:
> On Monday 25 May 2009, Bogdan-Andrei Iancu wrote:
>   
>> Hi Dan,
>>
>> I was evaluating this for a long time (to hide from the script the whole 
>> Cancel processing - both requests and replies), but by doing this we 
>> will not be able to log any info about the cancelling even....but to be 
>> honest I do not know if is anybody needing it.
>>     
>
> I'm not sure what you mean here. Are you speaking of the possibility to use 
> xlog() inside the if (t_was_canceled()) test to log that the processed request 
> was already cancelled?
yes, this kind of stuff.

>  If so, I really doubt that it is useful in any manner. 
> If it was cancelled, I don't want to get in the failure_route in the first 
> place.
>   

to be honest I do not also make use of such logging, but I'm not sure 
what is the opinion of others.

Regards,
Bogdan
>   
>> Regards,
>> Bogdan
>>
>> Dan Pascu wrote:
>>     
>>> On Monday 25 May 2009, Bogdan-Andrei Iancu wrote:
>>>   
>>>       
>>>> Hi Francisco,
>>>>
>>>> First of all, please in the begining of any failure route:
>>>>
>>>> failure_route[x] {
>>>>     if (t_was_cancelled()) {
>>>>         exit;
>>>>     }
>>>>     .....
>>>> }
>>>>
>>>> This will capture the calls which were cancelled by the caller and avoid 
>>>> any bogus processing on the cancelled call.
>>>>     
>>>>         
>>> Shouldn't this be automatic? I mean, internally do not even bother to call 
>>>       
> the 
>   
>>> failure route if the call was cancelled.
>>>
>>>   
>>>       
>>     
>
>
>   




More information about the Users mailing list