Hi, all Stupid question, but how do you exit asterisk console without stopping the asterisk? Tried quit and exit: *CLI> exit No such command 'exit' (type 'help' for help) *CLI> quit No such command 'quit' (type 'help' for help) *CLI> Any other ideas? I started asterisk with -cvvvvg option. Same problem if use asterisk -r to connect. Can not exit. Any ideas? Thanks, Rudolf
Try safe_asterisk , for an easy way to start asterisk in background, and then connect with asterisk process running asterisk -rx Now you can use exit, and by the way you may look on wiki diferent ways to run asterisk. On 1/23/07, Rudolf Ladyzhenskii <rumatech@gmail.com> wrote:> > Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried quit and exit: > > *CLI> exit > No such command 'exit' (type 'help' for help) > *CLI> quit > No such command 'quit' (type 'help' for help) > *CLI> > > > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit. > > Any ideas? > Thanks, > Rudolf > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070123/3376804e/attachment.htm
Am 23.01.2007 um 12:36 schrieb Rudolf Ladyzhenskii:> Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried quit and exit: > > *CLI> exit > No such command 'exit' (type 'help' for help) > *CLI> quit > No such command 'quit' (type 'help' for help) > *CLI> > > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit.If you startet with "-c" Asterisk doesn't allow you to "exit". You have to "stop now": ---cut--- *CLI> exit No such command 'exit' (type 'help' for help) *CLI> stop now debian:~# ---cut---> Any ideas?Start Asterisk normal with a simple "asterisk" and than log into the CLI with "asterisk -r" THAN you can use "exit". Stefan -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de
On Tue, 23 Jan 2007 22:36:12 +1100 "Rudolf Ladyzhenskii" <rumatech@gmail.com> wrote:> Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried qui > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit.Run asterisk just by typing 'asterisk'. Using the -c option will cause the behaviour you are experiencing. Then when you connect with 'asterisk -r', you can use 'exit' (or just ctrl-c) to disconnect, but leave Asterisk running in the background. On the console, you can get the -vvvv behaviour with 'set verbose 4' Cheers, Gavin.
Rudolf Ladyzhenskii wrote:> Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk?If you start Asterisk without any options: asterisk And then reconnect to it via the -r option asterisk -r Then typing exit on the console will exit without stopping Asterisk. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Thanks to all. All OK now. I thought that -c option is equivalent to starting an asterisk daemon and connecting to it. Obviously I was wrong. Thanks again, Rudolf On 1/23/07, Doug Lytle <support@drdos.info> wrote:> Rudolf Ladyzhenskii wrote: > > Hi, all > > > > Stupid question, but how do you exit asterisk console without stopping > > the asterisk? > > If you start Asterisk without any options: > > asterisk > > And then reconnect to it via the -r option > > asterisk -r > > Then typing exit on the console will exit without stopping Asterisk. > > Doug > > > -- > > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Rudolf Ladyzhenskii wrote:> Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried quit and exit: > > *CLI> exit > No such command 'exit' (type 'help' for help) > *CLI> quit > No such command 'quit' (type 'help' for help) > *CLI> > > > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit. > > Any ideas? > Thanks, > Rudolf > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersctrl-c :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070123/560f88b0/signature.pgp
Rudolf Ladyzhenskii wrote:> Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried quit and exit: > > *CLI> exit > No such command 'exit' (type 'help' for help) > *CLI> quit > No such command 'quit' (type 'help' for help) > *CLI> > > > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit.Many unix programs you can exit with <ctrl> d - asterisk console does also.
! Paul Hales Technical Manager AsteriskIT On Tue, 2007-01-23 at 22:36 +1100, Rudolf Ladyzhenskii wrote:> Hi, all > > Stupid question, but how do you exit asterisk console without stopping > the asterisk? > > Tried quit and exit: > > *CLI> exit > No such command 'exit' (type 'help' for help) > *CLI> quit > No such command 'quit' (type 'help' for help) > *CLI> > > > Any other ideas? > I started asterisk with -cvvvvg option. Same problem if use asterisk > -r to connect. Can not exit. > > Any ideas? > Thanks, > Rudolf > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Derek Whitten,hello? *CLI> stop now You can input help to see all the commands. Like this: *CLI> help ======= 2007-01-23 23:10:12 ======>Rudolf Ladyzhenskii wrote: >> Hi, all >> >> Stupid question, but how do you exit asterisk console without stopping >> the asterisk? >> >> Tried quit and exit: >> >> *CLI> exit >> No such command 'exit' (type 'help' for help) >> *CLI> quit >> No such command 'quit' (type 'help' for help) >> *CLI> >> >> >> Any other ideas? >> I started asterisk with -cvvvvg option. Same problem if use asterisk >> -r to connect. Can not exit. >> >> Any ideas? >> Thanks, >> Rudolf >> _______________________________________________ >> --Bandwidth and Colocation provided by Easynews.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > >ctrl-c > >:-) >_______________________________________________ >--Bandwidth and Colocation provided by Easynews.com -- > >asterisk-users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >= = = = = = = = = = = = = = = = = = = ????????? ?? ?????????? ????????lijun820311@163.com ??????????2007-01-24
On Wed, Jan 24, 2007 at 10:35:50AM +1100, Paul Hales wrote:> !This only "works" from a remote asterisk shell (asterisk -r). It will not exit: it will spawn a subshell. Once you exit the subshell, you get back to the original remote asterisk shell. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
In article <20070123131921.GT18852@xorcom.com>, tzafrir.cohen@xorcom.com says...> > Try safe_asterisk , for an easy way to start asterisk in background, > > a plain 'asterisk' is even better and safer. > asterisk -U asterisk . is better. > /etc/init.d/asterisk start > is similar.Why is this better than safe_asterisk? -- Tomislav Parcina ime.prezime@email.t-com.hr -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 1954 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070125/c28b6a9f/attachment.bin
In article <20070125160149.GW18852@xorcom.com>, tzafrir.cohen@xorcom.com says...> E.g: because you have a valid PID file of the controlling process. If > you actually want to kill it, you can. > > And you don't need physical access to the system to get to the one and > only real console. OTOH, if you do have physical access, you have full > control of Asterisk, as you may inject custom dialplan.And if, for some reason Asterisk dies, you have to start it manually? -- Tomislav Parcina ime.prezime@email.t-com.hr -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2090 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070126/d3bcf090/attachment.bin