[SR-Users] null branch(count) variable

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 15 18:51:38 CEST 2020


Hello,

can you get any other attribute from the variable?

  -
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#branch_name_-_branch_attributes

At least the uri should be set.

Also, have you tested that lookup() was true?

Cheers,
Daniel

On 15.06.20 18:39, Ilie Soltanici wrote:
> Hello,
>
> As per documentation after lookup() function I have to get the number
> of branches from the main branch by using $branch(count) variable, but
> for some reason, I'm getting always only <null> value, can someone
> help me to understand what I'm doing wrong?
>
> lookup();
> xlog("Branch Count: $branch(count)\n");
>
> Kamailio Version: 5.2.7
>
> Thanks.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200615/d31ab349/attachment.html>


More information about the sr-users mailing list