Hi!
I read the documentation and searched through the archives but I couldn't
find an answer to this question. I apologize if I missed something.
I'm working on writing a module using Kamailio 3.3. While processing an
INVITE I use t_reply_with_body () and send a 180 (Ringing) response,
t_suspend () the transaction, process a PRACK and try to t_continue () but
I notice the following results:
- The callback I created before t_suspend () receives a TMCB_DESTROY
before the PRACK arrives
- I can use t_continue () but it never returns to the calling routine
I appreciate any guidance you can provide,
Bob
Show replies by date
I may have found the disturbing answer to my question. According to the
code I'm looking at in modules/tm/t_reply.c it adds this comment after
sending the reply with body:
/* this is ugly hack -- the function caller may wish to continue with
* transaction and I unref; however, there is now only one use from
* vm/fifo_vm_reply and I'm currently to lazy to export UNREF; -jiri
*/
UNREF(trans);
Does this mean the transaction is released after using the
t_reply_with_body () function? If so, is there any way around this?