sanku has asked for the wisdom of the Perl Monks concerning the following question:
hi monks,
The following code is to execute asterisk commands through perl/cgi, but i am getting the following error for this program.
And one more thing is if i am running the same program as perl file the asterisk commands are executing without any error.Error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist +?) Unable to connect to remote asterisk (does /var/run/asterisk.ctl e +xist?)
Can any one help me as soon as possible... Thanks in advance.#!/usr/bin/perl print "Content-type:text/html\n\n"; print `asterisk -rx "extensions reload"`; print `asterisk -rx "sip reload"`;
Back to
Seekers of Perl Wisdom