mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
res_pjsip_dtmf_info.c: Add 'INFO' to Allow header.
Fixes #376
(cherry picked from commit 3af55f14fa
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e571b7c4dd
commit
7f3a5b2be0
@@ -163,6 +163,13 @@ static struct ast_sip_session_supplement dtmf_info_supplement = {
|
|||||||
|
|
||||||
static int load_module(void)
|
static int load_module(void)
|
||||||
{
|
{
|
||||||
|
static const pj_str_t STR_INFO = { "INFO", 4 };
|
||||||
|
|
||||||
|
if (pjsip_endpt_add_capability(ast_sip_get_pjsip_endpoint(),
|
||||||
|
NULL, PJSIP_H_ALLOW, NULL, 1, &STR_INFO) != PJ_SUCCESS) {
|
||||||
|
return AST_MODULE_LOAD_DECLINE;
|
||||||
|
}
|
||||||
|
|
||||||
ast_sip_session_register_supplement(&dtmf_info_supplement);
|
ast_sip_session_register_supplement(&dtmf_info_supplement);
|
||||||
return AST_MODULE_LOAD_SUCCESS;
|
return AST_MODULE_LOAD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user