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! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090928/2a97e876/attachment.html>