[SR-Users] PV Setting Question

Daniel-Constantin Mierla miconda at gmail.com
Wed May 17 14:45:47 CEST 2017


Hello,

you have to provide the script part where you set the value and try to
print it in order to be able to help troubleshooting.

Cheers,
Daniel


On 17.05.17 14:08, Duarte Rocha wrote:
> Good Afternoon, 
>
> I'm having trouble with creation and value setting of some
> pseudo-variables.
>
> In the first cases, I used the pvapic.c function pv_get_sintval() like
> this : 
>
> pv_get_sintval(msg, param, res, number_int_value); 
>
> Using pv_get_sintval() i can assign the value to the PV  and print it
> in the configuration file without any problem.
>
> However, if i need to assign a char* to the PV and use
>  pv_get_strzval(msg, param, res, number_char_value);, it doesn't reach
> the configuration file. 
>
> I made some debugs inside pv_get_strzval() in order to see the values
> of "res->rs.s" and res->rs.len and both values are fine. I just can't
> access them in the configuration file.
>
> Thanks in advance for your help!
>
> Cheers, 
>
> Duarte Rocha
>
>
> _______________________________________________
> 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.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

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


More information about the sr-users mailing list