mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user