title: G729 codec enable in PJSIP2.5 for iPhone
body: <p>I am a newbie in pjsip build with iPhone. I am using iOS 9.3.2, Xcode 7.3 and Pjsip 2.5. I have successfully build Pjsip 2.5 without g729 and it's working fine without g729. As My application require g729 also, I follow all instruction from <a href="http://trac.etellicom.com/wiki/G729CodecForPJSIP2x_iOS6" rel="nofollow">here</a></p>
  
  <p>After enabling g729 using above steps, upon "make dep &amp;&amp; make clean &amp;&amp; make" , it gives below error for all architecture I am using for my application.</p>
  
  <pre><code>../src/pjsua2-test/main.cpp
  if test ! -d ../bin; then mkdir -p ../bin; fi
  /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o ../bin/pjsua2-test-armv7-apple-darwin_ios \
           output/pjsua2-test-armv7-apple-darwin_ios/main.o -L/MyApps/pjproject/pjlib/lib -L/MyApps/pjproject/pjlib-util/lib -L/MyApps/pjproject/pjnath/lib -L/MyApps/pjproject/pjmedia/lib -L/MyApps/pjproject/pjsip/lib -L/MyApps/pjproject/third_party/lib           -O2 -arch armv7 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -framework AudioToolbox -framework Foundation -lpjsua2-armv7-apple-darwin_ios -lstdc++ -lpjsua-armv7-apple-darwin_ios -lpjsip-ua-armv7-apple-darwin_ios -lpjsip-simple-armv7-apple-darwin_ios -lpjsip-armv7-apple-darwin_ios -lpjmedia-codec-armv7-apple-darwin_ios -lpjmedia-armv7-apple-darwin_ios -lpjmedia-videodev-armv7-apple-darwin_ios -lpjmedia-audiodev-armv7-apple-darwin_ios -lpjmedia-armv7-apple-darwin_ios -lpjnath-armv7-apple-darwin_ios -lpjlib-util-armv7-apple-darwin_ios  -lsrtp-armv7-apple-darwin_ios -lresample-armv7-apple-darwin_ios -lgsmcodec-armv7-apple-darwin_ios -lspeex-armv7-apple-darwin_ios -lilbccodec-armv7-apple-darwin_ios -lg7221codec-armv7-apple-darwin_ios  -lpj-armv7-apple-darwin_ios -lm -lpthread  -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit -framework UIKit -framework OpenGLES -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia 
  Undefined symbols for architecture armv7:
    "_pjmedia_codec_g729_init", referenced from:
        _pjmedia_codec_register_audio_codecs in libpjmedia-codec-armv7-apple-darwin_ios.a(audio_codecs.o)
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[2]: *** [../bin/pjsua2-test-armv7-apple-darwin_ios] Error 1
  make[1]: *** [pjsua2-test-armv7-apple-darwin_ios] Error 2
  make: *** [all] Error 1
  </code></pre>
  
  <p>I am really stuck here. Please help me out to solve this. A single clue from anybody will be helpful. </p>