From: Jeff Lenk Date: Mon, 1 Aug 2011 15:09:35 +0000 (-0500) Subject: FS-3403 --resolve X-Git-Tag: v1.2-rc1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d84efc32ef3989ecfc65867e268df693d55fbaa;p=thirdparty%2Ffreeswitch.git FS-3403 --resolve --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 2861461852..cbb51cbcc0 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2317,17 +2317,25 @@ SWITCH_STANDARD_API(dual_transfer_function) dest1 = argv[1]; dest2= argv[2]; - if ((dp1 = strchr(dest1, '/'))) { + if ((dp1 = strstr(dest1, "/inline")) && *(dp1 + 7) == '\0') { *dp1++ = '\0'; - if ((context1 = strchr(dp1, '/'))) { - *context1++ = '\0'; + } else { + if ((dp1 = strchr(dest1, '/'))) { + *dp1++ = '\0'; + if ((context1 = strchr(dp1, '/'))) { + *context1++ = '\0'; + } } } - if ((dp2 = strchr(dest2, '/'))) { + if ((dp2 = strstr(dest1, "/inline")) && *(dp2 + 7) == '\0') { *dp2++ = '\0'; - if ((context2 = strchr(dp2, '/'))) { - *context2++ = '\0'; + } else { + if ((dp2 = strchr(dest2, '/'))) { + *dp2++ = '\0'; + if ((context2 = strchr(dp2, '/'))) { + *context2++ = '\0'; + } } }