Twinkle: My favorite SIP program

Twinkle: My favorite SIP program


I've been looking for an SIP program for a long time. Linphone, OpenWengo, and Gizmo all failed to work with my Logitech AK5370 USB microphone (ah, the joys of drivers!). Eventually, after about half a dozen programs, I gave up. Then, out of the blue came Twinkle, a Qt-based VoIP phone.

What is Twinkle and how do you get it?

Twinkle is, as I mentioned above, an SIP program. SIP is a protocol for voice-over-internet-protocol (VoIP). Basically, it enables users to call each other using only their computers and a microphone. It's also an open protocol; so, unlike a closed protocol like Skype, you can use any program that supports SIP rather than being tied to a specific client.

Since Twinkle is a popular program, it's already in most of the repositories out there. Debian and Ubuntu users can install the twinkle package in their repositories, while openSuSE users have Twinkle pre-installed in the DVD version. You can also compile Twinkle from source, though you'll need Qt's headers and a few other libraries (don't use Qt 4.4, use 3.3.0 or later). See the Twinkle homepage for more information.

Setting up Twinkle

The first thing you need to do is get an SIP account, which is similar in concept as an email address. For this article I'm using one from sipphone.com, but you can use one from any SIP provider out there (though SIPphone offers several nice features, which I'll detail below). First, create an account at the SIPphone signup URL. Then, open Twinkle. If it's the first time you run it, a wizard will be activated. Otherwise, go to File→Change User and click Wizard. Either way, enter a name for your profile (e.g. SIPphone) and hit next. At the following screen, choose SIPphone! as your service provider. Enter your user name (e.g. andrewmin) and your password that you got when you signed up in their respective fields and hit OK. At the next screen, make sure your profile is checked. Now, you should be connected.

Figure 1: Configuration for SIPphoneFigure 1: Configuration for SIPphone

Trying out Twinkle

Now that you've got Twinkle set up, it's time to call someone. Instead of bugging a random person, you can simply call an echoing service. To do so, type sip:username@domain.com in the Call: field and hit Dial (sip:echo@proxy01.sipphone.com, the SIPphone echo tool, and sip:enum-echo-test@sip.nemox.net are two good echo services). Anything you say into the microphone should be instantly echoed back to you. If it doesn't, check your audio settings under Edit→System Settings→Audio (try changing from OSS to ALSA).

Figure 2: Calling the echo bot at nemox.netFigure 2: Calling the echo bot at nemox.net

Twinkle Tricks

One really nice feature for KDE users is the integration with KAddressBook (the Address Book section of Kontact). All you have to do is add an SIP address in the phone field (e.g. sip:andrewmin@proxy01.sipphone.com) and Twinkle will automatically pick it up when you click the Address Book button (next to the Call field).

But what if you don't use KAddressBook (or KDE, for that matter)? Well, Twinkle also offers a very nice built in address book. To set it up, click the Address Book button (next to the Call field) and click on the Local address book tab. Then, click Add to add a person to your list. To call the contact, just double click on the name and the person's name will be put in the Call field. Then you can just click the Dial button to call.

Figure 3: My (very short) contact listFigure 3: My (very short) contact list

Sometimes when you're talking to a robot at the other end of the line you are asked to use a dialpad. However, you may have noticed that Twinkle... doesn't have a dialpad. Luckily, that's easy to fix. Just click inside of the Display text area and type whatever you want using the numbers on your keyboard. Every number will be sent over the airways to the recipient.

Another really neat trick is the ability to run scripts on certain events. For example, you can have a KDE dialog pop up when you have a call coming in. It's simple to do: create a Bash script (e.g. kdialog --title "Incoming Call" --msgbox "Dude, you've got a call waiting!"), save it with a .sh extension (e.g. twinklecall.sh) in a place you'll remember (e.g. ~/twinklescripts/), and make it executable (chmod +x twinklecall.sh. Then, open the scripts dialog in Twinkle (Edit→User Profile→Scripts) and put the location of the script (e.g. ~/twinklescripts/twinklecall) in the field you want it to be executed (e.g. the Incoming call field). Now, every time that event is triggered, your script is run.

Figure 4: Using a <a hrefFigure 4: Using a

Sometimes, it's important to have a encrypted line. Twinkle offers this in the form of ZRTP/SRTP encryption (David Sugar has a good article on this topic ). To enable it, open the Security dialog (Edit→User Profile→Security) and check Enable ZRTP/SRTP encryption. Note that if the other party doesn't have this feature enabled, the encryption may not work.

SIPphone tricks

One of the few things Twinkle is missing is built-in voicemail (it supports third-party voicemail, however I couldn't figure out how to set up SIPphone with it). Luckily, if you're using SIPphone, it's extremely easy to set up a voicemail. Just dial sip:record@proxy01.sipphone.com and follow the the onscreen instructions.

Another nice feature is the ability to do a voice conference using SIPphone (Twinkle doesn't yet have this ability). To set it up, go to this Gizmo address or dial sip:CONFERENCE@proxy01.sipphone.com.

Conclusion

Twinkle is an extremely powerful and handy SIP client. It's my current client, mostly because it just works terrifically. So if you just something that works great, Twinkle is a great option.

Links:

Category: 
Tagging: 

Comments

mikese's picture
Submitted by mikese on

I think almost every call center is using SIP no a days, i remember back in the 90's my friends mom sold phone systems i can't imagine what SIP/VoIP has done to those companies.

Author information

Andrew Min's picture

Biography

/ˈændruː/ /mi:n/
(n): a Christian.
(n): a student.
(n): a technology enthusiast.
(n): a journalist for several online publications.

Andrew Min is a student, programmer, and journalist from New York City.

My main forte in the technology realm is journalism. I’ve written for a variety of magazines, both print and non-print, with a focus on open source software and the new web. I’ve also been interviewed on a long list of topics, ranging from politicians on Twitter to open source software and homeschooling.

I also have experience with a variety of programming languages (Bash, Batch, CSS, JavaScript, PHP, and (X)HTML) and content management systems (WordPress). I’ve been hired to design and administer several websites. In addition, I’ve been the lead programmer on several small coding projects.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!