[OpenSIPS-Users] Aliases to multiple users

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Feb 19 15:10:26 CET 2010


Ok, here it is what you should be doing:

- after the DBaliases lookup, move all the branches (iterate with index) 
into an AVP (AVP can have multiple vals) $avp(i:1) , and remove branches 
(see http://www.opensips.org/Resources/DocsCoreVar16#toc13)

- do lookup(location) for the RURI (the first account returned by alias 
lookup)

- iterate through all values of the AVP doing:
- move RURI into a new branch (call append_branch() )
- do lookup(location,"","$avp(i:1)")


This alg will allow you to iterate through all results of DBaliases and 
do lookup location for all of them.

Regards,
Bogdan

Кузьмицкий Александр wrote:
> My understanting of script variables in opensips are middle.
> I`m programmer with some skills in python, but opensips is very 
> another language.
> Basic things i understand.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list