How can I quit pjsua app, when I press 'h'?

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

 



Well, adn how do you pretend to hangup the calls? You'll have to decide...

On Mon, Sep 28, 2009 at 6:30 PM, Rachel Baskaran
<rachelbaskaran at gmail.com> wrote:
> Hey,
>
> Can anyone tell me, how to quit pjsua once I hangup. I meant I waan replace
> the quit option with hang-up.
>
> /* Console option for hangup and quit */
> char option[10];
>
> puts("Press h to hangup all calls, 'q' to quit");
> 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();
> }
>
> /* Destroy PJSUA on quit */
> pjsua_destroy();
> return 0;
> }
>
> This part of code hangs-up once 'h' is pressed and quits once 'q' is
> pressed. I want to do the job of quit once 'h' is pressed.
> 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



[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