If the above is not possible. The only other option I can think of is setting a timer. But I'm not sure how to do that. Any help would be great! Rachel On Mon, Sep 28, 2009 at 2:56 PM, Rachel Baskaran <rachelbaskaran at gmail.com>wrote: > Is there a code as below for this issue too? > > for(;;){ > /* Console option for hangup and quit */ > char option[10]; > > puts("Press h to hangup all calls"); > if(fgets(option, sizeof(option), stdin) == NULL){ > puts("EOF while reading stdin, will quit now..."); > break; > } > > /*if(option[0] == 'q') > break;*/ > > if(option[0] == 'h') > pjsua_call_hangup_all(); > break; > } > > /* Destroy PJSUA on quit */ > pjsua_destroy(); > return 0; > } > > Can I quit the app automatically,if the call is taking long to respond me? > > I'm looking for something like that. > > Rachel > > > On Mon, Sep 28, 2009 at 2:43 PM, Sa?l Ibarra <saghul at gmail.com> wrote: > >> Check the mediastate callback. You should check for the status code, >> for example is its 408 you could exit... >> >> On Mon, Sep 28, 2009 at 7:21 PM, Rachel Baskaran >> <rachelbaskaran at gmail.com> wrote: >> > Hey all, >> > >> > I figured to hangup and quit, once 'h' is pressed. >> > Now I need a console app to quit pjsua if the person doesn't pick my >> call , >> > like case scenario. >> > >> > Any Help! >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip at lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> >> >> -- >> /Sa?l >> http://www.saghul.net | http://www.sipdoc.net >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090928/36e240b1/attachment.html>