From luc.deschenaux.mta at sunrise.ch Sat Jul 17 20:54:49 2010 From: luc.deschenaux.mta at sunrise.ch (Luc Deschenaux) Date: Sat, 17 Jul 2010 20:54:49 +0200 Subject: [Sipsak] Preferences file for ommiting hostname and/or username and/or password in command line Message-ID: <4C41FC79.8040604@sunrise.ch> 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: 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: