PJSIP making a simple Phone Call

SM
Symeon Mattes
Fri, Mar 31, 2017 8:44 AM

I'm trying to use the pjsip library as a cordova plugin in Android. I'm
trying to have a simple phone call. I'm using the sample code that is
provided from pjsip in pjsip-apps/src/pjsua/android. Having created
buddy with "sip:100@pbxip" I have a phone call from the default
application but from the plugin I hve different errors.

The basic call is:

============================

|Stringbuddy_uri ="sip:100@pbxip";MyCallcall
=newMyCall(account,-1);CallOpParamprm
=newCallOpParam(true);try{call.makeCall(buddy_uri,prm);}catch(Exceptione){call.delete();e.printStackTrace();return;}|

====================

Some differences I've noticed are (default refers to the application
that run successfully):

  1. Creating Android JNI stream (default), Creating OpenSL stream (mine)
  2. AUDIO_OUTPUT_FLAG_FAST denied by client (mine)
  3. AUDIO_INPUT_FLAG_FAST denied by client (mine)
  4. Starting OpenSL stream (mine)

It seems as I have to initialise in a specific way the stream. Any help
on that?

Thanks
Symeon

I'm trying to use the pjsip library as a cordova plugin in Android. I'm trying to have a simple phone call. I'm using the sample code that is provided from pjsip in pjsip-apps/src/pjsua/android. Having created buddy with "sip:100@pbxip" I have a phone call from the default application but from the plugin I hve different errors. The basic call is: ============================ |Stringbuddy_uri ="sip:100@pbxip";MyCallcall =newMyCall(account,-1);CallOpParamprm =newCallOpParam(true);try{call.makeCall(buddy_uri,prm);}catch(Exceptione){call.delete();e.printStackTrace();return;}| ==================== Some differences I've noticed are (default refers to the application that run successfully): 1. Creating Android JNI stream (default), Creating OpenSL stream (mine) 2. AUDIO_OUTPUT_FLAG_FAST denied by client (mine) 3. AUDIO_INPUT_FLAG_FAST denied by client (mine) 4. Starting OpenSL stream (mine) It seems as I have to initialise in a specific way the stream. Any help on that? Thanks Symeon