[Sipsak] Preferences file for ommiting hostname and/or username and/or password in command line
Luc Deschenaux
luc.deschenaux.mta at sunrise.ch
Sat Jul 17 20:54:49 CEST 2010
Hello Nils,
I use sipsak to send SMS through voipdiscount, it works great thank you :-)
I don't like having the username and the password neither in the history
or the process list,
nor in my scripts or source files.
So i roughly patched sipsak.c to load those values from a file when
possible.
The format of the authentification file is:
<server> <login> <password>
The following syntax is now possible when running sipsak:
sipsak -M -B "Hello" -s sip:+01555555555@
(the first server/login/password in auth file is used.)
sipsak -M -B "Hello" -s sip:+01555555555 at sip.myserver.com
(the login/password matching server is used)
sipsak -M -B "Hello" -s sip:+01555555555 at sip.myserver.com -u login
(the password matching server/login is used)
Maybe you want to clean and adapt my patch for your requirements (OS
dependent auth file location, exit() and error handling, etc.) and
include it in a next release.
Regards,
:7üC:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sipsak.c.prefs_getAuth.patch
Type: text/x-patch
Size: 4256 bytes
Desc: not available
URL: <http://lists.sipsak.org/pipermail/sipsak/attachments/20100717/a538f117/attachment.bin>
More information about the Sipsak
mailing list