pjsip

Pjsip Crashed on RegState callback

三世轮回 提交于 2019-12-18 07:24:13
问题 In my class that extends SipAccount class I've onRegState() callback which i receive frequently I've notice that after few callback later at any callback like 4th or 5th time it crashes. this is the code from onRegState() callback @Override public void onRegState(OnRegStateParam prm) { Log.d(TAG, "onRegState..."); PresenceStatus prsenStatus = new PresenceStatus(); if (prm.getCode().swigValue()/100 == 2) { Log.d(TAG, "Going online!"); listener.onLogIn(true); prsenStatus.setStatus(pjsua_buddy

How to build pjsip as DLL in Visual studio?

耗尽温柔 提交于 2019-12-13 15:49:52
问题 I follow the instructions here http://www.pjsip.org/pjlib/docs/html/group__pj__dll__target.htm But I got errors, after some research in net I found below answer. But this also produces more errors. Ansewer from Internet: http://comments.gmane.org/gmane.comp.voip.pjsip/16764 I managed to build pjsua.dll some time ago and wrote down a simple how-to. Maybe you will be lucky with that. It is in doxygen: <at> subsubsection subsubsec-pjsip-1x Building PJSIP version 1.x -# Download sources from http

How to apply TLS support to PJSIP for ios

∥☆過路亽.° 提交于 2019-12-13 15:22:53
问题 I am creating a VoIP application for IOS. i am using the pjsip open source libraries for this . I am able to connect when i configure the pjsip to UDP . But i always get error code 171060 [Error creating transport: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]] I get it that somewhere I am making mistake while configuring the file settings for TLS. This is what i am doing. pjsua_transport_config cfg; pjsua_transport_config_default(&cfg); cfg.port = 5061; cfg.tls_setting.ca

Setup TLS + ZRTP For VOIP Using Asterisk and CSipSimple

萝らか妹 提交于 2019-12-13 08:15:00
问题 Im trying to setup voip exchange using asterisk ans CSipSimple as client, fol are the detials Server Side: Generate certificates for server and two clients Place the server cert in /etc/asterisk/keys/ sip.conf: [general] context=local allowguest=no alwaysauthreject=yes allow=gsm allow=ulaw allow=alaw directmedia=yes allowoverlap=no bindport=5061 tlsdontverifyserver=yes tlsenable=yes tlsbindaddr=192.168.0.119 tlscertfile=/etc/asterisk/keys/asterisk.pem tlscafile=/etc/asterisk/keys/ca.crt

Make call above API 18 using PJSIP

匆匆过客 提交于 2019-12-13 07:01:40
问题 After wasting lots of time on internet i'm expecting problem will be solve from here. I'm using org.pjsip.pjsua2 to make a call. It works fine for API <=18 but for API > 18 i'm unable to place a call. What may be the problem. 来源: https://stackoverflow.com/questions/36738485/make-call-above-api-18-using-pjsip

How to use PJSIP library with CMake?

吃可爱长大的小学妹 提交于 2019-12-13 04:13:27
问题 I know how the basic Makefile for a simple project using pjsip library looks like. But what does the equivalent CMake file look like? 回答1: project(myapp) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) include (FindPkgConfig) if (PKG_CONFIG_FOUND) # true if pkg-config works on the system pkg_check_modules(PJSIP REQUIRED libpjproject) endif() include_directories(${PJSIP_INCLUDE_DIRS}) link_directories(${PJSIP_LIBRARY_DIRS}) add_executable(${PROJECT_NAME} ${SRC_LIST})

How to add custom header while making a pjsip makecall()?

我怕爱的太早我们不能终老 提交于 2019-12-13 03:39:39
问题 I need to add one custom header for before making a sip call. please help me. Thanks in advance. 回答1: Finally i got the answer for my question. You should change your make makeSipCall() method. private boolean makeSipCall(String phoneNumber) { if(!created) return false; Log.i("MtaAPIImpl", (new StringBuilder("makecall : ")).append(phoneNumber).toString()); phoneNumber = (new StringBuilder("<sip:")).append(phoneNumber).append("@").append(sipServer).append(">").toString(); byte userData[] = new

iOS Pjsip: Incoming Video Call Crash

柔情痞子 提交于 2019-12-13 03:06:57
问题 When I recieve incoming Video Call, my application got crashed. Here is the code for Video Configuration: acc_cfg.vid_in_auto_show = 1; acc_cfg.vid_out_auto_transmit = 1; acc_cfg.vid_wnd_flags = PJMEDIA_VID_DEV_WND_BORDER.rawValue | PJMEDIA_VID_DEV_WND_RESIZABLE.rawValue; acc_cfg.vid_cap_dev = PJMEDIA_VID_DEFAULT_CAPTURE_DEV.rawValue; acc_cfg.vid_rend_dev = PJMEDIA_VID_DEFAULT_RENDER_DEV.rawValue; Here is the code I used when I accept the call: call_opt.aud_cnt = 1; call_opt.vid_cnt = self

pjsua: unable to import pjsua python module

旧时模样 提交于 2019-12-12 13:40:31
问题 I'm getting the below error while trying to import python module pjsua. I have Mac OS 10.8.1 version. I verified the solution provided in http://www.darrensessions.com/?p=292 and the solution seemed to have fixed this issue in MacOS-10.7. Seems like this is broken again for MacOS-10.8. I did not got any errors when compiling the code. Only get the below error when importing PJSUA module. >>> import pjsua Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pjsua.py",

linking a shared library with statics using CMake

一世执手 提交于 2019-12-12 10:59:25
问题 cmake 2.8 gcc (GCC) 4.8.1 Edit ---------- Wrapping the static libraries in whole-archive works for every library except the pjmedia-videodev The problem now is that when I try and build I get the following error. cbar_factory_init': colorbar_dev.c:(.text+0x2a0): undefined reference to pjmedia_format_init_video' Hello, I have created a shared library and I need to link that library with about 10 static libraries. I then link my executable with the shared library. My question is that when I run