<DIV><STRONG><FONT face="arial black">Hello,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face="arial black"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face="arial black">I want to call a peer over the Asterisk Manager with this php-script:</FONT></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;html&gt;<BR>&lt;body&gt;<BR>&lt;PRE&gt;<BR>&lt;?<BR>$socket = fsockopen("192.168.204.44","5038", $errno, $errstr, <BR>$timeout);<BR>fputs($socket, "Action: Login\r\n");<BR>fputs($socket, "UserName: test\r\n");<BR>fputs($socket, "Secret: test\r\n\r\n");<BR>//fputs($socket, "Action: ListCommands\r\n\r\n");<BR><BR>fputs($socket, "Action: Originate\r\n");<BR>fputs($socket, "Channel: 6159bfb47b9\r\n\r\n");<BR>fputs($socket, "Exten: 1009\r\n\r\n");<BR>fputs($socket, "Context: test\r\n\r\n");<BR>fputs($socket, "Priority: 1\r\n\r\n");<BR><BR><BR>fputs($socket, "Action: Logoff\r\n\r\n");<BR>while (!feof($socket)) {<BR>$wrets .= fread($socket, 8192);<BR>}<BR>fclose($socket);<BR>echo &lt;&lt;&lt;ASTERISKMANAGEREND<BR>ASTERISK MANAGER OUTPUT:<BR>$wrets<BR>ASTERISKMANAGEREND;<BR>?&gt;<BR>&lt;/pre&gt;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT face="arial black">I got this resulat: </FONT></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV><PRE>ASTERISK MANAGER OUTPUT:
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted

Response: Error
Message: Invalid channel


Response: Error
Message: Missing action in request

Response: Error
Message: Missing action in request

Response: Error
Message: Missing action in request

Response: Goodbye
Message: Thanks for all the fish.

<STRONG><FONT face="arial black">I tried many diffrent SIP/Channels but nothing works</FONT></STRONG></PRE></DIV>
<DIV><STRONG><FONT face="arial black"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face="arial black">THX</FONT></STRONG></DIV><p>
                <hr size=1>Gesendet von <a href="http://de.mail.yahoo.com" target=_new>Yahoo! Mail</a> - Jetzt mit 250MB kostenlosem Speicher