Re: [Freeswitch-users] Spy a call
I want to spy on the user as the incoming call may be coming from SIP trunk or could be coming from PSTN From: Abaci B <abaci64@gmail.com <mailto:abaci64@gmail.com>> Subject: Re: [Freeswitch-users] Spy a call Date: March 29, 2016 at 5:40:43 PM GMT+3 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> why don't you spy based on the uuid of the aleg? On Tue, Mar 29, 2016 at 10:15 AM, Ahmed habiba <ahabiba@gmail.com <mailto:ahabiba@gmail.com>> wrote: Hi, I have an issue where I want to spy on a call to agent considering that the call was not direct to the agent it is to a short code which then try to bridge to a hunt group any of them can catch the call I.e a call to 5005 in extension definition it try to bridge to user/1000,user/2000,user/3000 Any of the agents can catch the call and because eavesdrop depend on uuid stored in some hash map it is not working as in my scenario I don't know before issuing the bridge who will catch the call and accordingly I can not use it as a hash key for the uuid I used userspy but it work only if I was spying before the call start Any idea will be appreciated. Thanks, Ahmed Habiba. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
you can either spy on the call based on the uuid of the a leg (save it in hash or db) or if you want to spy based on a specific user you can try something execute_on_answer to sabe the call to the users hash On Tue, Mar 29, 2016 at 11:03 AM, Ahmed habiba <ahabiba@gmail.com> wrote:
I want to spy on the user as the incoming call may be coming from SIP trunk or could be coming from PSTN
*From: *Abaci B <abaci64@gmail.com> *Subject: **Re: [Freeswitch-users] Spy a call* *Date: *March 29, 2016 at 5:40:43 PM GMT+3 *To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Reply-To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
why don't you spy based on the uuid of the aleg?
On Tue, Mar 29, 2016 at 10:15 AM, Ahmed habiba <ahabiba@gmail.com> wrote:
Hi,
I have an issue where I want to spy on a call to agent considering that the call was not direct to the agent it is to a short code which then try to bridge to a hunt group any of them can catch the call
I.e a call to 5005 in extension definition it try to bridge to user/1000,user/2000,user/3000
Any of the agents can catch the call and because eavesdrop depend on uuid stored in some hash map it is not working as in my scenario I don't know before issuing the bridge who will catch the call and accordingly I can not use it as a hash key for the uuid
I used userspy but it work only if I was spying before the call start
Any idea will be appreciated.
Thanks,
Ahmed Habiba.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Abaci B
-
Ahmed habiba