/PJSIP-iOS

PJSIP is Open Source SIP, Media, and NAT Traversal Library http://www.pjsip.org

Primary LanguageCApache License 2.0Apache-2.0

PJSIP for iOS

当前版本:v2.45

静态包结构

PJSIP
	├── libs
	└── includes

备注:当前静态包支持i386 arm64 armv7 armv7s x86_64。

如何手动使用

1.导入PJSIP

PJSIP加入到工程中.

2.引入头文件

Header Search Path:
$(PROJECT_DIR)/YourProjectName/PJSIP/includes/pjlib
$(PROJECT_DIR)/YourProjectName/PJSIP/includes/pjlib-util
$(PROJECT_DIR)/YourProjectName/PJSIP/includes/pjmedia
$(PROJECT_DIR)/YourProjectName/PJSIP/includes/pjnath
$(PROJECT_DIR)/YourProjectName/PJSIP/includes/pjsip

2.设置Build Settings

Other Linker Flags: -ObjC
Preprocessor Macros: PJ_AUTOCONF=1

3.添加Libraries

  • AudioToolbox
  • AVFoundation

如何使用Cocoapods导入

pod 'PJSIP', :git => 'https://github.com/Guicai-Li/PJSIP-iOS.git'

###TODO:

  • shell脚本
  • 编译Guide以及demo
  • 文档