[OpenSIPS-Devel] Can one modify TM request after it was copied in shared memory?

Gheorghe Andrei gheorghe_andrei at yahoo.com
Wed Dec 18 17:03:14 CET 2013


Hi,

Is it possible to modify a TM request after being copied to the shared memory by the TM module?
For example if you programatically detect that relay failed and want to try sending it somewhere else?

My current approach is to basically do what the lookup registrar method does:
1. call set_ruri to the next destination;

2. call set_path_vector and set_dst_uri to update the path to the destination;

The relayed message seems to be well formatted but I tend to have some memory corruption problems afterwards.
Should I clone the above methods but clone the data in shared memory? Is there any smarter way of doing this?

Thanks a bunch,
Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20131218/55ed9fca/attachment.htm>


More information about the Devel mailing list