[asterisk-bugs] [Asterisk 0018049]: Chanspy using spy groups not getting audio from calls placed to a queue using local channel
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Sep 27 14:47:53 CDT 2010
The following issue has been UPDATED.
======================================================================
https://issues.asterisk.org/view.php?id=18049
======================================================================
Reported By: esmola
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18049
Category: Applications/app_chanspy
Reproducibility: sometimes
Severity: minor
Priority: normal
Status: acknowledged
Asterisk Version: 1.4.37-rc1
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-09-24 12:54 CDT
Last Modified: 2010-09-27 14:47 CDT
======================================================================
Summary: Chanspy using spy groups not getting audio from
calls placed to a queue using local channel
Description:
There is a queue member 650 which is added as a member to the queue
"vlcn_group_777" by inserting into the queue_member_table RealTime table.
INSERT INTO queue_member_table (context,queue_name, interface) VALUES
('vlcn', 'vlcn_group_777', 'Local/650 at vlcn_group_777_agents')
A call is then placed and routed to that Queue:
vlcn_group_777, s, 1, Queue(vlcn_group_777|nr|||20)
vlcn_group_777, s, 2, GoTo(vlcn_aa_Main|s|1)
The Queue() application sends the call to the queue member at the Local/
interface:
vlcn_group_777_agents, _X., 1, Set(SBC_HOST=)
vlcn_group_777_agents, _X., 2,
Set(__SPYGROUP=${SPYGROUP}:sip${EXTEN}_vlcn)
vlcn_group_777_agents, _X., 3, Dial(SIP/sip${EXTEN}_vlcn${SBC_HOST})
You see that above, we set __SPYGROUP for this party so that another user
may be able to ChanSpy() on them without knowing their actual SIP/ channel
Next, another user attempts to spy on the extension 650 taking the queue
call above:
vlcn_listenlive, _XXX, 1,
Gosub(vlcn_listenlive_listener_whitelist|${CALLERID(num)}|1)
vlcn_listenlive, _XXX, 2,
Gosub(vlcn_listenlive_listenee_whitelist|${EXTEN}|1)
vlcn_listenlive, _XXX, 3, Authenticate(123456)
vlcn_listenlive, _XXX, 4, Set(GROUP()=vlcn_ll_${EXTEN})
vlcn_listenlive, _XXX, 5, GotoIf($[${GROUP_COUNT(vlcn_ll_${EXTEN})} >
1]?vlcn_listenlive_mutex|s|1)
vlcn_listenlive, _XXX, 6, Wait(1)
vlcn_listenlive, _XXX, 7, ChanSpy(|qv(4)g(sip${EXTEN}_vlcn))
vlcn_listenlive, _XXX, 8, Hangup()
Note that we use the g() option for ChanSpy().
Result: No audio is heard by the Spying party.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-09-27 14:47 lmadsen Description Updated
2010-09-27 14:47 lmadsen Additional Information Updated
======================================================================
More information about the asterisk-bugs
mailing list