Allow access to headers from INVITE

This adds a sip profile parameter parse-all-invite-headers that when
set parses all headers from an INVITE into channel variables.  The
headers are converted to lowercase, underscores are replaced with
dashes, and the result is prefixed with sip_i_.  Headers than exist
more than once are set as arrays.

FS-6075 --resolve

Thanks-to: Peter Olsson <peter@olssononline.se>
This commit is contained in:
Travis Cross
2014-02-21 20:45:22 +00:00
parent eab969815a
commit 19dbd07ff8
2 changed files with 200 additions and 0 deletions
+1
View File
@@ -271,6 +271,7 @@ typedef enum {
PFLAG_TCP_PINGPONG,
PFLAG_TCP_PING2PONG,
PFLAG_MESSAGES_RESPOND_200_OK,
PFLAG_PARSE_ALL_INVITE_HEADERS,
/* No new flags below this line */
PFLAG_MAX
} PFLAGS;