Let's go back to the book:
The last one was compiled Pjsip this time we're going to do some combat.
No other changes have been made since the last compilation because the iOS platform libraries are supported.
Open the project find Pjsip-apps/src/pjsua/ios/ipjsua.xcodeproj, run to see if you can succeed if not successful error
See if there is a missing 、、、、、、、 darwin9.a, find the target folder and delete the file.
Okay, now it's been compiled. NOTE:
If you want to implement the function and telnet to the address of the specified port, then you need to set up a SIP server and a SIP client to communicate with you.
SIP server There are many can Baidu under here with the Mini
First, server.
After entering the SIP account and password can be set, corresponding to the extension;
So that our server is set up, and there is a client, so that you can communicate with the server and the client in the Mac, you can see, I here the main system IP is 192.168.1.100, then you have to depend on the actual situation.
First from the MAC system terminal in the Telnet simulator prompt address and port, after entering, we refer to the document, register an account (similar to log on to the server, not a new account, that is, the account server must have) command is: ACC Add, here's a tip, when we don't know how to enter parameters, we press TAB, and it gives us a hint. Here we enter ACC add and then press the TAB key (no response at one time, then press once):
It prompts us to enter the SIP URL, then we enter Sip:[email protected], and then press TAB it will prompt for the address of the SIP registration server, of course, after familiarity, do not need to press TAB, directly as follows:
The meaning of the parameters are: the user's SIP address, registered server address, Realm, user name, password, enter after the display registration success, this time, we look at the minisipserver extension list
Play with the rest of yourself!
iOS Pjsip Static Library compilation (ii)