[OpenSIPS-Devel] t_was_cancelled

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Oct 9 11:02:24 CEST 2008


Hi Francisco,

Where are you calling your function ? from failure route?

You should put some debugs to check if the transaction you get (via 
gett()) is the same like the one operated by t_was_cancelled().

Be sure you are checking the right flags (t->flags) and not the ones 
from the UAC part.

Regards,
Bogdan

Francisco Seratti wrote:
> Hello, im trying to check if a transaction was cancelled by the UAC 
> using the TM API for loading bindings,
> but im having trouble reading flags of the transaction.
> In the opensips-script t_was_cancelled() returns true for cancelled 
> transactions, but if i search the same
> transaction using the gett() function of the TM API it comes with 
> T_WAS_CANCELLED_FLAG unset.
> Anyone knows what i may be doing wrong to check this flag in my code??
>
> Thanks in advance, Francisco
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>   




More information about the Devel mailing list