hi monks,
The following code is to execute asterisk commands through perl/cgi, but i am getting the following error for this program.
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?)
And one more thing is if i am running the same program as perl file the asterisk commands are executing without any error.
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print `asterisk -rx "extensions reload"`;
print `asterisk -rx "sip reload"`;
Can any one help me as soon as possible...
Thanks in advance.