[asterisk-bugs] [JIRA] (ASTERISK-28019) Crash in ast_format_get_sample_rate when play an audio

Cirillo (JIRA) noreply at issues.asterisk.org
Tue Aug 21 09:57:54 CDT 2018


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

Cirillo edited comment on ASTERISK-28019 at 8/21/18 9:57 AM:
-------------------------------------------------------------

My dialplan is basically this:

{code}
[ivr-felicitacao-avulso]
exten => 4012,1,Answer()
 same => n,Set(CHANNEL(hangup_handler_push)=handler-free-speech,s,1(args))

;; Inicia a gravação da ligação
 same => n,Macro(iniciar-gravacao,voise-${cctTelefone},F)

 same => n,SpeechCreate(voise)

(...)

 same => n(agendarparamaistarde),Log(DEBUG, ==> Processo AgendarParaMaisTarde)
 same => n,Macro(agendar-ligacao2,RL,3,123,2073,Sem resposta ou não foi possível entender a pessoa)
 same => n,Playback(./pt_BR/altrium/felicitacao/encerrar_aguedarmairtarde)
 same => n,Hangup()

(...)


[macro-iniciar-gravacao]
exten => s,1,Set(MONITOR_PATH=altriumrecorder/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)})
 same => n,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${ARG1}-${ARG2})
 same => n,MixMonitor(${MONITOR_PATH}/${MONITOR_FILENAME}.wav,)
 same => n,MacroExit

[handler-free-speech]
exten => s,1,GotoIf($["${IVRRESULT}" = ""]?2:3)
 same => 2,Macro(agendar-ligacao2,RL,3,123,2072,Ligação abandonada ${IVRSTEPNAME})
 same => 3,SpeechDestroy()
 same => 4,Return()
{code}

Ps: I also made a call using the local channel


was (Author: cirillor at lbv.org.br):
My dialplan is basically this:

{code}
[ivr-felicitacao-avulso]
exten => 4012,1,Answer()
 same => n,Set(CHANNEL(hangup_handler_push)=handler-free-speech,s,1(args))

;; Inicia a gravação da ligação
 same => n,Macro(iniciar-gravacao,voise-${cctTelefone},F)

 same => n,SpeechCreate(voise)

(...)

 same => n(agendarparamaistarde),Log(DEBUG, ==> Processo AgendarParaMaisTarde)
 same => n,Macro(agendar-ligacao2,RL,3,123,2073,Sem resposta ou não foi possível entender a pessoa)
 same => n,Playback(./pt_BR/altrium/felicitacao/encerrar_aguedarmairtarde)
 same => n,Hangup()

(...)


[macro-iniciar-gravacao]
exten => s,1,Set(MONITOR_PATH=altriumrecorder/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)})
 same => n,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${ARG1}-${ARG2})
 same => n,MixMonitor(${MONITOR_PATH}/${MONITOR_FILENAME}.wav,)
 same => n,MacroExit

[handler-free-speech]
exten => s,1,GotoIf($["${IVRRESULT}" = ""]?2:3)
 same => 2,Macro(agendar-ligacao2,RL,3,123,2072,Ligação abandonada ${IVRSTEPNAME})
 same => 3,SpeechDestroy()
 same => 4,Return()
{code}

> Crash in ast_format_get_sample_rate when play an audio
> ------------------------------------------------------
>
>                 Key: ASTERISK-28019
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28019
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_playback
>    Affects Versions: 13.22.0
>         Environment: > cat /proc/version
> Linux version 3.10.0-693.2.2.el7.x86_64 (builder at kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017
> > rasterisk -V
> Asterisk 13.22.0
>            Reporter: Cirillo
>            Assignee: Unassigned
>            Severity: Minor
>         Attachments: core.ANTIBES-2018-08-21T09-02-21-0300-brief.txt, core.ANTIBES-2018-08-21T09-02-21-0300-full.txt, core.ANTIBES-2018-08-21T09-02-21-0300-locks.txt, core.ANTIBES-2018-08-21T09-02-21-0300-thread1.txt, encerrar_aguedarmairtarde.wav, full
>
>
> Asterisk crashed in ast_format_get_sample_rate when try play an audio.
> I already tried use SLIN, GSM, G711 (A-law and mu-law) codecs and in all cases the crash occurs.
> Dialplan:
> (...)
> same => n,Playback(./pt_BR/altrium/felicitacao/encerrar_aguedarmairtarde)



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



More information about the asterisk-bugs mailing list