[OpenSIPS-Devel] [opensips] Dispatcher ds_select_* algorithm 9 not working (#300)

Liviu Chircu notifications at github.com
Mon Mar 9 14:37:35 CET 2015


I think we should also ask the question: "Should it work?". Because the pattern parameter of algorithm 9 only supports a unique type of scripting variable: it must be in shared memory, and it must be global (not related to any tm structs), since concurrent reads from multiple processes must return the same results for each destination URI.

So, the only vars that fit into this profile seem to be:
* $stat()
* $shv()

Please correct me if it actually makes sense to use $var in the first place. I would suggest a fixup function that mandates the use of the above-mentioned globally shared variables.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/300#issuecomment-77854028
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150309/d5f34e4a/attachment.htm>


More information about the Devel mailing list