<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>if there is a rpc command for it, then maybe you can leverage the
      jsonrpc_exec() from jsonrpcs module and walk through json using
      jansson.</p>
    <p>If not, then such feature has to be added within the c code and
      exported as function to config.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 18.06.20 13:44, Ilie Soltanici
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJQ6-U3Cd_tRW9RdqcSDycsQw=JXYA49PfJBi=SfY3LiC+Yw=A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>Is there any way in Kamailio to get the profile values the
          current dialog is part of?</div>
        <div><br>
        </div>
        <div>For example, I have one dialog with the following profiles:</div>
        <div><br>
        </div>
        <div>profiles: {</div>
        <div>{</div>
        <div>    test: abcd</div>
        <div>}</div>
        <div>    test: 1234</div>
        <div>}</div>
        <div><br>
        </div>
        <div>I need in the reply route to get the values for the test
          dialog profile. (abcd, 1234). I know I can use
          get_profile_size, but that will give the number of profiles of
          the current dialog, but I need the values to loop through.</div>
        <div><br>
        </div>
        <div>Thanks.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>