<div dir="ltr">Very good idea with rpc command or json module, never mind about it.<div>For the moment I will try with that, but any way will be good to have a function in the dialog module for that.</div><div><br></div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">În mie., 24 iun. 2020 la 09:45, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> a scris:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <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>On 18.06.20 13:44, Ilie Soltanici
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a></pre>
  </div>

</blockquote></div>