Question about eavesdrop application
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.
It all comes down to somehow saving the UUID of the leg. You can use the hash application using execute on bridge in the callcenter dial url to store it perhaps? On Sep 9, 2014, at 8:46 AM, Mimiko <vbvbrj@gmail.com> wrote:
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.
On 09.09.2014 15:54, Michael Jerris wrote:
It all comes down to somehow saving the UUID of the leg. You can use the hash application using execute on bridge in the callcenter dial url to store it perhaps?
Yes its about storing uuid, but how to bind this to all bridges to extension? -- Mimiko desu.
participants (2)
-
Michael Jerris
-
Mimiko