Marcus Deluigi (intern)
2005-Dec-01 18:32 UTC
[Asterisk-Users] Running asterisk within screen
Hi! I downloaded asterisk 1.2.0 and compiled it myself. The default behaviour is that calling 'asterisk' will return the prompt and calling 'asterisk -v' is returning the CLI. I want to run asterisk within screen, however '/usr/bin/screen -L /usr/sbin/asterisk -v' outputs: [screen is terminating] and I have no screen session running and I also have no asterisk CLI to connect to. I can't explain the behaviour and the screenlog is empty. Does anybody know, why it is not possible, to run asterisk within screen? (or, at least, it's not possible at my computer). Greetings, Marcus
> Does anybody know, why it is not possible, to run asterisk within > screen?Yes, it is possible but you can't scroll up so you only see the last ~40 lines. At least I didn't work for me but I didn't research this further. I just run it as for testing purposes: screen chroot /usr/local/asterisk /usr/sbin/asterisk -U asterisk -G asterisk -g -vvvvv -n Luki
On Fri, Dec 02, 2005 at 09:32:35AM +0800, Marcus Deluigi (intern) wrote:> > Hi! > > I downloaded asterisk 1.2.0 and compiled it myself. > The default behaviour is that calling 'asterisk' will return the prompt > and calling 'asterisk -v' is returning the CLI. > > I want to run asterisk within screen, however '/usr/bin/screen -L > /usr/sbin/asterisk -v' outputs: > [screen is terminating]Maybe you can get more details using strace: /usr/bin/screen -L strace -f -o /tmp/trace /usr/sbin/asterisk -v> and I have no screen session running and I also have no asterisk CLI to > connect to. > > I can't explain the behaviour and the screenlog is empty.permissions? If that is what you suspect, strace the whole screen session. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend