[Freeswitch-users] mod_spy, does it only work for registered users?

Alex Goulis agoulis at opensips.org
Sat Oct 27 19:39:46 UTC 2018


Ok... sorry for the delay in getting back to this... So I got it working by actually setting the variable_domain_name  and variable_user_name on both a and b legs. Those were not set automatically it seems, but once I set them it worked!!Thank you!!!!Sent via the Samsung Galaxy Note8, an AT&T 4G LTE smartphone
-------- Original message --------From: Michael Jerris <mike at jerris.com> Date: 10/14/18  4:36 PM  (GMT-06:00) To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> Subject: Re: [Freeswitch-users] mod_spy, does it only work for registered users? Can you show me exactly how you are overriding them in dialplan?  This should work.On Oct 12, 2018, at 6:40 PM, Alex Goulis <agoulis at opensips.org> wrote:Man thanks for digging deeper... unfortunately I have an identical match to Pairs 0-3 in my tests.   Ie, they all have the same user/domain in them. And they all match the user/domain I set when invoking userspy.The events after the invite show them populated as well. I'm pretty sure the eavesdrop trigger happens before I can manually override them with dialplan on the incoming call to be targeted.Happy to test any scenario you can further think of though.AlexSent via the Samsung Galaxy Note8, an AT&T 4G LTE smartphone-------- Original message --------From: Michael Jerris <mike at jerris.com> Date: 10/12/18  3:53 PM  (GMT-07:00) To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> Subject: Re: [Freeswitch-users] mod_spy, does it only work for registered users? After talking to you about this, I just took a look. No its not based on registered users, but authed users will probably more reliably set the right variables to figure out the right user to match to.  Trick is to have the vars set to be able to look them up.    username[0] = switch_event_get_header(event, "Caller-Username");                                                                                                domain[0] = switch_event_get_header(event, "variable_domain_name");                                                                                                                                                                                                                                                             username[1] = switch_event_get_header(event, "variable_dialed_user");                                                                                           domain[1] = switch_event_get_header(event, "variable_dialed_domain");                                                                                                                                                                                                                                                           username[2] = switch_event_get_header(event, "variable_user_name");                                                                                             domain[2] = switch_event_get_header(event, "variable_domain_name");                                                                                                                                                                                                                                                             username[3] = switch_event_get_header(event, "variable_sip_to_user");                                                                                           domain[3] = switch_event_get_header(event, "variable_domain_name");                                                                                                                                                                                                                                                             username[4] = switch_event_get_header(event, "variable_verto_user");                                                                                            domain[4] = switch_event_get_header(event, "variable_verto_host");                                                                                          It has to match one of those pairs.On Oct 5, 2018, at 6:24 PM, Alex Goulis <agoulis at opensips.org> wrote:Hi all...Does the userspy application only target registered users or can you use it to spy calls to let's say calls to a DID?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181027/aa184dfc/attachment-0001.html>


More information about the FreeSWITCH-users mailing list