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

This commit is contained in:
Anthony Minessale 2012-02-21 15:33:37 -06:00
parent ffdf562433
commit b0de882aee

View File

@ -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");