Command Line SIP Client

Josh Benson of Open Source Society tells us how pjsua can be used as fully featured SIP client to solve real life problems in PJSIP: Command-Line VoIP Client for Linux:

Some time ago, I was tasked at work with finding an IP telephony client that used the SIP protocol, ran on linux, and did everything from the command line. The goal was to have a program that could be deployed at remote networks to test the quality and performance of VoIP calls between the remote site and our central Asterisk VoIP server.

Read more..

Josh has it spot on. While pjsua is intended primarily as the reference implementation of PJSIP (command line programs are always easier to learn than GUI), it is also intended to have the full features of a SIP client. Softphones with pretty GUI are easier to use, and they are also easier to find, but for some specific tasks, sometimes we have to revert back to using the good old console application, and that’s where pjsua fits the bill.

I’m glad that Josh and others find it useful. Thanks Josh for sharing your experience.

[Update: As the Open Source Society website is gone, I’ve removed the hyperlink. Sorry. Let me know if this is temporary and it’s back]

7 Responses to “Command Line SIP Client”

  1. 1 chandrashekar B S 13 February 2008 at 7:48

    I’ve implemented pjsip stack(UA) on atmel AMRV5(linux).It work good and i’m very happy.

    with warm regards

  2. 2 Anitha 3 March 2008 at 17:54


    Even i am trying to port PJSIP on atmel ARMV4(linux),but iam facing some error during run time

    Could u please send me all the details of compiling and building pjsip on ARM and also send any changes made in build.mak and config_site.h

    Waiting for ur reply
    Anitha Suresh

  3. 3 Dave 8 May 2008 at 23:22

    I share the belief the command line SIP clients are useful. Unfortunately, from what I’ve seen so far, they’re not as straight-forward to use as GUI clients. You might have to dig through the docs to figure out how to use it with your specific IP PBX, etc.

    And some like PJSIP require you to compile from source. Would be nice to have pre-built binaries for those who can’t or don’t know how to compile the source.

  4. 4 kitten 8 September 2008 at 18:26

    Man, this thing rocks. I just found out about it and compiled it; I was looking for something just like this for the same reason as Josh. For testing remote voip clients, this thing is invaluable. Now, I have to wrap my head around their sketchy documentation.. but otherwise, an excellent tool to have.

  5. 5 ismangil 13 September 2008 at 3:50


    If you can let us know which bits of the sketchy documentation you want us to elaborate on, we’ll try to improve it.

    Thanks for your comment!

  6. 6 Adrian Georgescu 21 February 2009 at 19:55


    There are more simple to use line unix SIP command clients based on PJSIP here:

    Session establishment

    sip_audio_session – Setup a voice audio session (Voice over IP)
    sip_im_session – Setup IM session and File transfer using MSRP protocol
    sip_desktop_sharing – Share desktop using VNC protocol over MSRP transport
    sip_message – Send/receive text in page mode using SIP MESSAGE method


    sip_publish_presence – PUBLISH presence to a SIP Presence Agent
    sip_subscribe_presence – SUBSCRIBE to presence information
    sip_subscribe_winfo – SUBSCRIBE to watcher list on a SIP Presence Agent
    sip_subscribe_rls – SUBSCRIBE to lists managed by Resource List Server

    Presence policy

    xcapclient – PUT/GET/DELETE full or partial documents on an XCAP server
    xcap_pres_rules – Manage content of pres-rules XCAP document
    xcap_rls_services – Manage content of RLS services XCAP document

    sip_register – REGISTER a SIP end-point with a SIP Registrar

  1. 1 SIP Client on Puppy Linux « pjsip blog Trackback on 30 June 2008 at 9:31
Comments are currently closed.

%d bloggers like this: