INFO/Record request configurable to use dynamic features

Adds two new options to SIP peers allowing them to specify features (dynamic or builtin)
to use when sending INFO/record requests. Recordonfeature activates whatever feature
is specified when recieving a record: on request while recordofffeature activates
whatever feature is specified when receiving a record: off request. Both of these
features can be disabled by setting the feature to an empty string.

(closes issue ASTERISK-16507)
Reported by: Jon Bright
Review: https://reviewboard.asterisk.org/r/1634/



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@349098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2011-12-23 20:42:21 +00:00
parent 03596bcb47
commit 19a4928fee
4 changed files with 61 additions and 10 deletions

View File

@@ -3015,7 +3015,8 @@ struct ast_call_feature *ast_find_call_feature(const char *name)
if (!strcasecmp(name, builtin_features[x].sname))
return &builtin_features[x];
}
return NULL;
return find_dynamic_feature(name);
}
/*!