<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>I haven't checked the code, but I think that the function was
      designed with static parameter to be able to lookup the profile
      structure at startup and keep the pointer to it in order to be
      faster at runtime.</p>
    <p>Adding support for variables is possible of course, it would
      require a bit of c development.</p>
    <p>At this moment you can use embedded scripting (e.g., Lua, Python,
      JavaScript, ... see app_lua, ...) and execute functions via KSR
      module, i.e.,:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#ksrdialogset_dlg_profile">http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#ksrdialogset_dlg_profile</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 08.01.21 07:44, Muhammad Sohaib
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALjWfRG0hVzZatynBbfHn6n-rrWn_p1VUKw6+RNGs7MXaDBk+A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Is it possible to insert the current dialog into the
          profile by using the following way?</div>
        <div><br>
        </div>
        <div>modparam("dialog", "profiles_no_value", "mytest;xyz")</div>
        <div><br>
        </div>
        <div>$var(profilename)="xyz";<br>
          set_dlg_profile("
          $var(profilename)
          ");</div>
        <div><br>
        </div>
        <div>Currently it is giving errors and not allowing to use
          variable instead of static profile name. <br>
        </div>
        <div><br>
        </div>
        <div>Or is there any alternative to pass profile name as
          variable?<br>
        </div>
        <div>
          <div><br>
            ---<br>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">Thanks,</div>
            </div>
          </div>
        </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>