<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>The repo for the docs is at:</p>
    <p>  * <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio-docs">https://github.com/kamailio/kamailio-docs</a></p>
    <p>The kemi docs are generated from the folder
      kamailio-kemi-framework. The index of exported functions by
      Kamailio modules is auto-generated. To add documentation for a
      specific function, you have to create (or update if exiting) a
      dedicated file, like:</p>
    <p>  *
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio-docs/blob/master/kamailio-kemi-framework/docs/modules/htable/htable.sht_inc.md">https://github.com/kamailio/kamailio-docs/blob/master/kamailio-kemi-framework/docs/modules/htable/htable.sht_inc.md</a></p>
    <p>To contribute, just make pull requests.</p>
    <p>The mkdocs framework is used for generating the html version.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 28.07.21 17:41, Ben Kaufman wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CH2PR12MB41818F1253A9698633476F0FDDEA9@CH2PR12MB4181.namprd12.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Thank you.  What’s the process for
          submitting changes to the KEMI documentation system?  If the
          search box had returned results for “transformation” it would
          have been helpful.  I think I also saw a small type-o
          somewhere in their recently.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <table class="MsoNormalTable" style="border-collapse:collapse"
            cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <td style="padding:0in 0in 0in 0in">
                  <p class="MsoNormal"><b><span
                        style="font-size:12.0pt;color:black">Ben Kaufman</span></b><span
                      style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
                </td>
              </tr>
              <tr style="height:6.0pt">
                <td style="padding:0in 0in 0in 0in;height:6.0pt"><br>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> Daniel-Constantin Mierla
              <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a> <br>
              <b>Sent:</b> Wednesday, July 28, 2021 10:16 AM<br>
              <b>To:</b> Kamailio (SER) - Users Mailing List
              <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>; Ben Kaufman
              <a class="moz-txt-link-rfc2396E" href="mailto:bkaufman@nexvortex.com"><bkaufman@nexvortex.com></a><br>
              <b>Subject:</b> Re: [SR-Users] Accessing Transformations
              in KEMI<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p>Hello,<o:p></o:p></p>
        <p>transformations are bound to variables, you have to use
          KSR.pv.get("$(hdr(P-Asserted-Identity){tobody.user})") or the
          other variants to get the value of variables from KSR.pv group
          of functions:<o:p></o:p></p>
        <p>  * <a
href="http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/core/#ksrpvget"
            moz-do-not-send="true">
http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/core/#ksrpvget</a><o:p></o:p></p>
        <p>Cheers,<br>
          Daniel<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 28.07.21 16:47, Ben Kaufman wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Sorry to bother on this, but is it
            possible to access Kamailio transformations in KEMI, and if
            so, how?<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">In Kamailio’s native scripting language I
            could do:<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">    $var(pai_user) =
            $(hdr(P-Asserted-Identity){tobody.user});<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">In KEMI, I can easily get the full header
            like this:<o:p></o:p></p>
          <p class="MsoNormal">    <o:p></o:p></p>
          <p class="MsoNormal">    KSR.hdr.get("P-Asserted-Identity")<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">But I don’t see how to access the
            transformations.  Am I missing it?<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <table class="MsoNormalTable" style="border-collapse:collapse"
            cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <td style="padding:0in 0in 0in 0in">
                  <p class="MsoNormal"><b><span
                        style="font-size:12.0pt;color:black">Ben Kaufman</span></b><o:p></o:p></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="MsoNormal"><span style="color:white"> </span><o:p></o:p></p>
          <p class="MsoNormal"><br>
            <br>
            <o:p></o:p></p>
          <pre>__________________________________________________________<o:p></o:p></pre>
          <pre>Kamailio - Users Mailing List - Non Commercial Discussions<o:p></o:p></pre>
          <pre>  * <a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
          <pre>Important: keep the mailing list in the recipients, do not reply only to the sender!<o:p></o:p></pre>
          <pre>Edit mailing list options or unsubscribe:<o:p></o:p></pre>
          <pre>  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
        </blockquote>
        <pre>-- <o:p></o:p></pre>
        <pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
        <pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
      </div>
    </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></pre>
  </body>
</html>