1
votes

I have tried Apjsua project build it from the pjsip.org doesn't got success. i spent lot of time on that still it's not registering properly. if any one of you have successfully build apjsua sample app then please help me.

I googled lot for sip, many peoples are suggesting me to use CSipSimple but i need more options than csipsimple features. so i tried to build pjsip app. but no success. Does anyone have any experience with pjsip on android devices ? share with me it would be greatly appreciated.

1
what do you mean "registering properly"? do you have problem with registering sip user or with building apjsua - Dr Glass
unable to register with my account name and password. i gave all the information in the cfg file properly still not able to register. - RajaReddy PolamReddy
I do not have much experience with PJSIP because I just started too, and I didn't use a configuration file yet so i can't help you with this. But I tested the functionality of the "console appliacation" (Application Menus) and all functions in main menu works good. At the beginning of the program I'm using a function to register etc. Now i'm trying to modify and improve it. You can also try to register this way. - Dr Glass
how u did for registration, are u using pjsip ? - RajaReddy PolamReddy
Yes, i'm using pjsip and. I successfully build an application "apjsua" and run on device. Application looks like "console" and you have "char" options. And there is a command "+a" to add new account, when you add an account it should automatically register you on sipserver. Do you have same application? - Dr Glass

1 Answers

2
votes

For example:

When you start application you should have a menu. Now type

+a

After that console should ask for more information, for example:

  1. sip:username@sipserver
  2. sip:sipserver
  3. *
  4. username
  5. password

After that you should be logged. But before this you should change "setInput" function in pjsip-apps/src/pjsua/main_android.c on:

void setInput(char *s)
{
    int i = 0;

    for (i = 0; i < sizeof(app_var.line); i++)
    {
        app_var.line[i]=NULL;
    }

    if (strlen(s) < sizeof(app_var.line))
        strncpy(app_var.line, s, strlen(s));

    pj_sem_post(app_var.input_sem);
}