Re: how to tts

Daniele Forsi <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <CAN_we7PEP+NjToroECrvE5gpshS5Vu4ay5AcMXSeEcAAa3qXVw@mail.gmail.com>
I wrote:

> hm, the support for TP-Validity-Period is broken in gnokii

I just committed a fix and you can use gnokii --sendsms --validity 5
PHONE-NUMBER

Franco, can you test it?
you'll need to compile the sources from GIT, for instructions see
http://gnokii.org/git.shtml

the fix converts the user provided value instead of using a constant:
-       rawsms->validity[0] = GN_SMS_VP_72H;
+       rawsms->validity[0] = minutes2validity(sms->validity);
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=ea4ea9811ad12b741c5fef3d11d3300f4c8b5efa

the default value is set as before (meaning 72 hours) in another
function and at this time this can be changed only when using gnokii
so smsd and xgnokii will use the default value

I have some code to check user provided values and to inform the user
of wrong values and to change the fake driver and the tests to handle
--validity, but it needs more work

-- 
Daniele Forsi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.