Matthew Gamble's Blog | My Personal Blog

CAT | iPhone SIP

In my never ending quest to actually get a VoIP client working on the iPhone, I attempted to port minisip to the phone.  After spending several hours working on getting the cross compiling going, I finally loaded the libraries and the binaries onto the phone and eagerly executed  minisip only to be greated with the following:

bash-3.2# ./minisip_textui

Starting MiniSIP TextUI … welcome!

Creating TextUI
Semaphore::Semaphore: CreateSemaphore: Function not implemented
terminate called after throwing an instance of ‘SemaphoreException’
terminate called recursively
Abort trap

Damn!  So close, yet so far away.  I know audio doesn’t work yet, but if I can just get a command line SIP client to compile and run it would be an amazing first step in my mind.  Oh well, back to the lab to keep on testing, coding, and hacking to see if I can actually get a working SIP client (even without audio) on the iPhone.

No tags Hide

After working on getting gettext, glib, and some other basic libraries complied for the iPhone, I finally got sofsip-cli to compile (without media support at this point) but when I transfer the resulting libary to the phone, I get:

bash-3.2# ./bin/sofsip_cli
dyld: Symbol not found: _kSCCompAnyRegex
Referenced from: /usr/local/sofia-sip//lib/libsofia-sip-ua.0.dylib
Expected in: flat namespace

Trace/BPT trap
And that’s where I’m stuck, trying to figure out why that symbol is in my development environment, but doesn’t exist on the iPhone. If anyone knows what I’m doing wrong, please feel free to contact me – I’ve almost got a sip client going on the phone!

No tags Hide

Oct/07

29

Sofia-SIP ported to iPhone

After working on the Asterisk iPhone port this weekend, I decided to try something a bit more complex and port the Sofia-SIP library to the iPhone.  I had it working on my Nokia N770 tablet as a CLI SIP client and while it wasn’t pretty, it was a functional SIP phone.  There are two key parts to getting this working on the iPhone:

  1. Port the Sofia-SIP core libraries, which is now complete (binaries are here)
  2. Port the simple cli client sofsip-cli.  I’m in the progress of doing this now and hope to have something working soon.  If everything goes as planned, I should have a working cli sip client on my iPhone.  I’m not sure about the audio in/out, but I’ll cross that bridge when I get to it.

I’ll keep updating as I progress, but so far things are looking good.

, , , Hide

Find it!

Theme Design by devolux.org