<div dir="ltr"><div><div>I've written a patch for freeswitch that allows you to execute a dialplan-command/api from the dialplan when the transfer succeeds ... It has been lying around for some time in my local branch waiting to be uploaded as a jira-patch ...<br>
<br></div>I think that this would solve you problem.<br><br></div>Michel<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 4:12 PM, Jeremy Childs <span dir="ltr"><<a href="mailto:jeremyc@ssimicro.com" target="_blank">jeremyc@ssimicro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Yes, that works fine, except in the
case where the incoming call bounces off a receptionist.<br>
<br>
Receptionist takes call - UUID 1234 is mapped (via mod_db) to the
receptionist's extension number.<br>
Receptionist begins an attended transfer - new UUID is generated
(6789) - this UUID is mapped to the tranfer target (extension
101).<br>
Receptionist completes transfer - new UUID (6789) is discarded and
UUID 1234 is now the UUID of the call.<br>
Eavesdropper wants to listen to whatever extension 101 is doing...
no mapping for this.<br>
<br>
I have a patch for mod_dptools ready to submit that allows
eavesdrop to lookup an extension number, I'm just checking to see
if I've missed some other way to do it.<div><div class="h5"><br>
<br>
<br>
On 10/30/13, 2:01 AM, Steven Ayre wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Use mod_db to store the current call's uuid and
then again to look it up.</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 29 October 2013 15:54, Jeremy Childs
<span dir="ltr"><<a href="mailto:jeremyc@ssimicro.com" target="_blank">jeremyc@ssimicro.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying
to create a "works-anywhere" eavesdrop extension. I've got<br>
the demo application that uses the hash/spymap functionality
working<br>
correctly, but you would need the caller-id of the
incoming call in<br>
order to eavesdrop on incoming calls. This could be fixed by
capturing<br>
the destination number instead of the caller-id number for
incoming<br>
calls (and I've done this, it works fine).<br>
<br>
However, this breaks in the case where an attended transfer
has happened<br>
(the UUID of the call that gets connected "belonged" to the
receptionist).<br>
<br>
The most robust thing I can think of is to do a live lookup
of the call<br>
UUID using the "final" extension number. Is there any way to
do this<br>
lookup from the dialplan?<br>
<br>
To be clear, what I'd like to do is this:<br>
<br>
Incoming call is picked up by receptionist (ext 100).
Receptionist<br>
transfers call to extension 101. The Boss (extension 200),
dials *88101<br>
which looks up the UUID of extension 101's current call,
provides this<br>
UUID to the eavesdrop extension, and the eavesdrop proceeds.<br>
<br>
There doesn't appear to be any way to do this from the
dialplan, however<br>
-- am I missing something?<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>