Hi,
attached patch fixes the msg_send usage for the utils module. It uses the forward_request function, instead of doing it manually with msg_send. Its against the kamailio-3.0 repository.
I also attached a patch that implements a mk_proxy in shared memory and the necessary utility functions. The kamailio implementation used to allocates fewer parts of the struct. I simply did a replace for /pkg_/shm_/ on the existing proxy implementation, so suggestions for improvements are welcome. This patch is against the sr core, but perhaps its more appropriate to place it in the libkcore library.
Please apply, thanks,
Henning
On Monday 30 March 2009, Henning Westerholt wrote:
This patch is against the sr core, but perhaps its more appropriate to place it in the libkcore library.
If this should be placed in the libkcore library, i'll rework the patch to apply to this.
Cheers,
Henning
On 30-03 18:13, Henning Westerholt wrote:
On Monday 30 March 2009, Henning Westerholt wrote:
This patch is against the sr core, but perhaps its more appropriate to place it in the libkcore library.
If this should be placed in the libkcore library, i'll rework the patch to apply to this.
This should imho go the the core. I slightly reworked the patch, I wanted to avoid code duplication and used macros instead. I've send the patch to Andrei (it is his code) for an ack and I'll commit if it is fine with him.
Jan.
On Tuesday 31 March 2009, Jan Janak wrote:
This patch is against the sr core, but perhaps its more appropriate to place it in the libkcore library.
If this should be placed in the libkcore library, i'll rework the patch to apply to this.
This should imho go the the core. I slightly reworked the patch, I wanted to avoid code duplication and used macros instead. I've send the patch to Andrei (it is his code) for an ack and I'll commit if it is fine with him.
Hi Jan,
i've thought to implement something like this with function pointers for the allocation functions, but i don't liked to implement wrapper functions for the MM #defines. Your approach don't need this, nice. :-)
Cheers,
Henning
On 30-03 17:57, Henning Westerholt wrote:
Hi,
attached patch fixes the msg_send usage for the utils module. It uses the forward_request function, instead of doing it manually with msg_send. Its against the kamailio-3.0 repository.
Done, thanks.
Jan.