res_pjsip: add 'set_var' support on endpoints

Added a new 'set_var' option for ast_sip_endpoint(s).  For each variable
specified that variable gets set upon creation of a pjsip channel involving
the endpoint.

(closes issue ASTERISK-22868)
Reported by: Joshua Colp
Review: https://reviewboard.asterisk.org/r/3095/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin Harwell
2014-01-02 19:06:28 +00:00
parent 0c4b1ca477
commit e99940111c
6 changed files with 60 additions and 1 deletions

View File

@@ -592,6 +592,8 @@ struct ast_sip_endpoint {
unsigned int allowtransfer;
/*! Method used when handling redirects */
enum ast_sip_session_redirect redirect_method;
/*! Variables set on channel creation */
struct ast_variable *channel_vars;
};
/*!