Unfinished call

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

 



>> +++ pjproject-1.0/pjsip-apps/src/pjsua/pjsua_app.c

> hi ignacio.sanchez
> yes also i faced this problem , can you please tell me where can i add
> this snippet code ??
> thanks man

Here :) (more help:
http://www.artima.com/forums/flat.jsp?forum=106&thread=164293)

>> --- pjproject-1.0-org/pjsip-apps/src/pjsua/pjsua_app.c    2009-02-18
>> 09:51:46.000000000 +0100
>> +++ pjproject-1.0/pjsip-apps/src/pjsua/pjsua_app.c    2009-02-18 <-------- In this file
>> 10:07:30.000000000 +0100
>> @@ -4278,6 +4278,21 @@
>>      return 0;
>>  }
>>
>> +/* Call alive verifier method */
>> +static int check_alive_call(void *arg) { <--------- Anywhere in the file
>> +    const pj_str_t SIP_INFO = pj_str("INFO");
>> +    while (1) {
>> +        sleep(4);
>> +        if (current_call != PJSUA_INVALID_ID) {
>> +            /* If can't send call request, hangup... */
>> +            pj_status_t status = pjsua_call_send_request(current_call,
>> &SIP_INFO, NULL);
>> +        }
>> +    }
>> +    return 0;
>> +}
>> +
>> +pthread_t t;
>> +
>>  pj_status_t app_main(void) <------ In this function in the file
>>  {
>>      pj_thread_t *stdout_refresh_thread = NULL;
>> @@ -4290,6 +4305,12 @@
>>      return status;
>>      }
>>
>> +    pj_thread_t *check_alive_call_thread= NULL;
>> +
>> +    /* Start call alive verifier */
>> +    pj_thread_create(app_config.pool, "check_alive_call",
>> &check_alive_call,
>> +    NULL, 0, 0, &check_alive_call_thread);
>> +
>>      /* Start console refresh thread */
>>      if (stdout_refresh > 0) {
>>      pj_thread_create(app_config.pool, "stdout", &stdout_refresh_proc,



[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