Hello, all.
I would know why we should avoid using the exec module exported functions outside out the request_route and on_failure_route blocks? (and so ... why it is forbidden).
Answers carry useful informations (e.g. SDP) that we could want to parse with an external command. Maybe is there a more appropriate way to achieve this, and I mail you for this reason.
Thanks once again,
JF Smigielski
________________________________________________________________________ iBELGIQUE, exprimez-vous ! http://web.ibelgique.com/
I believe the "quick" answer is that "exec" costs alot in terms of performance and blocking of the currently running process. The reason it cannot be used outside of blocks you mentioned may be related to "locking" issues.
The above is my best recollection.
I'm sure that reviewing the mailing lists or one of the developers can give you a more accurate and detailed answer.
Regards, Norm
Jean-François SMIGIELSKI wrote:
Hello, all.
I would know why we should avoid using the exec module exported functions outside out the request_route and on_failure_route blocks? (and so ... why it is forbidden).
Answers carry useful informations (e.g. SDP) that we could want to parse with an external command. Maybe is there a more appropriate way to achieve this, and I mail you for this reason.
Thanks once again,
JF Smigielski
iBELGIQUE, exprimez-vous ! http://web.ibelgique.com/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
On 11/10/06 18:21, Jean-François SMIGIELSKI wrote:
Hello, all.
I would know why we should avoid using the exec module exported functions outside out the request_route and on_failure_route blocks? (and so ... why it is forbidden).
Answers carry useful informations (e.g. SDP) that we could want to parse with an external command. Maybe is there a more appropriate way to achieve this, and I mail you for this reason.
basically should work in onreply route as well, I haven't tried it. You will not have access to transaction's avps, otherwise you can play and see if you encounter any problem. Just edit the modules/exec/exec_mod.c, add ONREPLY_ROUTE to exported functions' flags, recompile and reinstall. If everything is ok, then we can include it in the trunk.
Cheers, Daniel
Thanks once again,
JF Smigielski
iBELGIQUE, exprimez-vous ! http://web.ibelgique.com/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users