pjsip

How to create a pointer in Objective C to swift?

血红的双手。 提交于 2019-12-12 05:27:33
问题 I am developping an iOS application and I would like to create a pointer that refers to a view in my swift code. Currently I have this in my Objective C file : MyViewController *viewController=[MyViewController new]; In my MyViewController.swift I have an UIView field in which I want to display something that I handle in my Objective C file. For the time being it doesn't work and I have the impression I misunderstood something... Does my current pointer refers to a specific instance of

Pjsip Use Sip-Specific Event Notification for Notify message

一个人想着一个人 提交于 2019-12-12 02:22:33
问题 I want to implement Notify event CallBack in CsipSimple here is the C code i have written My C/C++ files The pjsip_event_notification.h file #include <pjsip-simple/evsub.h> class EventCallBack { public: virtual ~EventCallBack() {} virtual void on_evsub_state(pjsip_evsub *sub, pjsip_event *event){} virtual void on_tsx_state(pjsip_evsub *sub, pjsip_transaction *tsx, pjsip_event *event){} virtual void on_rx_refresh(pjsip_evsub *sub, pjsip_rx_data *rdata, int p_st_code, pj_str_t **p_st_text,

Enable Bluetooth for pjsip voice call in ios

谁都会走 提交于 2019-12-11 17:49:33
问题 I am making VOIP app and now we required to connect voice calls with Bluetooth. We tried to connect the call with Bluetooth but not hear anything. /* Initialize audio session category and mode */ { AVAudioSession *sess = [AVAudioSession sharedInstance]; pj_bool_t err; if ([sess respondsToSelector:@selector(setCategory:withOptions:error:)]) { err = [sess setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil] != YES; } else { err =

PJSUA2 Android - Incoming calls drop after 32 seconds

天涯浪子 提交于 2019-12-11 15:09:50
问题 I'm building a PJSUA2 (PJSIP 2.8) Android app and I have some issues: i.e. only on incoming call, call state remains in "PJSIP_INV_STATE_CONNECTING" and after 32 seconds the call drops. I'm looking for the cause of the issue since several days, I googled a lot and all what I found is: in most situations this issue is related to NAT management or network issues related to NAT. In a few words: in most cases the called party does not receive the ACK after answering the call. Finally I was able

Openh264 compiling using PJSIP

偶尔善良 提交于 2019-12-11 12:16:24
问题 I am trying to build pjsip project with openh264 lib. Everything works fine except openh264 is not being detected by pjsip ./configure-android this is my config_site.h /* Activate Android specific settings in the 'config_site_sample.h' */ #define PJ_CONFIG_ANDROID 1 #include <pj/config_site_sample.h> #define PJMEDIA_HAS_VIDEO 1 #define PJMEDIA_HAS_OPENH264_CODEC 1 I am getting following log Using OpenH264 prefix... /home/user_name/PJSIPTOOLS/openh264-1.0.0/openlib/ checking OpenH264 usability

Account re-registration in pjsip

蓝咒 提交于 2019-12-11 09:14:52
问题 I'm using pjsip in my application. At the time of registration I set the timeout to 60 sec. After every 60 seconds my account will re-register but in my case it is not happening. If anybody knows why, please tell me (I set whatever fields required to call pjsip account add method, if i miss any thing please tell me). setRegistration(String sipUser, String password,String sipServer) { int status = pjsuaConstants.PJ_FALSE; /* Register to SIP server by creating SIP account. */ { int[] accId =

Integrate pjsip in iOS app

空扰寡人 提交于 2019-12-11 07:22:26
问题 I am Goosip/AKSSIP for pjsip wrapper but not able to connect to the server. Can any one guide me to implement pjsip in iOS project. Thanks! 回答1: To Integrate PJSIP on iOS: step 1: First Download PJSIP Project from their website. http://pjsip.org/download.htm step 2: Extract the files in your computer. step 3: Go to the folder pjsip2.6/pjlib/include/pj/ step 4: create config_site.h file step 5: add the following lines into the config_site.h file and save the file #define PJ_CONFIG_IPHONE 1

How to create callBack in iOS that should be called by the library

泪湿孤枕 提交于 2019-12-11 02:22:59
问题 I am developing a VOIP_App that uses PJSIP Library which is written in C-Language , most of the methods written in that library are called automatically according to the situation. There is method named on_incoming_call called automatically and call is received by user, I want to add some user interactions for receiving call, I need to create some callBack, that should be called in this method, and the method definition should be written in Objective-C . Here is the code snippet: /* Callback

Pjsip iOS How to transmit sound to receiver side and record it?

十年热恋 提交于 2019-12-10 23:29:10
问题 func startSipRecording(caller: String, callid: pjsua_call_id) -> (started: Bool, startDate: NSDate?) { var status = pj_init() if status != PJ_SUCCESS.rawValue { return (false, nil) } cpFec = pjsua_data().cp /* Must create a pool factory before we can allocate any memory. */ pj_caching_pool_init(&cpFec!, &pj_pool_factory_default_policy, 0) status = pjmedia_endpt_create(&cpFec!.factory, nil, 1, &med_endpt ) if status != PJ_SUCCESS.rawValue { return (false, nil) } pool = pj_pool_create(&cpFec!

building openh264 for android platform in x86

你。 提交于 2019-12-10 23:16:55
问题 I'm trying to build openh264 for android with following command : $ make OS=android NDKROOT=/Users/nazmulhasan/android-ndk-r10d TARGET=android-17 ARCH=x86 And getting the following error: /Users/nazmulhasan/android-ndk-r10d/toolchains/x86-4.8/prebuilt/darwin-x86/bin/../lib/gcc/i686-linux-android/4.8/../../../../i686-linux-android/bin/ld: error: codec/common/cpu-features.o: incompatible target codec/common/src/WelsThreadLib.o:WelsThreadLib.cpp:function WelsQueryLogicalProcessInfo: error: