[asterisk-bugs] [JIRA] (ASTERISK-30457) res_agi: RECORD FILE plays 2 beeps

Sean Bright (JIRA) noreply at issues.asterisk.org
Wed Mar 8 07:44:03 CST 2023


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-30457:
-----------------------------------

    Reference Notes: issue present since Asterisk 0.3.0 (21 years ago)  (was: issue present at least since version 13)

> res_agi: RECORD FILE plays 2 beeps
> ----------------------------------
>
>                 Key: ASTERISK-30457
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30457
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_agi
>    Affects Versions: 20.1.0
>            Reporter: Alain Lachapelle
>
> AGI record file usage
> RECORD FILE FILENAME FORMAT ESCAPE_DIGITS TIMEOUT OFFSET_SAMPLES BEEP s=SILENCE 
> 2 beeps are played when not using param OFFSET_SAMPLES as in 
> RECORD FILE dummy .wav # 30000 BEEP s=3
> res_agi.c/
> handle_recordfile
> ...
> 	if ((argc >6) && (sscanf(argv[6], "%30ld", &sample_offset) != 1) && (!strchr(argv[6], '=')))
> 		res = ast_streamfile(chan, "beep", ast_channel_language(chan));
> 	if ((argc > 7) && (!strchr(argv[7], '=')))
> 		res = ast_streamfile(chan, "beep", ast_channel_language(chan));



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



More information about the asterisk-bugs mailing list