[OpenSIPS-Users] [NEW] REGISTAR module enhancements

Brett Nemeroff brett at nemeroff.com
Mon Jun 29 14:57:46 CEST 2009


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?
Thanks for all the great work!!
-Brett


On Mon, Jun 29, 2009 at 7:39 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> Hi,
>
> There were couple of changes pushed to the REGISTRAR module to allow
> more flexibility in configuring the behaviour of the module. More or
> less, these changes aimed to move most of the global options (per module
> options) to per AOR or function options. So, you can configure the
> behaviour per AOR (like how many contacts are allowed, if branches
> should be appended, if PATH support should be used and how, etc).
>
> A brief summary of the changes:
>
>
> 1. Lookup() function accepts a set of char flags:
>    'm' - enable/disable method filtering
>    'b' - disable/enable the appending of branches
>   See:
> http://www.opensips.org/html/docs/modules/devel/registrar.html#id271073
>
> Ex:
>    lookup("location");
>    lookup("location","b");
>    lookup("location","","$var(my_aor)");
>
>
>
> 2. Save() function - the binary flags (for mem only saving and no reply
> options) were moved as char flags ('m' and 'r'). More char flags were
> added:
>    'cnn' - maximum number of contacts for the AOR (like 'c10' , 'c2' ,
> 'c0') - 0 disables the check
>    's' - socket header (replacement for the sock_flag global parameter)
>    'p0' , 'p1' , 'p2', 'v' - controls the path mode
>   See:
> http://www.opensips.org/html/docs/modules/devel/registrar.html#id228571
>
> Ex:
>    save("location");
>    save("location","c5mp0");
>    save("location","m", "$var(my_aor)");
>
>
>
> 3. Global module param removed:
>    sock_flag - moved as param of save()
>    use_path, path_mode, path_use_received - moved as param for save()
>    method_filtering - moved as param for lookup()
>    append_branches - moved as param for lookup()
>
>
>
> Regards,
> Bogdan
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090629/68178dca/attachment.htm 


More information about the Users mailing list