<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>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.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 17.05.17 14:08, Duarte Rocha wrote:<br>
    </div>
    <blockquote
cite="mid:CAAJJHZjZTRi_i2GNKS5w9uo2E6iT40m0ZvXAAEHkFo9k1vKZwQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Good Afternoon, 
        <div><br>
        </div>
        <div>I'm having trouble with creation and value setting of some
          pseudo-variables.</div>
        <div><br>
        </div>
        <div>In the first cases, I used the pvapic.c function
          pv_get_sintval() like this : </div>
        <div><br>
        </div>
        <div>pv_get_sintval(msg, param, res, number_int_value); </div>
        <div><br>
        </div>
        <div>Using pv_get_sintval() i can assign the value to the PV
           and print it in the configuration file without any problem.</div>
        <div><br>
        </div>
        <div>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. </div>
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>Thanks in advance for your help!</div>
        <div><br>
        </div>
        <div>Cheers, </div>
        <div><br>
        </div>
        <div>Duarte Rocha</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>