[Asterisk-Users] I'm stumped

Wilson Pickett spamsucks2005 at gmail.com
Mon Dec 13 00:15:25 MST 2004


> the files:  I have asterisk running as the user asterisk also.

who is the web server running as?

isn't the system() function seeing this:

sudo -u asterisk /usr/sbin/asterisk -rx database put cidname
$PhoneNumber \"$PhoneName\""

when it should be seeing this after the sudo -u asterisk :

"asterisk /usr/sbin/asterisk -rx database put cidname (etc)" <-- whole
cmd in quotes

Try typing this at the linux prompt:

asterisk -rx database put cidname 123 "Julius Ceasar"

I don't think it will work



More information about the asterisk-users mailing list