Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8759547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:49:49+00:00 2026-06-13T14:49:49+00:00

How to build and compile PJSIP using xCode and run the sample code IPJSUA?

  • 0

How to build and compile PJSIP using xCode and run the sample code IPJSUA?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:49:50+00:00Added an answer on June 13, 2026 at 2:49 pm

    First, you need to open the terminal. Terminal can be found at Applications->Utilities->terminal.
    After you open the terminal, make sure you point to the desktop to make it easier to get the data folder. just type :

    cd Desktop

    Congrats, you already at your desktop. Now continue to type this.

    svn co http://svn.pjsip.org/repos/pjproject/trunk pjproject

    That code means you download the pjproject from the website to your desktop. After you finish download the PJSIP, you need to add a config_site.h. Honestly, I don’t what should we do that, but just follow it. 😀

    How do you create a config_site.h? Just copy the config_site_sample.h, paste, and change the content become like this.

    enter image description here

    After this, we need to change the configure-iphone. I figured it out. If you just want to run at simulator you need to change the DevPath. If you want to test on device, just leave it be.

    Now, I will give example to run on the Simulator. Open pjproject and you will find the configure-iphone. Open the file using a text editor and change the DEVPATH and hardcode the IPHONESDK.

    The devpath will looks like this.

    DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer

    Remember, this refers to the path to your Xcode app. If you want to make sure, go to finder->applications->xcode->show package contents. I also hardcoded the IPHONESDK.

    IPHONESDK=iPhoneSimulator5.1.sdk

    After you’re done with that, we will going back to the terminal. Make sure you already at the pjproject folder. Type this.

    export CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc

    export CFLAGS="-O2 -m32 -miphoneos-version-min=5.0 -g -ggdb -g3 -DNDEBUG"

    export LDFLAGS="-O2 -m32"

    After that, you can configure it. Just click this on terminal. If you want to test on your device, you don’t need to change the configure-iphone, export CC, etc., just directly configure-iphone.

    ./configure-iphone

    After you’re done, continue by entering the commands below to build the library and all dependencies. This line below is where the magic happens and it needs to complete successfully for you to continue.

    make dep && make clean && make

    You will find that all the libraries will compile. The resulting library can help us if we want to create a new project. -> this is what I’m thinking right now.
    Now you almost finished, just go to the pjsip-apps->src->ipjsua. You will find the Xcode project, just click it to open at your xcode. Click build and run. You will find the interface like this.

    enter image description here

    If you want to test on your device, you must have the certificate and private key chain. I can’t explain that because I got that certificate from my company. They provide it.

    If you want to try, you must create a SIP account first. You can use sip2sip or ekiga. At here I tried ekiga. for example my SIP is 12345678@ekiga.net and 87654321@ekiga.net.

    After the simulator we key in +a to add new account.
    Next you will have to type your SIP name. remember to type "sip:". dont ever forget. here is the example:sip:12345678@ekiga.net.

    After that you will have to type the URL address, just type ekiga.net since that is our URL. This URL means our server. Tor example, sip:ekiga.net.

    Next is the auth realm. Type the same as the URL address, sip:ekiga.net.
    Next is your username. In here my username is 12345678. You don’t need to add sip or type with @ekiga.net.
    Last is your password. After you register, it will automatically add it to the account. Just go to the textfield, and hit enter. It will refresh for you.

    Next, we need to add buddy. Type +b, and you must input the URI address. Type sip:87654321@ekiga.net and you are done. Back to the textfield, it will add automatically to your buddy list.

    You will see that your account still in offline mode. You need to change into online mode before you make a call. Just change the status by type t, and hit enter.

    After that you can make a call by type M. and type 1. because our buddy is no 1. 1 is their ID. and you can make a call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using TFS 2008 and team build to compile some Java code using
I'm trying to build this SIP application using PJSIP. When I compile I get
I am trying to compile, build and debug 16-bit assembly programs using Visual Studio
I use ndk-build to compile libpng source code in debug mode, then it shows
Getting this error while I am trying to run /compile/build a Proiject Incompatible Types
Here's the workflow that I'm trying to build compile my proto files using a
I'm trying to build/compile a old project using the original makefile. When I do
Sometimes when i try to build/compile a downloaded source, i get following warning: ld:
I need to compile my GWT 1.7 project from my ant build file....anyone know
I have read this in order to compile NH spatial for Nhibernate 3.1 http://build-failed.blogspot.it/2012/02/nhibernate-spatial-part-2.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.