<div dir="ltr">Hi,<div style>I&#39;m getting an issue while executing AMI Originate. </div><div style>I&#39;m getting &quot;extension does not exists&quot; on Originate&#39;s Response, and on the other hand Asterisk CLI say &quot;fwrite() returned error: Broken pipe&quot;</div>
<div style>Please suggest me what is wrong.</div><div style><br></div><div style>Muhammad Faheem</div><div style><br></div><div style>### my originate code block ...</div><div style>-----------------------------------------------------------------------------------------------</div>
<div style><div style># <a href="http://ami-script.pl">ami-script.pl</a></div><div>my $astman = Asterisk::AMI-&gt;new(PeerAddr =&gt; &#39;127.0.0.1&#39;, PeerPort =&gt; &#39;5038&#39;, Username =&gt; &#39;faheem&#39;, Secret =&gt; &#39;secret&#39;);</div>
<div>                        die &quot;Unable to connect to asterisk&quot; unless ($astman);<br></div><div>                        my $resp_code = $astman-&gt;send_action({Action =&gt; &#39;Originate&#39;,<br></div><div>                                                        Channel =&gt; &#39;Local/11223344&#39;,</div>
<div>                                                        Context =&gt; &#39;users&#39;,</div><div>                                                        Exten =&gt; 100,</div><div>                                                        Priority =&gt;1 });</div>
<div>                        sleep(2);<br></div><div>                        my $response = $astman-&gt;get_response($resp_code);<br></div><div>                        print $response-&gt;{&#39;Response&#39;} .&quot;\n&quot;;</div>
<div>                        print $response-&gt;{&#39;Message&#39;} .&quot;\n&quot;;<br></div><div>                        $astman-&gt;disconnect ();</div><div><br></div><div style>####Script Output...</div><div style><b>Error</b></div>
<div><b>Extension does not exist</b><br></div><div>--------------------------------------------------------------------------------------</div><div style>;extensions.conf</div><div style>;;; Asterisk Dialplan </div><div style>
<div>[default]</div><div>exten =&gt; 11223344,1,NoOp(&quot;welcome&quot;)</div><div>exten =&gt; 11223344,n,Answer()</div><div>exten =&gt; h,1,NoOp(&quot;hangup...&quot;)<br></div><div><br></div></div><div style>-----------------------------------------------------------------------------------------</div>
<div style><br></div><div><br></div><div><br></div></div></div>