I am running asterisk 1.4.18 trying to use MeetMe and option b. I am getting permissions denied failed to execute conf-background.agi on the CLI lrwxrwxrwx 1 root root 37 Mar 17 10:11 conf-background.agi -> /home/silentm/bin/conf-background.agi my conf background is a symbolic link - then my permissions are : [root at devcentos5x64 src]# ls -l /home/silentm/bin/conf-background.agi -rwSr-Sr-- 1 root root 81 Mar 17 10:44 /home/silentm/bin/conf-background.agi I have tried with just 744 and also with 744 and chmod +s. Any ideas why I would get the permission denied? Jerry
Jerry Geis wrote:> I am running asterisk 1.4.18 trying to use MeetMe and option b. > > I am getting permissions denied failed to execute conf-background.agi > on the CLI > > lrwxrwxrwx 1 root root 37 Mar 17 10:11 conf-background.agi -> > /home/silentm/bin/conf-background.agi > my conf background is a symbolic link - then my permissions are : > > [root at devcentos5x64 src]# ls -l /home/silentm/bin/conf-background.agi > -rwSr-Sr-- 1 root root 81 Mar 17 10:44 > /home/silentm/bin/conf-background.agi > > I have tried with just 744 and also with 744 and chmod +s. > > Any ideas why I would get the permission denied? > > Jerry >I seem to have gotten past the permissions error by putting #!/bin/sh # at the top of my script file... Now when I run permissions issue is gone, however, When I try to access by variables (as I have dont many other times) I am getting an error. In my call file I have SetVar: MEETME_PLAYFILE=/home/silentm/record/pc.610.wav And when I asking for the value of MEETME_PLAYFILE it is giving an error about the PIPE being broken. Is there something special about this option "b" and what an AGI can and cannot do??? The AGI actually calls a C program (this is the same C file I have been using for a long time) and I just ask the AGI for the values of the variables. Jerry
In article <47DE86DE.6070906 at pagestation.com>, Jerry Geis <geisj at pagestation.com> wrote:> I am running asterisk 1.4.18 trying to use MeetMe and option b. > > I am getting permissions denied failed to execute conf-background.agi > on the CLI > > lrwxrwxrwx 1 root root 37 Mar 17 10:11 conf-background.agi -> > /home/silentm/bin/conf-background.agi > my conf background is a symbolic link - then my permissions are : > > [root at devcentos5x64 src]# ls -l /home/silentm/bin/conf-background.agi > -rwSr-Sr-- 1 root root 81 Mar 17 10:44 /home/silentm/bin/conf-background.agi > > I have tried with just 744 and also with 744 and chmod +s. > > Any ideas why I would get the permission denied?It looks like you don't have execute permission. When the S is capital, I think it indicates that the s bit is set, but the x bit isn't (which is a situation that doesn't make much sense). It looks above like you did "chmod 6644 /home/silentm/bin/conf-background.agi". Try again with 0755 instead of 6644. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Jerry Geis wrote:> /home/silentm/bin/conf-background.agi > my conf background is a symbolic link - then my permissions are : > > [root at devcentos5x64 src]# ls -l /home/silentm/bin/conf-background.agi > -rwSr-Sr-- 1 root root 81 Mar 17 10:44 /home/silentm/bin/conf-background.agi >I'm guessing because the agi needs to run from: /var/lib/asterisk/agi-bin Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
I have been playing with meetme option b. I was wanting to use a spool call file going to a local channel, then bring a list of asterisk boxes into a meetme in talk only mode. then run the AGI to play a wave file then hangup. It seems to be doing all this but I hear no audio. I seem to get pipe errors when running the AGI. Should this work? Is there an example of this anywhere. I basically just want to bring in a list of asterisk boxes (console ports on their end) speak a wave file and hang up the meetme. seems easy enough. This same thing works for speaking live. All I added was playing a wave file instead with the agi. Jerry