Bug#463983: asterisk doesn't behave the same when in debug mode
tzafrir.cohen at xorcom.com
Tue Feb 5 09:06:36 UTC 2008
On Tue, Feb 05, 2008 at 09:26:12AM +0100, Arthur Lutz wrote:
> On Mon, Feb 04, 2008 at 04:33:18PM +0200, Faidon Liambotis wrote:
> > root wrote:
> >> To get my asterisk to work I have to launch it through the command
> >> line:
> >> asterisk -vvvvvvvc
> >> Otherwise, through /etc/init.d/asterisk start It doesn't behave in the
> >> same way (most operations get a "603 Declined" response).
What operations, exactly? "603"? Where exactly do you see such a
> > Probably because that way asterisk runs as root, while the init script
> > calls asterisk -U asterisk (run as the asterisk user).
> > You probably have some configuration files owned by root and with no
> > permissions.
> All the files in /etc/asterisk/ are owned by asterisk. Asterisk is
> running. If I connect to the console with "asterisk -r" and try to make
> a phone call, I get :
Is this from asterisk running as root?
Please avoid doing that. It is a bad security practice.
If you really need to run Asterisk "interactively" to debug its startup,
Or make sure you add '-U asterisk' to the command-line.
> Verbosity is at least 3
> -- Executing [echo at DefaultOutgoingRule:1] AGI("SIP/102-0828ed30",
> "dial.php|entity=110&group=6&extension=echo") in new stack
> -- Launched AGI Script /usr/share/asterisk/agi-bin/dial.php
> == dial.php|entity=110&group=6&extension=echo: Failed to
> execute '/usr/share/asterisk/agi-bin/dial.php': Permission
> -- AGI Script dial.php completed, returning 0
> == Auto fallthrough, channel 'SIP/102-0828ed30' status is 'UNKNOWN'
> but in /usr/share/asterisk/agi-bin I have the following permissions :
> -rwxr-xr-x 1 root root 323 Jan 9 14:25 agi-callback.agi
> -rwxr-xr-x 1 root root 42K Jan 23 16:13 class.jabber.php
> -rwxr-xr-x 1 root root 85 Jan 9 14:25 dial.php
> -rwxr-xr-x 1 root root 89 Jan 9 14:25 incoming.php
> -rwxr-xr-x 1 root root 1.9K Jan 23 17:40 jabber-notify.php
> -rwxr-xr-x 1 root root 26K Dec 26 16:20 phpagi-asmanager.php
> -rwxr-xr-x 1 root root 65K Dec 26 16:20 phpagi.php
> -rwxr-xr-x 1 root root 88 Jan 9 14:25 playivr.php
> -rwxr-xr-x 1 root root 8.1K Dec 20 2006 receive_fax
> -rwxr-xr-x 1 root root 87 Jan 9 14:25 record.php
> Can the permission denied come from the php import in dial.php ?
ls -ld /usr/share/asterisk/agi-bin/ /usr/share/asterisk
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the Pkg-voip-maintainers