<div dir="ltr">Yeah, I saw $mb as I was browsing through things. I was hoping to not have to re-parse the SIP message in the API since Kamailio has already done that work, and it would require some form of a SIP parser in my API.<div><br></div><div>As a future feature request, I'll say that I think this would be a helpful addition (possibly even just a function that exports all headers names to an AVP which you can then iterate as you choose). Especially as applications continue to become more dynamic in nature.</div><div><br></div><div>For now, I'll probably go the current route of just cherry-picking the headers that I need in my API and pushing those up.</div><div><br></div><div>Thanks all!</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 27, 2016 at 7:49 AM Olle E. Johansson <<a href="mailto:oej@edvina.net">oej@edvina.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On 26 Jun 2016, at 22:29, Colin Morelli <<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>> wrote:<br>
><br>
> Hey all,<br>
><br>
> Back with more questions.<br>
><br>
> I'm using Kamailio to make an HTTP call to my API to perform authentication and message routing. Currently, I'm trying to build up the post body that I send to my API to make those decisions.<br>
><br>
> I've cherry picked a few of the headers that are important in my routing decisions. But, ideally, I'd like to just iterate over all the SIP message headers and append them as request parameters to my API call. Is this possible with Kamailio? I've been looking through the docs and can't seem to find a function to iterate the full list of headers.<br>
><br>
> Thanks in advance.<br>
<br>
$mb<br>
<br>
will give you the full SIP message.<br>
<br>
/O<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>