[OpenSIPS-Users] How many branches returned by lookup(location)

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Oct 29 19:58:01 CET 2013


Hello John,

Have you tried "set_count" function :
    http://www.opensips.org/html/docs/modules/1.10.x/cfgutils.html#id250381
over the $branch() var (see
http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc22) ?

Regards,

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


On 10/29/2013 10:52 AM, John Quick wrote:
> Is there a simple way to count and identify all branches returned by
> lookup("location")?
> For example, I have 3 devices (UA's) which simultaneously register using the
> same username.
> The main routing block now calls lookup("location") to retrieve the contact
> and destination information for that user.
> How can I report in an xlog message immediately after the lookup that 3
> branches were retrieved?
> (or should I describe that as one main URI and 2 branches?)
>
> Thanks.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list