pjsip

Using pjsip with android

邮差的信 提交于 2019-12-06 05:13:29
问题 I successfully installed and builded the pjsip library and pjsua for android, I ran pjsua on my device and it worked, however I'm still lost on how to use the methods of this library. I already took a look on the CSipSimple app and I noticed that the jni folders of these 2 projects are very different. Do I have to convert each .c file of this library in .java files with SWIG ? If anyone has an example about how to implement it in a very simple way (a SIP register procedure for instance) it

Compile PJSIP for iOS7

旧街凉风 提交于 2019-12-06 02:30:20
问题 I am trying to compile PJSIP2.1.0 for iOS on Mac 10.9.(Xcode 5.0). But I'm getting some errors when I run ./configure-iphone . Below are the errors, configure-iphone: DEVPATH is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk ls: /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin*: No such

PJSIP Custom Registration Header

天涯浪子 提交于 2019-12-05 08:21:13
问题 I am attempting to setup SIP communication with an internal server (using the PJSIP library), however, this server requires a custom header field with a specified header value for the REGISTRATION call. For example's sake we'll call this required header MyHeader . From what I have found, the pjsua_acc_add() function will add an account and register it to the server using a config struct. The parameter reg_hdr_list of the config struct has the description: The optional custom SIP headers to be

Compile PJSIP 2.5 Library for all architectures

℡╲_俬逩灬. 提交于 2019-12-05 04:50:06
问题 To compile PJSIP library for iPhone device, I am using this code make distclean && make clean ARCH='-arch arm64' ./configure-iphone --enable-opus-codec make dep make This code allows me to install my app for single architecture only. To compile pjsip for all the architectures (armv7, armv7s, arm64, i386, x86_64), Which command or tool I can use 回答1: Steps to compile for all devices. compile for all devices separately merge with lipo eg. -create /libsrtp-arm64-apple-darwin_ios.a /libsrtp-i386

pjsip 2.5.5 build error

蹲街弑〆低调 提交于 2019-12-05 04:07:22
I'm trying to build pjsip for android with NDK r13b . Standard build like ./configure-android --with-opus=/home/user/pjsip/pjproject/opus-dev-lib works perfect. But i need several TARGET_ABI and all my tries to do it ends with configure-android error: compiler not found, please check environment settings (TARGET_ABI, etc) Commands as TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags --with-opus=/home/user/pjsip/pjproject/opus-dev-lib TARGET_ABI=armeabi-v7a APP_PLATFORM=android-21 ./configure-android --use-ndk-cflags --with-opus=/home/user/pjsip/pjproject/opus-dev-lib return the same

How to show double height green statusbar (In-Call) in foreground app on device?

我怕爱的太早我们不能终老 提交于 2019-12-05 04:03:41
There's a lot of questions here asking for displaying a red recording bar while in background. It's totally clear I should use AVAudioSession category AVAudioSessionCategoryPlayAndRecord for that. My question is how can I display a green In-Call bar (or at least red bar) in a foreground app when having an active VOIP call in my app? So I could return to call UI tapping a statusbar area, just like Whatsapp or Skype does. What I've already tried: voip and audio modes in UIBackgroundModes key in Info.plist + setCategory:AVAudioSessionCategoryPlayAndRecord + setActive as suggested in this SO

Running a VOIP (PJSIP) service in the background

☆樱花仙子☆ 提交于 2019-12-05 02:08:47
问题 My app has just been rejected by Apple as it does not properly implement background running and it is a VOIP app using iOS. My odd code that kept it running was [self performSelectorOnMainThread:@selector(keepAlive) withObject:nil waitUntilDone:YES]; [application setKeepAliveTimeout:KEEP_ALIVE_INTERVAL handler: ^{ [self performSelectorOnMainThread:@selector(keepAlive) withObject:nil waitUntilDone:YES]; }]; Which I know is wrong I then followed the http://blog.dkaminsky.info/2013/01/27/keep

Cocoapods : target has transitive dependencies that include static binaries when installing 'VialerSIPLib'

删除回忆录丶 提交于 2019-12-05 01:18:54
I'm trying to install an objective-c Wrapper for Jsip 'VialerSIPLib' and use it in my swift project here is my pod platform :ios, ’10.0’ use_frameworks! target 'EMedicalAdmin' do pod 'ObjectMapper', '~> 2.1' pod 'Alamofire', '~> 4.3' pod 'SwiftyAvatar', '~> 1.0' pod 'AlamofireImage', '~> 3.1' pod 'Eureka', '~> 2.0.0-beta.1' pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop' pod 'PKHUD', '~> 4.0' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'ImageSlideshow', '~> 1.1.0' pod 'SwiftyJSON' pod

Disable audio recording notification while application is in background on iOS SDK 4.2+

旧街凉风 提交于 2019-12-04 21:12:55
In my project, where we use pjsip2 to receive streaming audio from a shared server. The app is meant to only receive streaming audio, not record. However even though we have disabled the mic in out code we still get a notification of the app recording while it is in the background (top bar flashing red with text: " (recording)"). How can I disable the recording notification while our app is running in the background? Remove the audio option from info plist for UIBackgroundModes Example: <key>UIBackgroundModes</key> <string>voip</string> 来源: https://stackoverflow.com/questions/12456563/disable

PjSip Add multiple headers

纵饮孤独 提交于 2019-12-04 19:23:15
I am developing a voip app for I-phone using pjsip as sip stack, and i want to add custom headers am able to add, but only one gets added, am stuck i dont under stand whats wrong, below is my code snippet pj_status_t status = PJ_SUCCESS; pj_str_t pj_uri; pjsua_msg_data msg_data; pjsip_generic_string_hdr subject; pj_str_t hvalue, hname; pj_uri = pj_str((char *)uri); for(NSString *key in [headers allKeys]){ NSLog(@"Call.m key value in call %@,%@",key,[headers objectForKey:key] ); pjsua_msg_data_init(&msg_data); hname = pj_str((char *)[key UTF8String]); char * headerValue=(char *)[(NSString *)