提交 b0de882a authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3794 I think I got to the bottom of the thing you hit with intercept, please…

FS-3794 I think I got to the bottom of the thing you hit with intercept, please update to this version
上级 ffdf5624
......@@ -2487,9 +2487,12 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
"<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" "
"version=\"%s\" state=\"%s\" entity=\"%s\">\n", version, default_dialog, clean_id);
}
if (!strcasecmp(astate, "hangup")) {
astate = "terminated";
}
if (!zstr(uuid)) {
if (!zstr(answer_state)) {
astate = answer_state;
......@@ -2507,9 +2510,6 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
astate = "confirmed";
}
if (!strcasecmp(astate, "hangup")) {
astate = "terminated";
}
if (is_dialog) {
......@@ -2629,7 +2629,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
if (in) {
open = "open";
if (switch_false(resub)) {
if (!strcasecmp(astate, "terminated") && switch_false(resub)) {
int term;
const char *direction = switch_event_get_header(helper->event, "Caller-Direction");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论