]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7732: [mod_commands] follow recording on other session
authorDavide Colombo <davec82@gmail.com>
Fri, 26 Jun 2015 14:20:22 +0000 (16:20 +0200)
committerMichael Jerris <mike@jerris.com>
Tue, 25 Aug 2015 19:44:16 +0000 (14:44 -0500)
follow recording on other session

src/mod/applications/mod_commands/mod_commands.c

index 1b5ff683a7e4eb100ddec1a667c901a812fb5a60..d9bbdd2af02d1a5a9f7590a108f8d0343885aaa5 100644 (file)
@@ -2744,6 +2744,9 @@ SWITCH_STANDARD_API(transfer_function)
                                switch_core_session_t *tmp = tsession;
                                tsession = other_session;
                                other_session = NULL;
+                               if (switch_true(switch_channel_get_variable(channel, "recording_follow_transfer"))) {
+                                       switch_core_media_bug_transfer_recordings(tmp, tsession);
+                               }
                                switch_core_session_rwunlock(tmp);
                        }
                } else if (!strcasecmp(arg, "both")) {