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
message?

> > 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,
use:

  /etc/init.d/asterisk debug

Or make sure you add '-U asterisk' to the command-line.

> 
> Verbosity is at least 3
>     -- Executing [EMAIL PROTECTED]: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
>   denied

>    -- 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

head /usr/share/asterisk/agi-bin/dial.php

-- 
               Tzafrir Cohen
icq#16849755              jabber:[EMAIL PROTECTED]
+972-50-7952406           mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to