[SR-Users] Printing xavp

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 21 17:17:11 CET 2020


Based on that function you can add a simplified one to print the format
you like.

Daniel

On 21.01.20 16:08, Ovidiu Sas wrote:
> This is to verbose and hard to read.
> I was looking for something more configurable from the script.
>
> -ovidiu
>
> On Tue, Jan 21, 2020 at 7:34 AM Daniel-Constantin Mierla
> <miconda at gmail.com> wrote:
>> Hello,
>>
>> if you are looking to print the content to syslog for troubleshooting,
>> then there is pv_xapv_print().
>>
>> Cheers,
>> Daniel
>>
>> On 20.01.20 23:07, Ovidiu Sas wrote:
>>> What's the best way to print the entire content of an xavp?
>>> The xavp_params_implode() doesn't print the entire stack of an xavp,
>>> only the top layer:
>>>
>>> The following code produces "c=d;e=f;"
>>>     $xavp(x=>e) = "f";
>>>     $xavp(x[0]=>c) = "d";
>>>     $xavp(x[1]=>e) = "z";
>>>     $xavp(x[1]=>c) = "y";
>>>     xavp_params_implode("x", "$var(out)");
>>>
>>> Is there a way to print everything inside $xavp(x)?
>>>
>>> Thanks,
>>> Ovidiu
>>>
>>> _______________________________________________
>>> 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
>> Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
>> Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
>>
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com




More information about the sr-users mailing list