diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-09 22:18:32 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-09 22:18:32 -0400 |
commit | 99bc78fc15931ce0ad8cd252ef1b3725e6ffa3aa (patch) | |
tree | 83e93830de399761b920ee98ccfacfbe8871f8c2 /soxdial | |
parent | 91e301642454c5d5d0999b2631c91dfd716b2c98 (diff) | |
download | misc-scripts-99bc78fc15931ce0ad8cd252ef1b3725e6ffa3aa.tar.gz |
soxdial: rearrange some warnings.
Diffstat (limited to 'soxdial')
-rwxr-xr-x | soxdial | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)$/) { |