Re: Why does $T(id_index) return 0 even though t_suspend() is executed successfully?

Daniel-Constantin Mierla via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
On 13.08.25 09:38, mm e via sr-users wrote:
> if(t_suspend())
>     {
>      xlog("L_NOTICE",  "==> processing suspended in transaction [$T(id_index):$T(id_label)] ");
>     } else {
>          xlog("L_ERR",  "t_suspend err");
>          exit;
>     }
>
> Sometimes, I get this log==> processing suspended in transaction [0:13614] ",as far as I know, 0 means that the value cannot be obtained.  Executing t_continue(tindex, tlabel, rtname) with parameter 0 will fail.by the way, It's a question of probability.

The $T(id_index) should be ok with value 0, because it is the index of a
hash table slot. It might be that $T(id_label) is not set 0.

Can you run with debug=0 and see if the log messages give more details
about why it fails to continue?

Cheers, Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.