Re: [SR-Users] How to resolve these mod_param errors in Kamailio 5.3.1?

2020-06-15 Thread Henning Westerholt
Hello, please keep the list in CC have a look to the docs later in the README: 3.13. xavp_dst_mode (int) Control what fields are added to the XAVP specified by xavp_dst parameter. Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services -

[SR-Users] null branch(count) variable

2020-06-15 Thread Ilie Soltanici
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 value, can someone help me to understand what I'm doing wrong? lookup(); xlog("Branch Count:

Re: [SR-Users] null branch(count) variable

2020-06-15 Thread Daniel-Constantin Mierla
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: >

Re: [SR-Users] null branch(count) variable

2020-06-15 Thread Ilie Soltanici
Not, I tried $branch(uri) and I can't get it either. lookup() function seems to be returning true back, this is related config code: lookup("location"); switch ($retcode) { case -1: sl_send_reply("404", "Not Found"); exit; case -2: sl_send_reply("404", "Method not

Re: [SR-Users] null branch(count) variable

2020-06-15 Thread Sergiu Pojoga
As per the documentation, $branch(name) provides access to "additional branches", not "main branch". If after lookup you have a single branch (AoR has a single Contact), it would explain why you get NULL.