To anyone who uses or is interested in using linphonec, the commandline interface to linphone

13 views
Skip to first unread message

B. Henry

unread,
Jun 16, 2016, 3:32:19 PM6/16/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
Anyone who uses linphone who has not tried the interactive CLI, linphonec should do so.
The linux GUI is certainly accessible, but I've found most command actions are easier from the CLI.
That being said, it is missing some functionality it should have and that would probably be quite easy to add to the main code. I'm talking about
command history management for now. Your history grows for ever as it is, and is not filtered in any way, and there are no options to do so.
I first wrote a simple script that used sed to clean up one and two character commands and removed repetitions.
Then I thought to make things easier on folks not familiar with linphonec's infrastructure I'd add a menu to open the history file for editing to add and
remove entires. I also wanted some commands to always be in the same place for faster access,and started workikng on a script to do this and a few other
things. I have used the basic script for a year or more, the cleanup twice that long I think.
Yesterday I got around to finishing some things that I didn't personally need so much, but that could be helpful to many users.
It is ready for public consumption, or at least I think it is.
Backups are made, so you won't lose anything even if something does not work as expected.
I've yet to make any kind of installer, nor written a manpage, but this and more will be coming.
As things are lpclic will work on any Linux distro unless someone has done something odd for their distro that changes the path for the linphonec_history
file. This is not the case on Arch, Debian, Manjaro based distros or Ubuntu/Vinux.
As things stand you get an optimized command history with favorite commands at the top, a cleaned up alphabetically sorted list of all commands you have
run except for 1 or 2 character commands like when you enter a number in a automated system, and at the bottom if you wish you get the last ten called
numbers with some duplication removed in the order the calls were made. Calls to IPs or sip handles are also included in that appended calls list. Some
typos are also removed, and I hope to improve this function to catch other common input errors.
If anyone wishes to try this, please contact me. Your testing will be appreciated, but I'm pretty sure things will work for you with out hassles or
unexpected results, and nothing will be broken no matter what.
Eventually I hope ti integrade some of this in to the linphonec interface itself, but this is going to be a learning process for me, and I don't have time
to give to this major step right now. Somethings are probably best left in a seperate script/interface anyway, so I'm sharing as is.
This is a work in progress, i.e. there will be enhancements coming, and one feature is not yet implemented although it appears in the configuration menu, a
command history length limit.
Write me on or off list with questions, or to get a copy of the script and it's configuration file.
To install as is you only need to make one directory and copy three files in to place.
There is a help message that explains the available commandline options, all quite simpole, and configuration is menu driven.
After the first run typing lpclic launches the linphonec interface, but with an optimized command history. You can launch at anytime with out a new
optimization of the command history if you wish as well.
Of course suggestions for changes and or enhancements are welcomed.
Thanks for reading.



--
B.H.
Registerd Linux User 521886

B. Henry

unread,
Jun 16, 2016, 3:42:49 PM6/16/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
One more thing, you can run linphone on a CLI-only OS unlike skype and most VOIP software I am aware of.
All you need is alsa and working audio hardware. It works with pulse well also, and supports a high quality encryption protocol so your calls are secure.
Also unlike many softphones linphone works with most SIP providers, letting you connect to more than one at a time with out hassles.

There is a non-interactive CLI as well that makes it easy to script automated calls, voicemail checks, etc. I'm not a big fan of the GUI, but it will
continue to be available and uneffected by lpclic actions.
Maybe I can add some bits to the GUI later as ell, but I mostly work on things I use frequently, and that's not the case for linphone's GUI.


--
B.H.
Registerd Linux User 521886


B. Henry wrote:
Thu, Jun 16, 2016 at 02:32:10PM -0500
> --
> Remember to frequently check our Wiki: http://wiki.vinuxproject.org
> Our website: http://www.vinuxproject.org
> You can search or view our group on the web: http://groups.google.com/group/vinux-support
> Talk to us on IRC irc.vinuxproject.org #Vinux
>
> Unsubscribe from Vinux by emailing vinux-suppor...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups "Vinux support forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.

B. Henry

unread,
Jun 18, 2016, 4:10:12 PM6/18/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
For anyone who uses Arch-Linux or any of its offshoots, i.e. manjaro and its blink-centric optimizations or attempts there at, lpclic is now in the AUR.
I fixed an issue where first run did not make one backup it should have, and made some lines a bit more bashism bullet proof, so I feel very comfortable
recommending this to any and all users.
You can also git the files you need to install clic on a vinux box from github, but I've yet to make an distro agnostic installer, maybe tonight, maybe
next month...lol
All you need to do is copy the starter favorites file and the conf file to one of two directories you make, /etc/clic/ or ~/.lpclic/
and if you want the manpage, should be easy to read and helpful to new users, copy it to /usr/share/man/man1/
The exicutable goes in /usr/local/bin, or /usr/bin/
I know, I'm lagging/should have gotten my vinux packagng tried, tested and in daily use by now...will do soon, and then give you guys a repo to install my
toys from.
Seriously, if youuse linphonec, I can't imagine you preferring it with out my helper script, and it will get better.



--
B.H.
Registerd Linux User 521886


B. Henry wrote:
Thu, Jun 16, 2016 at 02:32:10PM -0500

B. Henry

unread,
Jun 18, 2016, 4:12:24 PM6/18/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
BTW, the github url is
https://github.com/burt1iband/lpclic
and the script should be completely distro agnostic, and runs on 32 or 64 bit boxes, I assume on arm stuff as well, but have no way to test...

--
B.H.
Registerd Linux User 521886


B. Henry wrote:
Sat, Jun 18, 2016 at 03:10:00PM -0500

B. Henry

unread,
Jun 23, 2016, 11:34:23 PM6/23/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
Still no generic installer, but I hae added some pretty useful features, and found a bug and fixed it.
Now you can start a call launching the program, and you can use tab completion so you don't even have to remember the number or sip handle very well.
I hope others will find this as useful as I do/would reall like to hear from testers what if any issues they run in to .
There is a completions dir with a couple of files in it.
On arch this goes in /usr/share/bash-completions/completions/, and if your distro has such a dir put them there.
Most distros use /etc/bash_completions.d/ I think.
This is the case for ubuntu anyway, and of course Vinux and other Ubuntu flavors.
When I make the installer it'll be in the git repo, so keep checking, could happen any day.
Regards, and keep reading the quoted messaes below if you are new to this conversation.

--
B.H.
Registerd Linux User 521886


B. Henry wrote:
Sat, Jun 18, 2016 at 03:12:12PM -0500

B. Henry

unread,
Jun 24, 2016, 1:35:52 AM6/24/16
to vinux-...@googlegroups.com, open-sourc...@googlegroups.com, Linux discussion list for Cavi students
Les, I tried to send this to you off list, but think you changed your email address. Msg was bouncec back to me anyway,so here's the msg.

The param command let's you see and change anything already in your linphonerc.
As I said in another msg, I don't have any thing in my rc for the tone gen
stuff, but I'm running latest or very close to it on both vinux and arch.
If you have any lines like I quoted in my on list msg, just set them to 0 if they are one and you should be good to go.
I'm not sure what section they go in, will have to look at the full list of=
options, probably in misc.
The param command goes param <section>, i.e. net, sound, video... and then =
the option, e.g. mic_gain_db

param sound mic_gain_db
and you see your value assuming you have one set. If not, you have to add it by hand. I guess the param command uses some kind of replacment that's not=20
happy just wsriting in a section. It would be harder to write for me, but
I'm far from a programmer...lol
Anyway, you could do
param sound mic_gain_db 3.000000
if you needed to turn your mic up like I do.
I should see how it does a bit lower, those values come from a long time ag=
o and I bet I can get just as strong a sound with a bit less gain...
Anyway, can't complete as much as I wanted to with out getting in to the li=
nphone code itself, but at least I have it now where bash completion let's =
one=20
start linphonec with -s either directly or via my lpclic script using -s an=
d tab complete numbers from your call history.
Next comes making a phone book of some sort or maybe can use abook or simil=
ar so one can use aliases and or real names when not remembering phonenumbe
rs.


--
B.H.
Registerd Linux User 521886


B. Henry wrote:
Thu, Jun 23, 2016 at 10:33:43PM -0500
Reply all
Reply to author
Forward
0 new messages