<DIV>wau thank you it works!! but,</DIV>
<DIV> </DIV>
<DIV>first it says that e loop is detected, </DIV>
<DIV> </DIV>
<DIV>and secondary what must I do to hand over the new working channel to my x-lite to use it???</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>DENGENS <BR><BR><B><I>Dana Olson <rickaster@gmail.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On 4/27/05, Guy Boehm <DENDENGENS@YAHOO.DE>wrote:<BR>> Hello,<BR>> <BR>> I want to call a peer over the Asterisk Manager with this php-script:<BR>> <BR>> <BR>> <BR>> <BR>> <PRE><BR>> <?<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 <<<ASTERISKMANAGEREND<BR>> ASTERISK MANAGER OUTPUT:<BR>> $wrets<BR>> ASTERISKMANAGEREND;<BR>> ?><BR>> </PRE><BR>> <BR>> <BR>> <BR>> I got this resulat: <BR>> <BR>> ASTERISK MANAGER OUTPUT:<BR>Asterisk Call Manager/1.0<BR>Response:<BR>> Success<BR>Message: Authentication accepted<BR><BR>Response: Error<BR>Message: Invalid<BR>> channel<BR><BR><BR>Response: Error<BR>Message: Missing action in request<BR><BR>Response:<BR>> Error<BR>Message: Missing action in request<BR><BR>Response: Error<BR>Message: Missing<BR>> action in request<BR><BR>Response: Goodbye<BR>Message: Thanks for all the fish.<BR><BR>I<BR>> tried many diffrent SIP/Channels but nothing works<BR>> <BR>> THX<BR><BR><BR><BR><BR><BR>On top of what Richard mentioned, you have too many \r\n in the<BR>Originate action parameters. Only the final one should have two sets,<BR>the others hould have only
one.<BR>--<BR>Dana<BR>_______________________________________________<BR>Asterisk-Users mailing list<BR>Asterisk-Users@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR>To UNSUBSCRIBE or update options visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><p>
                <hr size=1>Gesendet von <a href="http://de.mail.yahoo.com" target=_new>Yahoo! Mail</a> - Jetzt mit 250MB kostenlosem Speicher