<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hello,</p>
    <p>probably you can use {line} transformation in a while loop:</p>
    <p>  *
      <a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/devel/transformations#lineat_pos">https://www.kamailio.org/wiki/cookbooks/devel/transformations#lineat_pos</a></p>
    <p>Skip first one and go until the line is only "\r\n", which marks
      the end of the headers.</p>
    <p>For each line test if it starts with [a-zA-Z] and take the name
      with {s.select,0,:}.</p>
    <p>The alternative is to use embedded interpreters for other
      scripting languages that provide more string parsing flexibility,
      like app_lua, app_python, ...<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 04.06.21 22:14, Evan Verma wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:045d4f30-e52c-4e36-b81b-5be4d9578259@Spark">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <title></title>
      <div name="messageBodySection">
        <div dir="auto"><span style="color:#22231f;font-family:Source
            Sans Pro, Helvetica, sans-serif;font-size: 15.12px">hello!
            new to working with sip/kamailio. I am currently trying to
            get a list of all of the header names on the invite the SBC
            receives. I am having trouble finding a way to do this. Does
            anyone know of a good solution?</span></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <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>
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>