[asterisk-bugs] [JIRA] (ASTERISK-27485) asterisk crashes when doing playback of a SLIN file and chanspy with eagi

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sun Dec 17 05:08:07 CST 2017


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

Asterisk Team commented on ASTERISK-27485:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> asterisk crashes when doing playback of a SLIN file and chanspy with eagi 
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-27485
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27485
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 14.5.0
>         Environment: Debian GNU/Linux 8 (jessie)
>            Reporter: Dror Wald
>
> I have a function playback_time_tts() which I use to play a sound file and during file playing I detect a stop word. 
> When I call this function with a SLIN wav file asterisk crashes. 
> When I convert the wav file to GSM it works.
> cotext main {
>   _X. => {
> Set(file_to_play1=${RAND(10000,999999)});
> Set(file_to_play2=${RAND(10000,999999)});
> Set(__file_to_play=${file_to_play1}${file_to_play2});
> // I call an AGI that create the wav SLIN file in tmp/${file_to_play}
> Gosub(playback_time_tts,_X.,1("/var/lib/asterisk/sounds/tmp/${file_to_play}"));
>   }
> }
> context detect_stop {
> 		_X. => {
> 				NoOp(In detect_stop context);
> 				Set(DB(${EXTEN}/p_chan)=${CHANNEL});
> 				Answer();
> 				Set(AGIEXITONHANGUP=yes);
> 				Set(AGISIGHUP=yes);
> 				Set(trigger_dictionary=detect_stop.list);
> 				EAGI(trigger_word_google.py);
> 				SIPDtmfMode(inband);
> 				sendDTMF(1,,80,${DB(${EXTEN}/p_source)});
> 				}
> 				Hangup();
> 		}
> 		h => {
>                 NoOp(In detect_stop Hangup context );
>         }
> }
> context playback_time_tts {
>         _X. => {
>                 NoOp(In playback_time_tts context tts_time=${tts_time} 
>                 file_to_play=${file_to_play} ARG1=${ARG1});
> 		Set(DB(${file_to_play}/p_source)=${CHANNEL});
> 		Set(DB(${file_to_play}/exited_playback)=false);
> 	Originate(local/${file_to_play}@detect_stop,app,ChanSpy,"${CHANNEL},qwoE");
> 		SIPDtmfMode(inband);
> 		ControlPlayback(${ARG1},,,,1);
> 		Set(DB(${file_to_play}/exited_playback)=true);
> 		SoftHangup(${DB(${file_to_play}/p_chan)});
> 		return;
>         }
>         h => {
>                 NoOp(In playback_time_tts Hangup context );
> 		SoftHangup(${DB(${file_to_play}/p_chan)});
>         }
> }



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



More information about the asterisk-bugs mailing list