mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
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:
parent
ffdf562433
commit
b0de882aee
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user