[OpenSIPS-Users] Managing Origination Routes

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Mar 7 18:34:12 CET 2013


ups, forgot that do_routing() accepts only AVP vars, so instead of $var, 
use $avp , correct!

About the sets, super sets, etc... - for each case you use a different 
approach - like for SSet1 use dr_groups table and for SSet2 use via 
dialplan.

Regards,
Bogdan

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 06:27 PM, Nick Khamis wrote:
> Hello Bogdan,
>
> It seems that do_routing does not accept "$var(id)":
>
> ERROR:drouting:fixup_do_routing: malformed or non AVP $var(groupid)
> AVP definition
> Mar  7 11:13:12 [5027] ERROR:core:fix_actions: fixing failed (code=-6)
> at cfg line 482
>
>
> Do I just use "$avp(id)" or do I have to assign the value over using:
>
> if (!is_avp_set("$avp(id)")) {
>     $avp(id) = $var(id);
> }
>
>
> On a side note, how do you feel about the efficiency of the approach
> with the use of RE?
> Maybe I should have specified what our scenario is. We have two super
> set of users:
>
> Super Set 1: We know the<username>@<domain>
> Super Set 2: We know only the<domain>
>
> Furthermore, Super Set 1, has 2 subsets:
> Super Set 1 ->  Subset 1: Has voicemail<*98 at example.com>
> Super Set 1 ->  Subset 2: Does  not have voicemail
>
> Using the "dr_groups" table, is there a way to process super sets 1
> and 2 (i.e., using username/domain (1), and only domain (2)). And
> would it be more efficient compared to querying against the dialplan
> regex enabled tabled.
>
> I understand that in Super Set 2, it's really a "group" and not a
> "user", which goes against the design of dr_groups (which is really
> dr_users).
>
> PS Feature request: Please change table name `dr_groups` to `dr_users`
> please! :)
>
> As always, thank you so much for your time!
>
> Nick.



More information about the Users mailing list