Page 1 of 1
SipPhone Source code

Posted:
Mon Feb 09, 2009 4:43 pm
by ldu
Since the recent new version, we decided to license from pjsip. So we will not provide the source code here.
SipPhone on iPhone project used open source code: pjsip 0.9.0
The sip stack from pjsip is used as is. On top of that, portaudio code was changed for iPhone OS.
The project also makes reference to another open source project - iaxComm - for IAX functionality, which is currently disabled, but is required to compile.
You are free to download the attachment for the entire project. For pjsip code referenced in the project, please download it from here:
http://www.pjsip.org/release/0.9.0/
Re: SipPhone Source code

Posted:
Thu Feb 19, 2009 12:06 am
by ismangil
I can't seem to find any XCode proj file in the zip file.
How do I recreate this file?
Re: SipPhone Source code

Posted:
Fri Feb 20, 2009 3:11 pm
by ldu
I think you just create the project and add all the files, that should do it.
Re: SipPhone Source code

Posted:
Fri Feb 20, 2009 10:03 pm
by ismangil
For iaxComm, is this the project
http://iaxclient.sourceforge.net/iaxcomm/ ?
And do you which version source code is needed for compilation?
Re: SipPhone Source code

Posted:
Sun Feb 22, 2009 4:44 pm
by ldu
Sorry, just saw your post after we clean up the spams.
Yes, you are right, that is the source code for IAX.
You need to make the IAX as library and make pjsip as library too.
Then you can link them together.
Re: SipPhone Source code

Posted:
Mon Feb 23, 2009 12:47 am
by jicksta
Could you guys release a version of the code that has the buildable .xcodeproj attached? Right now it seems like it was intentionally hobbled to prevent easy compilation.
Re: SipPhone Source code

Posted:
Tue Mar 03, 2009 7:36 pm
by ismangil
Thanks,
I was off this thing for a while. Let's see if I can pick off where I left off.
The next thing is where do I find portmixer.h?
Re: SipPhone Source code

Posted:
Tue Mar 03, 2009 9:26 pm
by jok11n
ldu wrote:Sorry, just saw your post after we clean up the spams.
Yes, you are right, that is the source code for IAX.
You need to make the IAX as library and make pjsip as library too.
Then you can link them together.
is there any chance of IAX support being included in a future update? although not as many VSP's support IAX it's an excellent protocol for dealing with tricky routers
also any plans for additional codec support?
Re: SipPhone Source code

Posted:
Wed Mar 04, 2009 1:38 pm
by ldu
ismangil wrote:Thanks,
I was off this thing for a while. Let's see if I can pick off where I left off.
The next thing is where do I find portmixer.h?
We use the file from pjsip, so you need this kind of include path:
-DPJ_AUTOCONF=1 -Ipjproject-0.9.0/third_party/build/speex -Ipjproject-0.9.0/third_party/speex/include -Ipjproject0.9.0/third_party/build/portaudio -Ipjproject-0.9.0/third_party/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND -Ipjproject-0.9.0/pjmedia/include -Ipjproject-0.9.0/pjlib/include -Ipjproject-0.9.0/pjlib-util/include -Ipjproject-0.9.0/pjnath/include -Ipjproject-0.9.0 -Ipjproject-0.9.0/third_party/build/srtp -Ipjproject-0.9.0/third_party/srtp/crypto/include -Ipjproject-0.9.0/third_party/srtp/include
Re: SipPhone Source code

Posted:
Wed Mar 04, 2009 1:39 pm
by ldu
jok11n wrote:ldu wrote:Sorry, just saw your post after we clean up the spams.
Yes, you are right, that is the source code for IAX.
You need to make the IAX as library and make pjsip as library too.
Then you can link them together.
is there any chance of IAX support being included in a future update? although not as many VSP's support IAX it's an excellent protocol for dealing with tricky routers
also any plans for additional codec support?
IAX support is included. For now we want to keep this client simple.
Re: SipPhone Source code

Posted:
Wed Mar 04, 2009 2:51 pm
by ldu
Basically, we hard coded a port audio layer for Iphone. This is not a best approach, since we do not familiar with port audio, it is the easier way for us to do that.
ldu wrote:ismangil wrote:Thanks,
I was off this thing for a while. Let's see if I can pick off where I left off.
The next thing is where do I find portmixer.h?
We use the file from pjsip, so you need this kind of include path:
-DPJ_AUTOCONF=1 -Ipjproject-0.9.0/third_party/build/speex -Ipjproject-0.9.0/third_party/speex/include -Ipjproject0.9.0/third_party/build/portaudio -Ipjproject-0.9.0/third_party/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND -Ipjproject-0.9.0/pjmedia/include -Ipjproject-0.9.0/pjlib/include -Ipjproject-0.9.0/pjlib-util/include -Ipjproject-0.9.0/pjnath/include -Ipjproject-0.9.0 -Ipjproject-0.9.0/third_party/build/srtp -Ipjproject-0.9.0/third_party/srtp/crypto/include -Ipjproject-0.9.0/third_party/srtp/include
Re: SipPhone Source code

Posted:
Wed Mar 04, 2009 5:29 pm
by jok11n
ldu wrote:
IAX support is included. For now we want to keep this client simple.
sorry, maybe I don't understand, will it support IAX now or is this something for the future maybe?
Re: SipPhone Source code

Posted:
Wed Mar 04, 2009 7:43 pm
by ismangil
ldu wrote:ismangil wrote:The next thing is where do I find portmixer.h?
We use the file from pjsip, so you need this kind of include path:
Ok I found it. It's not from pjsip but from iaxcomm. I just need to make it recursively search that directory.
Past the headers problem now, but something duplicate types problem. I'll see if I can fix it first.
Re: SipPhone Source code

Posted:
Thu Mar 05, 2009 1:11 am
by matt3736
Hi!
Can you tell me how I can build the PJSIP libraries for the iPhone. Or how can I integrate the PJSIP Libraries / Header into a XCode project?
I would be very grateful for some help.
Best regards
Matt
Re: SipPhone Source code

Posted:
Thu Mar 05, 2009 8:03 pm
by apus29
matt3736 wrote:Hi!
Can you tell me how I can build the PJSIP libraries for the iPhone. Or how can I integrate the PJSIP Libraries / Header into a XCode project?
I would be very grateful for some help.
Best regards
Matt
If there any step by step instruction for how to integrate the pjsip libraries and build the code for iphone it would be really a great pleasure!!
its really problematic to do this for newbie....
Thanks
Opu
Re: SipPhone Source code

Posted:
Sat Mar 21, 2009 10:36 am
by rafi1079
When i build it I get ( error:syntax error before "typedef" ). Can some one please help me with this?
Thanks.

Re: SipPhone Source code

Posted:
Tue Mar 24, 2009 8:40 am
by testaccount
Hello All,
Could anybody pls let me know if they have a .xcodeproj file for this application source distribution? Has anybody been able to compile and run the source on their device?
Thanks.
Re: SipPhone Source code

Posted:
Tue Apr 14, 2009 2:26 pm
by samwize
Would appreciate if there are more details to which version of iax library was used and any additional steps to compiling for SipPhone. Thanks

Re: SipPhone Source code

Posted:
Thu Apr 23, 2009 12:05 am
by ismangil
ldu wrote:Basically, we hard coded a port audio layer for Iphone. This is not a best approach, since we do not familiar with port audio, it is the easier way for us to do that.
Again, I was off this thing for a while.
Can you explain a bit more on how this hardcoding of port audio layer works?
Do you put your portaudio.m somewhere within third_party/portaudio?
This is because ./configure even with cross-compiling turned is not working correctly for the sound device detection.
Re: SipPhone Source code now works

Posted:
Fri Apr 24, 2009 6:52 am
by ismangil
I have now managed to compile the sipphone code to at least start up on iPhone.
I've put up the sources on a public repository
http://bitbucket.org/ismangil/tabikphone/You can download a zip at
http://bitbucket.org/ismangil/tabikphone/get/tip.zipSome draft instructions on
http://bitbucket.org/ismangil/tabikphone/wiki/Home just to remind people you need to be a registered iPhone developer to deploy this.
Re: SipPhone Source code

Posted:
Wed Apr 29, 2009 5:54 am
by tapieu
ldu wrote:SipPhone on iPhone project used open source code: pjsip 0.9.0
The sip stack from pjsip is used as is. On top of that, portaudio code was changed for iPhone OS.
It seems you changed several files in pjsip (socket_common.c, ...) when will you release all your changing to honor the GPL license ?
Re: SipPhone Source code

Posted:
Fri Jul 17, 2009 6:32 am
by mkearl
Has anyone been able to get this to work using 3.0 or 3.1 SDK? I can get it to compile and everything and it runs but I get errors all over the place. I am not able to place or receive any calls. I am connected to Wifi etc. Any help or new updated code would be greatly appreciated.
Re: SipPhone Source code

Posted:
Fri Jul 17, 2009 7:46 am
by mkearl
This is the error I am getting which points to the pjsip library but I am probably getting that because it is unable to open up a device . no sutable sound capture device... I tried 2.2 and 2.2.1 and 3.0 and 3.1 sdks with the same error.. what has changed since 2.0???
2009-07-16 18:19:10.097 ACNSIP[1438:207] eventtype=3 calltype=0 incoming num=(null) regid=2 result=0
18:19:35.479 pjsua_media.c pjsua_set_snd_dev(): attempting to open devices @16000 Hz
18:19:35.481 ipodsound.c pjmedia_snd_stream_start.
18:19:35.481 ipodsound.c pjmedia_snd_stream_start : play back starting...
18:19:35.830 ipodsound.c pjmedia_snd_stream_start : play back started
18:19:35.830 ipodsound.c pjmedia_snd_stream_start : capture starting...
18:19:36.325 ipodsound.c Starting capture stream error -66681
18:19:36.326 ipodsound.c pjmedia_snd_stream_close.
18:19:36.352 pjsua_media.c ..failed: No suitable sound capture device (PJMEDIA_ENOSNDREC)
18:19:36.352 pjsua_media.c pjsua_set_snd_dev(): attempting to open devices @22050 Hz
18:19:36.353 ipodsound.c pjmedia_snd_stream_start.
18:19:36.353 ipodsound.c pjmedia_snd_stream_start : play back starting...
18:19:36.387 ipodsound.c pjmedia_snd_stream_start : play back started
18:19:36.388 ipodsound.c pjmedia_snd_stream_start : capture starting...
Assertion failed: (thread->signature1 != 0xDEAFBEEF || thread->signature2 != 0xDEADC0DE || (thread->thread == pthread_self())), function pj_thread_register, file ../src/pj/os_core_unix.c, line 380.
Any help would be appreciated.