Hello,

if I have understood correctly the module, the first parameter on the function is the group id you use to choose the destination on the database table.

So if you use 1, select between configured destinations on group 1 (column setid on the database), if you set 2, select between destinations on group 2 (column setid on the database). So the function look like:

UserA ---> ds_select_dst("1", "4")
UserB ---> ds_select_dst("2", "4")

If you save the first value of user in a variable like $var(group) you can use:

UserA ---> ds_select_dst("$var(group)", "4")
UserB ---> ds_select_dst("$var(group)", "4")

where set $var(group)=$rU

then

$var(group)=$var(group){s.substr,0,1})

I think this work

Regards

El 19/11/2014 12:10, Satish Patel escribió:

Thanks for reply, But i am confused here how do i pass that variable to ds_select_dst(set, alg) function?

currently i have following set in my script, how do i replace "0" with variable? do you know? is there built in variable?

ds_select_dst("0", "4")

On Wed, Nov 19, 2014 at 11:58 AM, campusvtv <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    maybe you can configure the users using the same initial number
    for the same group.

    Example:
    group 1
    1001
    1002
    1003
    1104

    group2
    2001
    2002
    2003
    2004

    then extract first value from $rU pseudo variable (group 1 is 1,
    group 2 is 2) and use this group on the ds_select_dst(set, alg [,
    max_results]) function.

    Regards


    El 19/11/2014 11:31, Satish Patel escribió:
    Hi,

    We have running opensips 1.12 with dispatcher, we want to route
    call to dispatcher bases on specific users. Is there any way we
    can implement that scenario?

    Ex:

    UserA ---> dispatcherA
    UserB ---> dispatcherB


    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to