[asterisk-bugs] [JIRA] (ASTERISK-29204) Directory Application doesn't immedietly accept selection

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Dec 8 14:41:16 CST 2020


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

Asterisk Team commented on ASTERISK-29204:
------------------------------------------

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. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

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].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

> Directory Application doesn't immedietly accept selection
> ---------------------------------------------------------
>
>                 Key: ASTERISK-29204
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29204
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_directory
>    Affects Versions: 13.38.0, 18.1.0
>            Reporter: Michael
>            Severity: Minor
>
> When using the Directory app with options:
> - 'm' to select from menu
> - 'e' also read the extension number to the caller
> When pressing a digit to select, while hearing the recorded name or character by character, the selection is not accepted because it just goes on to playing the extension due to option 'e'.
> suggestion patch:
> --- apps/app_directory.c.old	2020-11-19 07:39:40.000000000 -0500
> +++ apps/app_directory.c	2020-12-08 15:37:29.118784496 -0500
> @@ -296,13 +296,20 @@ static int play_mailbox_owner(struct ast
>  	if (res >= 0) {
>  		ast_stopstream(chan);
>  		/* If Option 'e' was specified, also read the extension number with the name */
> -		if (ast_test_flag(flags, OPT_SAYEXTENSION)) {
> +		if (res > 0 && ast_test_flag(flags, OPT_SAYEXTENSION)) {
>  			ast_stream_and_wait(chan, "vm-extension", AST_DIGIT_ANY);
> -			res = ast_say_character_str(chan, ext, AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
> +			ast_say_character_str(chan, ext, AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
> +		} else {
> +			ast_stream_and_wait(chan, "vm-extension", AST_DIGIT_ANY);
> +			ast_say_character_str(chan, ext, AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
>  		}
>  	} else {
>  		res = ast_say_character_str(chan, S_OR(name, ext), AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
> -		if (!ast_strlen_zero(name) && ast_test_flag(flags, OPT_SAYEXTENSION)) {
> +		/* If Option 'e' was specified, also read the extension number with the name */
> +		if (res > 0 && !ast_strlen_zero(name) && ast_test_flag(flags, OPT_SAYEXTENSION)) {
> +			ast_stream_and_wait(chan, "vm-extension", AST_DIGIT_ANY);
> +			ast_say_character_str(chan, ext, AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
> +		} else {
>  			ast_stream_and_wait(chan, "vm-extension", AST_DIGIT_ANY);
>  			res = ast_say_character_str(chan, ext, AST_DIGIT_ANY, ast_channel_language(chan), AST_SAY_CASE_NONE);
>  		}



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



More information about the asterisk-bugs mailing list