Hi Stéphane!

1. If you want to develop for openser you should subscribe to the devel list
2. You should test the code
3. What are the benefits of this module compared to the NAPTR/SRV support which is already in openser?

regards
klaus

Stéphane Alnet wrote:
Hello,

This is my first attempt at a module for OpenSER. This module is aimed
at providing outbound (from OpenSER) priority/load-balancing for SRV
records. I don't have a compilation environment at hand so I haven't
tried to compile this code yet; I'm mostly looking for feedback on how
well-behaved this code looks to people on the list, and whether there
are SIP-related issues I didn't take care of.

The basic algorithm for srv_branches() is as follows:
- from the message URI, obtain the host (domain) part and use it to do
a SRV query;
- use the records returned by the SRV query to build a list of
branches, ordered by SRV priority (strict) and by somewhat-weighted
randomized priority (if weights) or randomized priority (if all
weights = 0).
In a script, a call to srv_branches() would be followed by
serialized_branches() in order to get the proper result; there is a
snippet script at the top of the srv.c file.

I can envision at least two enhancements to the module: (a) support
hash (as in the dispatcher module) instead of using random() for
target selection; (b) also support NAPTR -- but neither of these are
critical to my application at this time.

Thank you for your feedback. I am not subscribed to the list, so
please Cc: me in your replies.
Stéphane


------------------------------------------------------------------------

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to