Thanks - actually, it does not look like I need to put these settings. I tried both with my existing configuration script and yours. I was getting unreferenced errors in your install script on srtp and g722 on mine. I decided to first play with yours because you have it working. On investigation, it looks like you did not include libsrtp in your universal build. Once I added that, I managed to get my app running on both my device and my simulator, but now I don't get audio in either :-)) I think I am going to reset, go back to my old project and incrementally add so I know where the problems are. Some more observations: a) Have you tried building with the latest PJSIP 1.8? While the library gets built, if you link it with an app, you get _kCFStreamNetworkService undefined errors. When I switched back to PJ1.7, this error did not come up. I suspect it is to do with background support in 1.8. On Sun, Oct 3, 2010 at 8:01 PM, Mr. Gecko <grmrgecko at gmail.com> wrote: > Here is the steps I've done. I have the SIP folder in the same folder as my > xcodeproj file. > > You need to double click the target for your application and go into the > build tab. Once there follow these steps > 1. Search for "Other C Flags" and make it equal "-DPJ_AUTOCONF=1 -DNDEBUG > -DMGMSIPENABLED=1" (Without quotes and you can remove -DMGMSIPENABLED=1 if > your not going to use my SIP wrapper). > 2. Search for "Header Search Paths" and add "$(SRCROOT)/SIP/opt/include" > (With quotes and if you place it in another location, change accordingly). > 3. Search for "Library Search Paths" and add "$(SRCROOT)/SIP/opt/lib" (With > quotes and if you place it in another location, change accordingly). > 4. Search for "Other Linker Flags" and make it equal > "-lg7221codec-ios-universal -lgsmcodec-ios-universal > -lilbccodec-ios-universal -lmilenage-ios-universal -lpj-ios-universal > -lpjlib-util-ios-universal -lpjmedia-audiodev-ios-universal > -lpjmedia-codec-ios-universal -lpjmedia-ios-universal -lpjnath-ios-universal > -lpjsip-ios-universal -lpjsip-simple-ios-universal -lpjsip-ua-ios-universal > -lpjsua-ios-universal -lresample-ios-universal -lspeex-ios-universal > -lsrtp-ios-universal" (Without quotes). > > And that should be it, you only need to include in your source code the > headers needed. I only included this one, so I'll use it as an example. > #import <pjsua-lib/pjsua.h> > > On Oct 3, 2010, at 6:57 PM, Rob Wilkes wrote: > > Thanks James. Quick question - after you build a universal library, how do > you use it in 3rd party applications? In addition to dropping it into the > frameworks on a new app, do I also need to copy all the PJSIP .h files as > well? I am getting link errors of undefined symbols > > On Sun, Oct 3, 2010 at 10:28 AM, James Coleman <grmrgecko at gmail.com>wrote: > >> I have a working compile script at >> http://opensource.mrgeckosmedia.com/?a=tree&p=VoiceMac&h=7884e6e1fcf02d9483f30a09ecfe544ea253d9c4&hb=5dc36cc158c42257da9aaa4da890320199715b22&f=SIPif you want to try it. It compiles iPhone and iPhone simulator and makes a >> "fat" library. Things to note, you do not want to put it in a folder that >> it's parents has a space or '. >> >> Hope you get it working. >> >> Sent from my iPod 3G >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101003/414520ba/attachment.html>