]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Allow proxy media on pickup endpoint
authorBrian West <brian@freeswitch.org>
Tue, 29 Oct 2013 17:58:28 +0000 (12:58 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 29 Oct 2013 17:58:28 +0000 (12:58 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index 8d7b5c6f37ef633a4c1532f6f258d4998095f507..b5b7718231d388fc2cd67995c6eeed66f335182c 100755 (executable)
@@ -3622,6 +3622,9 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio
        switch_core_session_set_private(nsession, tech_pvt);
        
        nchannel = switch_core_session_get_channel(nsession);
+       switch_channel_set_cap(nchannel, CC_PROXY_MEDIA);
+       switch_channel_set_cap(nchannel, CC_BYPASS_MEDIA);
+
        caller_profile = switch_caller_profile_clone(nsession, outbound_profile);
        switch_channel_set_caller_profile(nchannel, caller_profile);