<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Man thanks for digging deeper... </div><div><br></div><div>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.</div><div><br></div><div>The events after the invite show them populated as well. </div><div><br></div><div>I'm pretty sure the eavesdrop trigger happens before I can manually override them with dialplan on the incoming call to be targeted.</div><div><br></div><div>Happy to test any scenario you can further think of though.</div><div><br></div><div>Alex</div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757" dir="auto">Sent via the Samsung Galaxy Note8, an AT&T 4G LTE smartphone</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Michael Jerris <mike@jerris.com> </div><div>Date: 10/12/18  3:53 PM  (GMT-07:00) </div><div>To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> </div><div>Subject: Re: [Freeswitch-users] mod_spy, does it only work for registered users? </div><div><br></div></div>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.<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    username[0] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"Caller-Username"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                            </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    domain[0] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_domain_name"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                         </span></div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                                                                                                                                                </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    username[1] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_dialed_user"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                       </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    domain[1] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_dialed_domain"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                       </span></div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                                                                                                                                                </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    username[2] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_user_name"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                         </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    domain[2] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_domain_name"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                         </span></div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                                                                                                                                                </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    username[3] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_sip_to_user"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                       </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    domain[3] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_domain_name"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                         </span></div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                                                                                                                                                </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    username[4] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_verto_user"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                        </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    domain[4] = switch_event_get_header(event, </span><span style="font-variant-ligatures: no-common-ligatures; color: #999900" class="">"variable_verto_host"</span><span style="font-variant-ligatures: no-common-ligatures" class="">);                                                                                          </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">It has to match one of those pairs.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2018, at 6:24 PM, Alex Goulis <<a href="mailto:agoulis@opensips.org" class="">agoulis@opensips.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class=""><div class=""><div class="">Hi all...</div><div class=""><br class=""></div>Does the userspy application only target registered users or can you use it to spy calls to let's say calls to a DID?<div class=""><br class=""></div><div class=""><br class=""></div></div>_________________________________________________________________________<br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></div></body></html>