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-06 10:29:27 -04:00
parent 9e10aa8496
commit 1c949eea6c
6 changed files with 54 additions and 3 deletions

View File

@@ -505,6 +505,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];
};
/*!