PJSIP making a simple Phone Call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:


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

 String buddy_uri = "sip:100@pbxip";


    MyCall call = new MyCall(account, -1);
    CallOpParam prm = new CallOpParam(true);

    try {

        call.makeCall(buddy_uri, prm);

    } catch (Exception e) {
        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
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux