[asterisk-bugs] [JIRA] Commented: (ASTERISK-20188) Don't stop ChanSpy/Record after call hangup/silence

Michael L. Young (JIRA) noreply at issues.asterisk.org
Thu Aug 2 10:29:21 CDT 2012


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

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

First off, it would make better sense to try raising your questions either on IRC, the asterisk-users mailing list or the forum that is available, http://www.asterisk.org/support.  The issue tracker is not for general support.  If a bug is then discovered after determining that it is not a configuration problem, then feel free to open a bug report.

Right off the bat, I see that you have some configuration issues.  Not sure if that is causing the 120 second silence problem or not.

{noformat}
exten => check,n,Record(${file}:wav,120,,q)
{noformat}

Notice the ":" before the file format?  That should be a period, ".".

{noformat}
exten => check,n,Record(${file}.wav,120,,q)
{noformat}

As far as ChanSpy, the "S" option according to docs says "S: Stop when no more channels are left to spy on.".  Well, there is still a channel left... the channel doing the recording.  Therefore, I have a feeling that ChanSpy will not stop until the other channel hangs up or exits.

> Don't stop ChanSpy/Record after call hangup/silence
> ---------------------------------------------------
>
>                 Key: ASTERISK-20188
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20188
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_chanspy, Applications/app_record
>            Reporter: Alexandr Gordeev
>         Attachments: 20120802_full.log.txt, check_for_lost_call.php.txt
>
>
> My dialplan :
> [check-for-lost-call]
> exten => connect,1,Noop(Connect to channel "${check_channel}")
> exten => connect,n,ChanSpy(${check_channel},qoS)
> exten => connect,n,Hangup
> exten => check,1,Noop(Check channel ${check_channel})
> exten => check,n,Record(${file}:wav,120,,q)
> exten => check,n,System(/usr/local/scripts/asterisk/check_for_lost_call.php disconnect "${check_channel}" "${file}.wav")
> exten => check,n,Hangup
> [from-gag-to-pes]
> exten => _X.,1,Noop(Call from "${CALLERID(all)}" to "${EXTEN}")
> exten => _X.,n,Set(GROUP()=${CALLERID(num)})
> exten => _X.,n,System(/usr/local/scripts/asterisk/check_for_lost_call.php connect "${CHANNEL}")
> exten => _X.,n,Set(route=${FILTER(0123456789,${EXTEN})})
> exten => _X.,n,Dial(${ASTBOX}/${route})
> exten => _X.,n,Hangup
> In some cases after end of call , I see that in "core show channels" show two channel with ChanSpy and Record.
> I have two question :
> 1) Why Record don't stop after 120 seconds of silence ?
> 2) Why ChanSpy don't stop after call hangup ?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list