Hello,

So far I was using Kamailio in "stateless" mode to handle SIP INVITE requests 
and reply with 302.


I am now trying to use module http_async_client module, but I'm experiencing 
unexpected behavior with "branches".
I'm using function http_async_query as described in the example:

https://www.kamailio.org/docs/modules/devel/modules/http_async_client.html#http_async_client.f.http_async_query

When the transaction is resumed, I'm building and sending the reply, using 
"append_branch" and "sl_send_reply":
https://kamailio.org/docs/modules/devel/modules/sl.html#sl.f.sl_send_reply

For example:

                append_branch("...");
                sl_send_reply("302", "Moved Temporarily");


This works, however when I'm sending new client SIP INVITE requests to 
Kamailio, it seems it will always reuse the previous transaction.
The new branches are appended to the branches of the first transaction.
I end up with errors "ERROR: <core> [core/dset.c:424]: append_branch(): max nr 
of branches exceeded" when the limit (12) is exceeded.

I do not understand why this happens. This is a new SIP INVITE message, it 
should not be linked to the previous transaction ?

I tried a few things:
- remove the transaction using "t_release();"
- configure: modparam("tm", "wt_timer", 0)

This did not help...


How can I solve this ?

Thanks for your help.


Regards,
Nicolas.

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to