Hey all,<br><br> Something is wrong when i use originate command to call my phone (Asterisk1.4.22 + xp100 card).<br>Actually, i have two problems.<br>The first one: If i fire a outgoing call using originate command directly, after my pc startup, i will receive below error message:<br>
[Nov 26 07:58:53] NOTICE[6559]: channel.c:2898 __ast_request_and_dial: Unable to request channel Zap/1/13xxxxxxxxx<br><br>but i can call the FXO using my phone, everything seems perfect! After the incomming call, i fire outgoing call using originate again, it works now, my phone can ring, i also can pick up it(I seems originate did not create a new Zap channel,just used an exsiting channel?). <br>
<br>But the second problem produced, i received the Dialing, UP, Newexten events before my phone ringing. It is supposed that i send an originate command (like Dial application), the last state should be Dialing... until i pick up my phone or timeout. <br>
<br>These problems only for Zap channel, if i fire a outgoing call to SIP channel, it works well.<br>What wrong with me ?<br><br>Here is my php script:<br><br>$socket = fsockopen("<a href="http://127.0.0.1">127.0.0.1</a>","5038",$errno,$errstr,$timeout);<br>
fputs($socket,"Action: Login\r\n");<br>fputs($socket,"Username: tester\r\n");<br>fputs($socket,"Secret: test\r\n\r\n");<br><br>fputs($socket,"Action: Originate\r\n");<br>fputs($socket,"Channel: Zap/1/13XXXXXXXX\r\n");<br>
fputs($socket,"Context: callme\r\n");<br>fputs($socket,"Exten: s\r\n");<br>fputs($socket,"Priority: 1\r\n\r\n");<br><br>fclose($socket);<br><br>Best regards,<br><br>Xiaoshuang<br>