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.
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.
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.
Thanks all!
Best,
Colin
On Mon, Jun 27, 2016 at 7:49 AM Olle E. Johansson <oej(a)edvina.net> wrote:
On 26 Jun 2016, at 22:29, Colin Morelli
<colin.morelli(a)gmail.com> wrote:
Hey all,
Back with more questions.
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.
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.
Thanks in advance.
$mb
will give you the full SIP message.
/O
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users