Bug#463983: asterisk doesn't behave the same when in debug mode

Arthur Lutz arthur.lutz at logilab.fr
Tue Feb 5 08:26:12 UTC 2008


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). 
> 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 : 

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

-- 
Arthur LUTZ
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Développement logiciel avancé - Intelligence Artificielle - Formations





More information about the Pkg-voip-maintainers mailing list