SipPhone Source code

The communcation/discuss board for the iPhone developer

SipPhone Source code

Postby ldu on Mon Feb 09, 2009 4:43 pm

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/
Last edited by ldu on Wed Nov 11, 2009 2:49 pm, edited 2 times in total.
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby ismangil on Thu Feb 19, 2009 12:06 am

I can't seem to find any XCode proj file in the zip file.

How do I recreate this file?
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code

Postby ldu on Fri Feb 20, 2009 3:11 pm

I think you just create the project and add all the files, that should do it.
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby ismangil on Fri Feb 20, 2009 10:03 pm

For iaxComm, is this the project http://iaxclient.sourceforge.net/iaxcomm/ ?

And do you which version source code is needed for compilation?
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code

Postby ldu on Sun Feb 22, 2009 4:44 pm

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.
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby jicksta on Mon Feb 23, 2009 12:47 am

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.
jicksta
 
Posts: 1
Joined: Mon Feb 23, 2009 12:20 am

Re: SipPhone Source code

Postby ismangil on Tue Mar 03, 2009 7:36 pm

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?
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code

Postby jok11n on Tue Mar 03, 2009 9:26 pm

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?
jok11n
 
Posts: 75
Joined: Fri Feb 13, 2009 2:50 pm

Re: SipPhone Source code

Postby ldu on Wed Mar 04, 2009 1:38 pm

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
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby ldu on Wed Mar 04, 2009 1:39 pm

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.
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby ldu on Wed Mar 04, 2009 2:51 pm

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
ldu
 
Posts: 456
Joined: Sun Dec 07, 2008 1:14 pm

Re: SipPhone Source code

Postby jok11n on Wed Mar 04, 2009 5:29 pm

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?
jok11n
 
Posts: 75
Joined: Fri Feb 13, 2009 2:50 pm

Re: SipPhone Source code

Postby ismangil on Wed Mar 04, 2009 7:43 pm

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.
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code

Postby matt3736 on Thu Mar 05, 2009 1:11 am

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
matt3736
 
Posts: 1
Joined: Thu Mar 05, 2009 1:02 am

Re: SipPhone Source code

Postby apus29 on Thu Mar 05, 2009 8:03 pm

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
apus29
 
Posts: 1
Joined: Thu Mar 05, 2009 7:56 pm

Re: SipPhone Source code

Postby rafi1079 on Sat Mar 21, 2009 10:36 am

When i build it I get ( error:syntax error before "typedef" ). Can some one please help me with this?

Thanks. :oops:
rafi1079
 
Posts: 1
Joined: Sun Mar 01, 2009 7:22 pm

Re: SipPhone Source code

Postby testaccount on Tue Mar 24, 2009 8:40 am

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.
testaccount
 
Posts: 1
Joined: Tue Mar 24, 2009 6:43 am

Re: SipPhone Source code

Postby samwize on Tue Apr 14, 2009 2:26 pm

Would appreciate if there are more details to which version of iax library was used and any additional steps to compiling for SipPhone. Thanks :)
samwize
 
Posts: 1
Joined: Mon Apr 13, 2009 2:56 pm

Re: SipPhone Source code

Postby ismangil on Thu Apr 23, 2009 12:05 am

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.
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code now works

Postby ismangil on Fri Apr 24, 2009 6:52 am

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.zip

Some 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.
--
Perry Ismangil
Teluu/pjsip.org
ismangil
 
Posts: 9
Joined: Tue Feb 17, 2009 4:58 pm

Re: SipPhone Source code

Postby tapieu on Wed Apr 29, 2009 5:54 am

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 ?
tapieu
 
Posts: 1
Joined: Sun Mar 01, 2009 2:25 am

Re: SipPhone Source code

Postby mkearl on Fri Jul 17, 2009 6:32 am

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.
mkearl
 
Posts: 2
Joined: Fri Jul 17, 2009 6:14 am

Re: SipPhone Source code

Postby mkearl on Fri Jul 17, 2009 7:46 am

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.
mkearl
 
Posts: 2
Joined: Fri Jul 17, 2009 6:14 am


Return to iPhone Application Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron