提交 47b2be3d authored 作者: lazedo's avatar lazedo

FS-11748 [mod_kazoo] better handling of interaction-id

* transfers
* outgoing channels
* loopback
上级 4dbb8f27
...@@ -903,7 +903,7 @@ ...@@ -903,7 +903,7 @@
value="Application-Response|variable_originate_disposition|variable_endpoint_disposition|#NONE" /> value="Application-Response|variable_originate_disposition|variable_endpoint_disposition|#NONE" />
<field name="Disposition" type="first-of" <field name="Disposition" type="first-of"
value="variable_originate_disposition|variable_endpoint_disposition" /> value="variable_originate_disposition|variable_endpoint_disposition" />
<field name="variable_last_bridge_hangup_cause" as="Bridge-Hangup-Cause" /> <field name="Bridge-Hangup-Cause" type="first-of" value="variable_last_bridge_hangup_cause|variable_bridge_hangup_cause" />
<field name="debug-call" type="reference" /> <field name="debug-call" type="reference" />
</fields> </fields>
......
...@@ -188,6 +188,7 @@ struct globals_s { ...@@ -188,6 +188,7 @@ struct globals_s {
char **profile_vars_prefixes; char **profile_vars_prefixes;
char **kazoo_var_prefixes; char **kazoo_var_prefixes;
int tweaks_restore_caller_id;
}; };
typedef struct globals_s globals_t; typedef struct globals_s globals_t;
extern globals_t kazoo_globals; extern globals_t kazoo_globals;
......
...@@ -114,6 +114,7 @@ switch_status_t kazoo_ei_config(switch_xml_t cfg) { ...@@ -114,6 +114,7 @@ switch_status_t kazoo_ei_config(switch_xml_t cfg) {
kazoo_globals.io_fault_tolerance = 10; kazoo_globals.io_fault_tolerance = 10;
kazoo_globals.json_encoding = ERLANG_TUPLE; kazoo_globals.json_encoding = ERLANG_TUPLE;
kazoo_globals.enable_legacy = SWITCH_FALSE; kazoo_globals.enable_legacy = SWITCH_FALSE;
kazoo_globals.tweaks_restore_caller_id = SWITCH_TRUE;
if ((child = switch_xml_child(cfg, "settings"))) { if ((child = switch_xml_child(cfg, "settings"))) {
...@@ -188,6 +189,9 @@ switch_status_t kazoo_ei_config(switch_xml_t cfg) { ...@@ -188,6 +189,9 @@ switch_status_t kazoo_ei_config(switch_xml_t cfg) {
} else if (!strcmp(var, "enable-legacy")) { } else if (!strcmp(var, "enable-legacy")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Set enable-legacy: %s\n", val); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Set enable-legacy: %s\n", val);
kazoo_globals.enable_legacy = switch_true(val); kazoo_globals.enable_legacy = switch_true(val);
} else if (!strcmp(var, "tweaks-restore-caller-id")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Set tweaks-restore-caller-id: %s\n", val);
kazoo_globals.tweaks_restore_caller_id = switch_true(val);
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论