<div dir="ltr">Hey Stanislav,<div><br></div><div>Thanks for the reply.</div><div><br></div><div>mod_conference is actually what I'm using now to accomplish this. I drop C into the conference with A + B, along with an api_on_answer=uuid_kill ${a_uuid}. It works great, and actually doesn't notable impact CPU usage. I assume this is because of FS' default behavior of only mixing audio for members that are actively talking (maybe?) - so a good chunk of the time in a 2 person conference it's only "mixing" one person's audio. In any case, CPU usage is <i>very</i> similar in my configuration with either bridge or conference, and any potentially small additional CPU usage is worth it for the features conferencing provides in my opinion.</div><div><br></div><div>Anyway, the problem is that none of this works when there's no bridged call. For example, I may have a channel that's currently listening to an audio file being played by playback in a dialplan. There is no B channel at all to bridge to, but I still want to be able to replace A with C (and start sending the playback to session C instead). This is where my current approach falls apart.</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 8, 2016 at 10:53 AM Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think it's doable via ESL, but needs testing.<br>
<br>
For example, the B's leg goes to park(), and then you hangup A and<br>
bridge the C's session to B. Then you can also copy important<br>
variables between channels via uuid_getvar and uuid_setvar.<br>
<br>
Also mod_conference might be of help, although it would put extra load<br>
on the CPU.<br>
<br>
<br>
<br>
<br>
On Mon, Aug 8, 2016 at 4:35 PM, Colin Morelli <<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>> wrote:<br>
> Hey all,<br>
><br>
> I asked this question a little while back and didn't get a response but I<br>
> worked around the issue for a while so I had never followed up. Now I'm<br>
> facing some other issues and would like to see if there's an answer to this<br>
> out there (or if it needs to be built).<br>
><br>
> I'm looking to get behavior like the "pickup" channel, but at any point<br>
> during a call. Say I have channel A on a call with channel B. Channel C<br>
> calls, and I want it to take the place of A such that C is now talking to B.<br>
> In this particular case, intercept could work, but I have two issues with<br>
> that:<br>
><br>
> 1. I would like to copy all channel vars from A to C<br>
> 2. I would like to be able to do the same thing at any point during a call.<br>
> Even if A is not currently bridged to another endpoint. As I understand,<br>
> intercept connects you with an existing call, it doesn't replace anything.<br>
> So logically it would only work when there's another endpoint to bridge you<br>
> to.<br>
><br>
> Essentially, I want to swap sessions. Have everything that A is doing<br>
> replaced with C, and drop A. This actually appears to be what the pickup<br>
> channel does (I have noticed all channel vars are copied), but pickup only<br>
> works during bridging.<br>
><br>
> Is this possible to do?<br>
><br>
> Best,<br>
> Colin<br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div>