[asterisk-dev] Accessing SIP Headers from within a module
Johan Wilfer
lists at jttech.se
Thu Aug 15 01:21:44 CDT 2013
2013-08-14 17:36, Josh skrev:
>
> Dear Asterisk-Dev,
>
> Apologies if this isn't the right place, I'm mainly looking for a pointer
> on how to access sip headers from within app_voicemail.c, unfortunately I'm
> using asterisk 1.4 (duck!). Is this possible? I have seen the function
>
> func_header_read(chan, NULL, "diversion", diversion, 100);
You can look at the dialplan function CALLERID(rdnis) for this
information. It's populated with info from the Diversion header in the
SIP INVITE.
--
Johan Wilfer
More information about the asterisk-dev
mailing list