[App_rpt-users] Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

Florian Schmid dl1flo at u01.de
Thu Dec 4 17:24:28 UTC 2014


Hi,

I have try the Same with Shell_exec(...);
In a php Script with Same Problem.

Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

If anyone Know the Solution, Send it to me too.

Thanks.

73 DL1FLO, Florian

> Am 04.12.2014 um 18:05 schrieb Skyler Fennell <electricity440 at gmail.com>:
> 
> I created a simple php file where anyone with the link can disconnect my nose from all links if something wrong is going on (due to the fact my node is same channel, half duplex linked, and if it was stuck on transmit, local transmissions  would double with the node)
> 
> <?php
> 
> echo "All links sucessfully disconnected from 40764, KDØWHB test1";
> 
> echo '<pre>';
> 
> // Outputs all the result of shellcommand "", and returns
> // the last output line into $last_line. Stores the return value
> // of the shell command in $retval.
> $last_line = system('/etc/asterisk/scripts/disconnect', $retval);
> 
> // Printing additional info
> echo '
> </pre>
> <hr />Last line of the output: ' . $last_line . '
> <hr />Return value: ' . $retval;
> ?>
> 
> The code was found on the php website as a sample and I just changed ls to my script that works when ran from a normal shell.
> 
> Visiting kd0whb.duckdns.org/disconnect.php shows the output of "unable to connect to remote" 
> 
> Any suggestions? 
> 
> Thanks,
> Skyler, KDØWHB
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
> 
> To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
> You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.




More information about the App_rpt-users mailing list