mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 17:02:23 +00:00
FS-3403 --resolve
This commit is contained in:
parent
69e61f762b
commit
5d84efc32e
@ -2317,19 +2317,27 @@ SWITCH_STANDARD_API(dual_transfer_function)
|
|||||||
dest1 = argv[1];
|
dest1 = argv[1];
|
||||||
dest2= argv[2];
|
dest2= argv[2];
|
||||||
|
|
||||||
|
if ((dp1 = strstr(dest1, "/inline")) && *(dp1 + 7) == '\0') {
|
||||||
|
*dp1++ = '\0';
|
||||||
|
} else {
|
||||||
if ((dp1 = strchr(dest1, '/'))) {
|
if ((dp1 = strchr(dest1, '/'))) {
|
||||||
*dp1++ = '\0';
|
*dp1++ = '\0';
|
||||||
if ((context1 = strchr(dp1, '/'))) {
|
if ((context1 = strchr(dp1, '/'))) {
|
||||||
*context1++ = '\0';
|
*context1++ = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((dp2 = strstr(dest1, "/inline")) && *(dp2 + 7) == '\0') {
|
||||||
|
*dp2++ = '\0';
|
||||||
|
} else {
|
||||||
if ((dp2 = strchr(dest2, '/'))) {
|
if ((dp2 = strchr(dest2, '/'))) {
|
||||||
*dp2++ = '\0';
|
*dp2++ = '\0';
|
||||||
if ((context2 = strchr(dp2, '/'))) {
|
if ((context2 = strchr(dp2, '/'))) {
|
||||||
*context2++ = '\0';
|
*context2++ = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (zstr(tuuid) || !(tsession = switch_core_session_locate(tuuid))) {
|
if (zstr(tuuid) || !(tsession = switch_core_session_locate(tuuid))) {
|
||||||
stream->write_function(stream, "-ERR No Such Channel!\n");
|
stream->write_function(stream, "-ERR No Such Channel!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user