mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +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,7 +2487,10 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
|||||||
"<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" "
|
"<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" "
|
||||||
"version=\"%s\" state=\"%s\" entity=\"%s\">\n", version, default_dialog, clean_id);
|
"version=\"%s\" state=\"%s\" entity=\"%s\">\n", version, default_dialog, clean_id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!strcasecmp(astate, "hangup")) {
|
||||||
|
astate = "terminated";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zstr(uuid)) {
|
if (!zstr(uuid)) {
|
||||||
@ -2507,9 +2510,6 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
|||||||
astate = "confirmed";
|
astate = "confirmed";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(astate, "hangup")) {
|
|
||||||
astate = "terminated";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_dialog) {
|
if (is_dialog) {
|
||||||
|
|
||||||
@ -2629,7 +2629,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
|||||||
if (in) {
|
if (in) {
|
||||||
open = "open";
|
open = "open";
|
||||||
|
|
||||||
if (switch_false(resub)) {
|
if (!strcasecmp(astate, "terminated") && switch_false(resub)) {
|
||||||
int term;
|
int term;
|
||||||
|
|
||||||
const char *direction = switch_event_get_header(helper->event, "Caller-Direction");
|
const char *direction = switch_event_get_header(helper->event, "Caller-Direction");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user