I would like to configure the ChanSpy application to only spy in a single extension, instead of a extension prefix as the documentation states:
If the chanprefix
parameter is specified, only channels beginning with this string will be spied upon.
ChanSpy([chanprefix,[options]])
B.19. ChanSpy()
Application_ChanSpy - Asterisk Project - Asterisk Project Wiki
For example, with the following, I can spy on all channels as 10
, 101
, 102
, … How can I limit it to spy only on the channel 10, not all channels starting with 10 on their name?
exten => 2,ChanSpy(SIP/10 ,bq)
Related threads
Hey guys, I really need help about to use ChanSpy with g option, in help of this commando i get:
g(grp): Match only channels where their ${SPYGROUP} variable is set to contain ‘grp’ in an optional : delimited list.
In my mind, it´s means that I put strings for SPYGROUP variable it will scan channels that contains this strings, example:
ChanSpy(SIP|g(person1)), this command means that will scan SIP channels that contains the “person1” string? It´s look like to say that exists the user SIP/per…
Hi,
I’m trying to pass user-user information from a PRI call setup to a SIP INVITE, and vice versa (Probably I will add the info to the SDP).
I confirmed that the information is available on the libpri, and I believe it is also available on the chan_zap but have not yet confirmed this last point at runtime.
My question is how I can pass this information on a bridged call from the Zap channel to the SIP channel. What mechanisms are available on Asterisk to do this kind of things?
Thanks in ad…
You could try using the ‘e’ option to restrict to a list.
1 Like
Can you show an example of the syntax?
I think it should be as simple as
ChanSpy(SIP/10,bqe(SIP/10))
1 Like
Thanks, I figured out it also work without adding the prefix and added the E option to hang up the channel once the eavesdropped call has ended.
exten => 1,1,ChanSpy(,Ebqe(SIP/10))
Related solutions
http://forums.asterisk.org/viewtopic.php?f=1&t=78922
Hi, I want to spy on a specific channel. I have dialplan like this -
[ctx]
exten => 10,1,Dial(SIP/34@somedomain.com )
exten => 11,1,Dial(SIP/56@somedomain.com )
exten => 12,1,ChanSpy(DONTKNOW)
so calls to extension 10 is bridged with ‘34@somedomain.com ’ and calls to extension 11 is bridged with ‘56@somedomain.com ’.
When i call extension 12 i would like to spy on calls to ‘56@somedomain.com ’.
To do so, what should be the line -
exten => 12,1,ChanSpy(SIP/56@somedomain.com )
or
exten => 12,…
Hello there, can anyone tell me if its possible to prevent Chanspy from listening in on certain extensions?
I'd like to grant access to someone to be able to listen to a team of callers, but would like to prevent the person listening in on the...
Hi, Our Sales Manager need to listen to calls from his phone (of course he don’t have access to the command line). I’m not sure if ChanSpy is the right tool for him, because when I tried to use it, it didn’t let me choose to which extension to...
Related threads
For reference, I am going to post all topics I found about this problem:
Hi,
I’m trying to pass user-user information from a PRI call setup to a SIP INVITE, and vice versa (Probably I will add the info to the SDP).
I confirmed that the information is available on the libpri, and I believe it is also available on the chan_zap but have not yet confirmed this last point at runtime.
My question is how I can pass this information on a bridged call from the Zap channel to the SIP channel. What mechanisms are available on Asterisk to do this kind of things?
Thanks in ad…
Hey guys, I really need help about to use ChanSpy with g option, in help of this commando i get:
g(grp): Match only channels where their ${SPYGROUP} variable is set to contain ‘grp’ in an optional : delimited list.
In my mind, it´s means that I put strings for SPYGROUP variable it will scan channels that contains this strings, example:
ChanSpy(SIP|g(person1)), this command means that will scan SIP channels that contains the “person1” string? It´s look like to say that exists the user SIP/per…
https://blogs.asterisk.org/2016/02/10/converting-from-chan_agent-to-app_agent_pool/
http://the-asterisk-book.com/1.6/applikationen-chanspy.html
https://wiki.asterisk.org/wiki/display/AST/Application_ChanSpy
http://forums.asterisk.org/viewtopic.php?f=1&t=96037
system
closed
September 4, 2019, 8:40pm
#6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.