]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regression in commit 19f441c6f4516f035828aa112bcf92f47f4e0f28
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Apr 2012 13:24:15 +0000 (08:24 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Apr 2012 13:53:44 +0000 (08:53 -0500)
src/mod/endpoints/mod_loopback/mod_loopback.c

index a1882f8ca3b2e222313928fad600eb2fe6334a41..cffd920699dce487a415b12b1496bd127f9e724a 100644 (file)
@@ -963,9 +963,16 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                                }
 
                                switch_channel_set_variable(channel, "loopback_app", app);
+
+                               if (clone) {
+                                       switch_event_add_header(clone, SWITCH_STACK_BOTTOM, "loopback_app", app);
+                               }
                                
                                if (arg) {
                                        switch_channel_set_variable(channel, "loopback_app_arg", arg);
+                                       if (clone) {
+                                               switch_event_add_header(clone, SWITCH_STACK_BOTTOM, "loopback_app_arg", arg);
+                                       }
                                }
 
                                switch_set_flag(tech_pvt, TFLAG_APP);