[Asterisk-code-review] app_milliwatt: Timing fix (asterisk[master])

N A asteriskteam at digium.com
Thu Aug 12 16:04:31 CDT 2021


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16238 )


Change subject: app_milliwatt: Timing fix
......................................................................

app_milliwatt: Timing fix

The Milliwatt application uses incorrect tone timings
that cause it to play the 1004 Hz tone constantly.
This is corrected so that it incorporates the proper
1s silent interval every 9s, so that it behaves like
a real milliwatt test line.

ASTERISK-29575 #close

Change-Id: I73ccc6c6fcaa31931c6fff3b85ad1805b2ce9d8c
---
M apps/app_milliwatt.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/16238/1

diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c
index 64513fe..772b911 100644
--- a/apps/app_milliwatt.c
+++ b/apps/app_milliwatt.c
@@ -156,7 +156,7 @@
 		return old_milliwatt_exec(chan);
 	}
 
-	res = ast_playtones_start(chan, 23255, "1004/1000", 0);
+	res = ast_playtones_start(chan, 23255, "1004/9000,0/1000", 0);
 
 	while (!res) {
 		res = ast_safe_sleep(chan, 10000);

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16238
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I73ccc6c6fcaa31931c6fff3b85ad1805b2ce9d8c
Gerrit-Change-Number: 16238
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210812/01fa46f3/attachment.html>


More information about the asterisk-code-review mailing list