[Freeswitch-users] Question about eavesdrop application

Mimiko vbvbrj at gmail.com
Tue Sep 9 16:46:17 MSD 2014


Hello.

I wanted to enable eavesdrop to spy on local extensions. In the sample 
dialplan from freeswitch I used:

<extension name="global" continue="true">
   <condition>
    <action application="hash" 
data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/>
    <action application="hash" 
data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>
    <action application="hash" 
data="insert/${domain_name}-last_dial/global/${uuid}"/>
    <action application="export" data="RFC2822_DATE=${strftime(%a, %d %b 
%Y %T %z)}"/>
   </condition>
</extension>
<extension name="eavesdrop">
   <condition field="destination_number" expression="^88(.*)$|^\*0(.*)$">
     <action application="answer"/>
     <action application="eavesdrop" 
data="${hash(select/${domain_name}-spymap/$1$2)}"/>
   </condition>
</extension>

This works when extension calls other extension or outbound to some 
number. But not working when someone calls the extension, because hash 
select/spymap/extension gives an obsolete uuid.

How to overcove this problem? Also how to spy on extensions which 
answered a member in a callcenter?

Thank you.
-- 
Mimiko desu.



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list