res_pjsip: Added "subscribe_context" to endpoint

If specified, incoming SUBSCRIBE requests will be searched for the matching
extension in the indicated context. If no "subscribe_context" is specified,
then the "context" setting is used.

ASTERISK-25471 #close

Change-Id: I3fb7a15f5bc154079bd348c08b7ad1cdd2d5e514
This commit is contained in:
Alexei Gradinari
2016-07-04 14:54:34 -04:00
parent ac6824e4c3
commit 2c16a81dd5
6 changed files with 54 additions and 3 deletions

View File

@@ -503,6 +503,8 @@ struct ast_sip_endpoint_subscription_configuration {
unsigned int minexpiry;
/*! Message waiting configuration */
struct ast_sip_mwi_configuration mwi;
/* Context for SUBSCRIBE requests */
char context[AST_MAX_CONTEXT];
};
/*!