mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add ability to see if the person calling said anything or not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -368,6 +368,7 @@ static int speech_background(struct ast_channel *chan, void *data) | ||||
| 				} else { | ||||
| 					time(¤t); | ||||
| 					if ((current-start) >= timeout) { | ||||
| 						pbx_builtin_setvar_helper(chan, "SILENCE", "1"); | ||||
| 						done = 1; | ||||
| 						break; | ||||
| 					} | ||||
| @@ -398,6 +399,7 @@ static int speech_background(struct ast_channel *chan, void *data) | ||||
| 		case AST_SPEECH_STATE_DONE: | ||||
| 			/* Assume there will be no results by default */ | ||||
| 			pbx_builtin_setvar_helper(chan, "RESULTS", "0"); | ||||
| 			pbx_builtin_setvar_helper(chan, "SILENCE", "0"); | ||||
| 			/* Decoding is done and over... see if we have results */ | ||||
| 			results = ast_speech_results_get(speech); | ||||
| 			if (results != NULL) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user