changed voicemail to dat2

pull/14/head
Tom Early 7 years ago
parent 2286739c98
commit 866f4f6d18

@ -67,12 +67,17 @@ easily create your own!
To make your own .dat voice file file, just put " S0" in your radio's To make your own .dat voice file file, just put " S0" in your radio's
YourCall and key up and talk. You will be making a "voice mail" .dat file: YourCall and key up and talk. You will be making a "voice mail" .dat file:
/tmp/X_voicemail.dat, where X is the module on which you are transmitting. /tmp/X_voicemail.dat2, where X is the module on which you are transmitting.
Once you have created it, you can move it out of the /tmp directory and Once you have created a voicemail file, you can move it out of the /tmp
rename it. Then you can use it in a qnvoice command. You can also replace directory and rename it, but if you want to use it in a qnvoice command,
all of the standard voice messages with your own. If you want to do this you need to strip off the first 56 bytes. You can do this with the command:
put your versions in a directory outside of the build directory and make
a small script that will copy your messages over the existing, installed tail -c +56 /tmp/X_voicemail.dat2 > mynewvoiceprompt.dat
Then you can use it in a qnvoice command. You can also replace all of the
standard voice messages with your own. If you want to do this put your
versions in a directory outside of the build directory and make a small
script that will copy your messages over the existing, installed
messages: messages:
#!/bin/bash #!/bin/bash

@ -52,12 +52,12 @@ YRCALL=_ _ _ _ _ _ _E
For Voice Mail: For Voice Mail:
YRCALL=_ _ _ _ _ _ S0 YRCALL=_ _ _ _ _ _ S0
The above command will Store/create voice mail in a proprietary file The above command will Store/create voice mail in a proprietary file
x_voicemail.dat. x_voicemail.dat2.
YRCALL=_ _ _ _ _ _ R0 YRCALL=_ _ _ _ _ _ R0
The above command will Recall/playback voice mail from the recorded file The above command will Recall/playback voice mail from the recorded file
x_voicemail.dat. x_voicemail.dat2.
YRCALL=_ _ _ _ _ _ C0 YRCALL=_ _ _ _ _ _ C0
The above command will Clear/delete voice mail. File x_voicemail.dat will be The above command will Clear/delete voice mail. File x_voicemail.dat2 will be
deleted. In all cases, the letter x in the file name x_voicemail is the deleted. In all cases, the letter x in the file name x_voicemail is the
module A,B or C. module A,B or C.
@ -235,9 +235,13 @@ the audio: "This is repeater ...". A simple way to create your own
recorded "repeater identification file" id.dat is to use your Dstar HT recorded "repeater identification file" id.dat is to use your Dstar HT
and set YRCALL command: YRCALL=______S0 and key up your repeater. and set YRCALL command: YRCALL=______S0 and key up your repeater.
Start talking, and the gateway will record your audio into the file Start talking, and the gateway will record your audio into the file
x_voicemail.dat where x is one of A.B or C. Now copy that file: x_voicemail.dat2 where x is one of A.B or C. Now copy that file:
sudo cp -f /tmp/C_voicemail.dat /usr/local/etc/it.dat
sudo tail -c +56 /tmp/C_voicemail.dat2 > /usr/local/etc/id.dat
See the DTMF+REMOTE+VOICE.README for more information.
============
You may be thinking why did we put all this source code inside QnetLink You may be thinking why did we put all this source code inside QnetLink
instead of putting it all inside the Gateway software QnetGateway. instead of putting it all inside the Gateway software QnetGateway.
Having divided the functionality produces a smaller memory and resource Having divided the functionality produces a smaller memory and resource

@ -1587,7 +1587,7 @@ void CQnetGateway::ProcessModem()
printf("Already recording for voicemail on mod %d\n", i); printf("Already recording for voicemail on mod %d\n", i);
else { else {
memset(tempfile, '\0', sizeof(tempfile)); memset(tempfile, '\0', sizeof(tempfile));
snprintf(tempfile, FILENAME_MAX, "%s/%c_%s", FILE_ECHOTEST.c_str(), dsvt.hdr.rpt1[7], "voicemail.dat"); snprintf(tempfile, FILENAME_MAX, "%s/%c_%s", FILE_ECHOTEST.c_str(), dsvt.hdr.rpt1[7], "voicemail.dat2");
vm[i].fd = open(tempfile, O_CREAT | O_WRONLY | O_TRUNC | O_APPEND, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); vm[i].fd = open(tempfile, O_CREAT | O_WRONLY | O_TRUNC | O_APPEND, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (vm[i].fd < 0) if (vm[i].fd < 0)

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2018,2019 by Thomas Early N7TAE * Copyright (C) 2018-2019 by Thomas Early N7TAE
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

@ -1,6 +1,6 @@
#pragma once #pragma once
/* /*
* Copyright 2018 by Thomas Early, N7TAE * Copyright 2018-2019 by Thomas Early, N7TAE
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save

Powered by TurnKey Linux.