[asterisk-bugs] [JIRA] (ASTERISK-22661) Unable to exit ChanSpy if spied channel does not have a call in progress

Michael L. Young (JIRA) noreply at issues.asterisk.org
Wed Oct 23 13:30:05 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211166#comment-211166 ] 

Michael L. Young commented on ASTERISK-22661:
---------------------------------------------

Chris,

I just played around with this and it seems that you might want to use the "S" option OR the "X" option.

What is happening is that when you dial in and the sip device that you choose to spy on is not on a call, we never enter into the part of the code that handles spying on a channel and responding to DTMF commands.  That part of the code is what responds to the DTMF digit set for exiting.  Since, you never enter that part of the code, the # DTMF is being received by Asterisk but nothing is being done because there is nothing is running to react to that digit.

With the "S" option in place, if the channel you are trying to spy on is not active, it will immediately kick you out and then your StartMenu label is used, asking for an extension again.

OR

With the "X" option, you can add to the context "[custom-myspy]" the extension "exten => #,1,Goto(456,StartMenu)". That also seems to produce the desired results.

Otherwise, I am not sure if there is a bug here... this is one of those areas where a workaround is available and the code seems to be working as it was intended.  Could it be improved upon?  Probably.  But for now, this configuration change seems to be the way to resolve your issue.
                
> Unable to exit ChanSpy if spied channel does not have a call in progress
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-22661
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22661
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_chanspy
>    Affects Versions: 1.8.23.1
>         Environment: Running Asterisk Version = 1.8.23.1  on CentOS release 6.4 Kernel  2.6.32-358.6.2.el6.i686 - 32 Bit 
>            Reporter: Chris Hillman
>            Assignee: Chris Hillman
>         Attachments: debug_output.txt, dialplan_example.txt, issue_22661_full_log
>
>
> I have a context in the dialplan where I want to be able to ChanSpy on SIP/361-SIP/364, and use the 'x' option to exit the ChanSpy application and select a new Channel to spy on. If the Channel I'm spying on is not in a call I can not exit the ChanSpy application.
> I have attached my dialplan code as well as console verbose output and SIP debug info.
> Option I'm trying to use:
>     x(digit):
>     digit - Specify a DTMF digit that can be used to exit the application.
> The digit will not be recognized if the spied party is not in a call at the time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list