mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
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:
@@ -34,6 +34,7 @@
|
||||
#include "asterisk/astobj.h"
|
||||
#include "asterisk/indications.h"
|
||||
#include "asterisk/security_events.h"
|
||||
#include "asterisk/features.h"
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
@@ -182,6 +183,7 @@
|
||||
*/
|
||||
/*@{*/
|
||||
#define DEFAULT_CONTEXT "default" /*!< The default context for [general] section as well as devices */
|
||||
#define DEFAULT_RECORD_FEATURE "automon" /*!< The default feature specified for use with INFO */
|
||||
#define DEFAULT_MOHINTERPRET "default" /*!< The default music class */
|
||||
#define DEFAULT_MOHSUGGEST ""
|
||||
#define DEFAULT_VMEXTEN "asterisk" /*!< Default voicemail extension */
|
||||
@@ -744,6 +746,8 @@ struct sip_settings {
|
||||
struct sip_proxy outboundproxy; /*!< Outbound proxy */
|
||||
char default_context[AST_MAX_CONTEXT];
|
||||
char default_subscribecontext[AST_MAX_CONTEXT];
|
||||
char default_record_on_feature[FEATURE_MAX_LEN];
|
||||
char default_record_off_feature[FEATURE_MAX_LEN];
|
||||
struct ast_ha *contact_ha; /*! \brief Global list of addresses dynamic peers are not allowed to use */
|
||||
struct ast_format_cap *caps; /*!< Supported codecs */
|
||||
int tcp_enabled;
|
||||
@@ -1243,6 +1247,8 @@ struct sip_peer {
|
||||
AST_STRING_FIELD(engine); /*!< RTP Engine to use */
|
||||
AST_STRING_FIELD(unsolicited_mailbox); /*!< Mailbox to store received unsolicited MWI NOTIFY messages information in */
|
||||
AST_STRING_FIELD(zone); /*!< Tonezone for this device */
|
||||
AST_STRING_FIELD(record_on_feature); /*!< Feature to use when receiving INFO with record: on during a call */
|
||||
AST_STRING_FIELD(record_off_feature); /*!< Feature to use when receiving INFO with record: off during a call */
|
||||
);
|
||||
struct sip_socket socket; /*!< Socket used for this peer */
|
||||
enum sip_transport default_outbound_transport; /*!< Peer Registration may change the default outbound transport.
|
||||
|
Reference in New Issue
Block a user