[asterisk-bugs] [JIRA] (ASTERISK-17283) ChannelRedirect hanging up a channel who is in a ChanSpy

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Mar 13 19:54:34 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-17283.
----------------------------------

    Resolution: Fixed

Well, at some point in time we fixed this :-)

Using Asterisk 11:

*Dialplan*
{noformat}
exten => waiter,1,NoOp()
 same => n,Answer()
 same => n,Echo()

exten => bridger,1,NoOp()
 same => n,Answer()
 same => n,Bridge(Local/waiter at default-00000000;2)
 same => n,Hangup()

exten => spy,1,NoOp()
 same => n,Answer()
 same => n,ChanSpy(Local/bridger at default-00000001;2,q)
 same => n,Hangup()

exten => redirect,1,NoOp()
 same => n,Wait(5)
 same => n,Echo()
{noformat}

*CLI commands*
{noformat}
*CLI> channel originate Local/waiter at default application MusicOnHold
*CLI> channel originate Local/bridger at default application MusicOnHold
*CLI> channel originate Local/spy at default application MusicOnHold
{noformat}

*AMI*
{noformat}
Action: Redirect
Channel: Local/spy at default-00000002;2
Context: default
Exten: redirect
Priority: 1
{noformat}

*CLI exeuction:*
{noformat}
*CLI> channel originate Local/waiter at default application MusicOnHold
    -- Executing [waiter at default:1] NoOp("Local/waiter at default-00000000;2", "") in new stack
    -- Executing [waiter at default:2] Answer("Local/waiter at default-00000000;2", "") in new stack
*CLI>     -- Launching MusicOnHold() on Local/waiter at default-00000000;1
    -- Started music on hold, class 'default', on Local/waiter at default-00000000;1
    -- Executing [waiter at default:3] Echo("Local/waiter at default-00000000;2", "") in new stack

*CLI> channel originate Local/bridger at default application MusicOnHold
    -- Executing [bridger at default:1] NoOp("Local/bridger at default-00000001;2", "") in new stack
    -- Executing [bridger at default:2] Answer("Local/bridger at default-00000001;2", "") in new stack
*CLI>     -- Launching MusicOnHold() on Local/bridger at default-00000001;1
    -- Started music on hold, class 'default', on Local/bridger at default-00000001;1
    -- Executing [bridger at default:3] Bridge("Local/bridger at default-00000001;2", "Local/waiter at default-00000000") in new stack
  == Spawn extension (default, waiter, 3) exited non-zero on 'Bridge/Local/waiter at default-00000000;2<ZOMBIE>'

*CLI> channel originate Local/spy at default application MusicOnHold
    -- Executing [spy at default:1] NoOp("Local/spy at default-00000002;2", "") in new stack
    -- Executing [spy at default:2] Answer("Local/spy at default-00000002;2", "") in new stack
*CLI>     -- Launching MusicOnHold() on Local/spy at default-00000002;1
    -- Started music on hold, class 'default', on Local/spy at default-00000002;1
    -- Executing [spy at default:3] ChanSpy("Local/spy at default-00000002;2", "Local/bridger at default-00000001") in new stack
    -- <Local/spy at default-00000002;2> Playing 'beep.gsm' (language 'en')

*CLI>   == Manager 'asterisk' logged on from 127.0.0.1
  == Spawn extension (default, redirect, 1) exited non-zero on 'Local/spy at default-00000002;2'
    -- Executing [redirect at default:1] NoOp("Local/spy at default-00000002;2", "") in new stack
    -- Executing [redirect at default:2] Wait("Local/spy at default-00000002;2", "5") in new stack
    -- Executing [redirect at default:3] Echo("Local/spy at default-00000002;2", "") in new stack

{noformat}

> ChannelRedirect hanging up a channel who is in a ChanSpy
> --------------------------------------------------------
>
>                 Key: ASTERISK-17283
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17283
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Applications/app_channelredirect
>            Reporter: Tanguy CHAPRON
>            Severity: Minor
>
> # User B is bridge with User A.
> # User C start ChanSpy on the A channel.
> # Let's doing a redirection of the Channel C with manager command (Action: Redirect), CLI command (channel redirect) or Application (ChannelRedirect).
> => The channel stop to spying but, just before go in the context,extension,priority specified, the call end.
> *ADDITIONAL INFORMATION*
> {noformat}
> Static situation with the ChanSpy
> Asterisk*CLI> core show channels verbose 
> Channel              Context              Extension        Prio State   Application  Data                      CallerID        Duration Accountcode PeerAccount BridgedTo           
> SIP/102-0000000e     appelant             630                34 Up      ChanSpy      SIP/201-0000000d,q        892000000       00:00:23                         (None)              
> SIP/201-0000000d     medium               630                27 Up      Bridge       SIP/101-0000000c,Hh       892000000       00:08:12                         SIP/101-0000000c    
> SIP/101-0000000c     mise-en-conf         630                 3 Up      (None)       (None)                    892000000       00:08:16                         SIP/201-0000000d    
> 3 active channels
> 2 active calls
> {noformat}
> So let's doing a redirection of the channel SIP/102-00000008 with the diaplan application ChannelRedirect :
> {noformat}
> [Jan 25 17:24:39] VERBOSE[2880] pbx.c:     -- Executing [630 at medium:25] ChannelRedirect("SIP/201-0000000d", "SIP/102-0000000e,mise-en-conf,630,1") in new stack
> [Jan 25 17:24:39] DEBUG[2880] channel.c: Soft-Hanging up channel 'SIP/102-0000000e'
> {noformat}
> The channel is Hung up :(



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list