Summary: | ASTERISK-27297: ChanSpy attaching to wrong Channel with similar Name | ||
Reporter: | Michael Balen (aeinstein) | Labels: | |
Date Opened: | 2017-09-27 06:09:16 | Date Closed: | 2017-09-28 05:02:55 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Applications/app_chanspy |
Versions: | 13.16.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | PJSIP | Attachments: | |
Description: | ChanSpy attaching to Channel PJSIP/101 when request PJSIP/10 and 101 is on call. Only if all channels PJSIP/10* are not on call it connects to the right Channel.
When I request PJSIP/22 it connects for example to PJSIP/225 if there is a call. I think it takes the first matching channelname for the length of the requested channelname. more Examples 10 -> 105 24 -> 124 and so on. Executing [887PJSIP-10@diag:3] ChanSpy("PJSIP/livemonitor-0000d57d", "PJSIP/10,qd") in new stack == Spying on channel PJSIP/101-0000cbf2 [Sep 26 16:46:15] NOTICE[11729][C-000173d2]: app_chanspy.c:504 start_spying: Attaching PJSIP/livemonitor-0000d57d to PJSIP/101-0000cbf2 | ||
Comments: | By: Asterisk Team (asteriskteam) 2017-09-27 06:09:19.260-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Rusty Newton (rnewton) 2017-09-27 17:46:37.303-0500 I think it is behaving correctly by design: https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Application_ChanSpy Although it sounds like you are saying it may be acting like a substring search and not just a prefix match? By: Michael Balen (aeinstein) 2017-09-28 04:03:19.334-0500 Oops, you are right, sometimes it can be useful to read the fine manual ;-) Please close this..sorry |