Is this move to char flags going to be global? It's nice to see the config syntax becoming a little more friendly. Are we losing anything in performance that way? <div><br></div><div>Thanks for all the great work!!</div>
<div>-Brett</div><div><br><br><div class="gmail_quote">On Mon, Jun 29, 2009 at 7:39 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
There were couple of changes pushed to the REGISTRAR module to allow<br>
more flexibility in configuring the behaviour of the module. More or<br>
less, these changes aimed to move most of the global options (per module<br>
options) to per AOR or function options. So, you can configure the<br>
behaviour per AOR (like how many contacts are allowed, if branches<br>
should be appended, if PATH support should be used and how, etc).<br>
<br>
A brief summary of the changes:<br>
<br>
<br>
1. Lookup() function accepts a set of char flags:<br>
'm' - enable/disable method filtering<br>
'b' - disable/enable the appending of branches<br>
See:<br>
<a href="http://www.opensips.org/html/docs/modules/devel/registrar.html#id271073" target="_blank">http://www.opensips.org/html/docs/modules/devel/registrar.html#id271073</a><br>
<br>
Ex:<br>
lookup("location");<br>
lookup("location","b");<br>
lookup("location","","$var(my_aor)");<br>
<br>
<br>
<br>
2. Save() function - the binary flags (for mem only saving and no reply<br>
options) were moved as char flags ('m' and 'r'). More char flags were added:<br>
'cnn' - maximum number of contacts for the AOR (like 'c10' , 'c2' ,<br>
'c0') - 0 disables the check<br>
's' - socket header (replacement for the sock_flag global parameter)<br>
'p0' , 'p1' , 'p2', 'v' - controls the path mode<br>
See:<br>
<a href="http://www.opensips.org/html/docs/modules/devel/registrar.html#id228571" target="_blank">http://www.opensips.org/html/docs/modules/devel/registrar.html#id228571</a><br>
<br>
Ex:<br>
save("location");<br>
save("location","c5mp0");<br>
save("location","m", "$var(my_aor)");<br>
<br>
<br>
<br>
3. Global module param removed:<br>
sock_flag - moved as param of save()<br>
use_path, path_mode, path_use_received - moved as param for save()<br>
method_filtering - moved as param for lookup()<br>
append_branches - moved as param for lookup()<br>
<br>
<br>
<br>
Regards,<br>
Bogdan<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>