aboutsummaryrefslogtreecommitdiff
path: root/soxdial
diff options
context:
space:
mode:
Diffstat (limited to 'soxdial')
-rwxr-xr-xsoxdial8
1 files changed, 4 insertions, 4 deletions
diff --git a/soxdial b/soxdial
index 9c8659e..345738a 100755
--- a/soxdial
+++ b/soxdial
@@ -525,12 +525,12 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
die "$SELF: can't change bitrate after a dial string.\n";
}
$rate = parse_rate($ARGV[++$argc]);
- warn "$SELF: bitrate set to '$rate'\n" if $verbose;
die "$SELF: invalid bitrate.\n" unless $rate > 0;
+ warn "$SELF: bitrate set to '$rate'\n" if $verbose;
} elsif(/^--?l(?:ength)?$/) {
$digittime = parse_sec($ARGV[++$argc]);
- warn "$SELF: digit length set to '$digittime'\n" if $verbose;
die "$SELF: invalid --length argument.\n" unless $digittime > 0;
+ warn "$SELF: digit length set to '$digittime'\n" if $verbose;
} elsif(/^--?(?:x|extended)$/) {
$extended = 1;
warn "$SELF: extended DTMF (ABCD) enabled.\n" if $verbose;
@@ -539,12 +539,12 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
warn "$SELF: extended DTMF (ABCD) disabled.\n" if $verbose;
} elsif(/^--?d(?:elay)?$/) {
$intertime = parse_sec($ARGV[++$argc]);
- warn "$SELF: inter-digit delay set to '$intertime'\n" if $verbose;
die "$SELF: invalid --delay argument.\n" unless $intertime > 0;
+ warn "$SELF: inter-digit delay set to '$intertime'\n" if $verbose;
} elsif(/^--?c(?:omma)?$/) {
$pausetime = parse_sec($ARGV[++$argc]);
- warn "$SELF: comma delay set to '$pausetime'\n" if $verbose;
die "$SELF: invalid --comma argument.\n" unless $pausetime > 0;
+ warn "$SELF: comma delay set to '$pausetime'\n" if $verbose;
} elsif(/^--?(?:D|dialtone-type)$/) {
set_dialtone_type($ARGV[++$argc]);
} elsif(/^--?(?:t|dialtone)$/) {