From 851b1c3a177e06660aeeb92b29a0d3e267ddb61b Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 15 Jul 2016 20:44:52 -0500 Subject: res_pjsip: Add fax_detect_timeout endpoint option. The new endpoint option allows the PJSIP channel driver's fax_detect endpoint option to timeout on a call after the specified number of seconds into a call. The new feature is disabled if the timeout is set to zero. The option is disabled by default. ASTERISK-26214 Reported by: Richard Mudgett Change-Id: Id5a87375fb2c4f9dc1d4b44c78ec8735ba65453d --- include/asterisk/res_pjsip.h | 2 ++ include/asterisk/res_pjsip_session.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/asterisk') diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index 962ddb11b..4d60d1dab 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -749,6 +749,8 @@ struct ast_sip_endpoint { struct ast_acl_list *acl; /* Restrict what IPs are allowed in the Contact header (for registration) */ struct ast_acl_list *contact_acl; + /*! The number of seconds into call to disable fax detection. (0 = disabled) */ + unsigned int faxdetect_timeout; }; /*! diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h index e4c54a173..7e65e6d7c 100644 --- a/include/asterisk/res_pjsip_session.h +++ b/include/asterisk/res_pjsip_session.h @@ -137,7 +137,7 @@ struct ast_sip_session { struct ast_party_id id; /*! Requested capabilities */ struct ast_format_cap *req_caps; - /*! Optional DSP, used only for inband DTMF detection if configured */ + /*! Optional DSP, used only for inband DTMF/Fax-CNG detection if configured */ struct ast_dsp *dsp; /*! Whether the termination of the session should be deferred */ unsigned int defer_terminate:1; -- cgit v1.2.3