<br>
Silly question, but is there actually a channel currently in that<br>
extension when you are calling ast_channel_get_by_exten()?<br>
<br>
Mark Michelson<br><br>
Hi Mark Michelson<br><br>Yes I am able to make a SIP call between 1000 to 2000 hence a SIP channel is there for 1000 and 2000.<br><br>My purpose is to get a ast_channel  based upon number <br>Please help me how can i get a channel based upon phone/SIP number.<br>
<br><br>Thanks and Regards,<br>Vikash<br><br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 5:38 PM, warrior back <span dir="ltr">&lt;<a href="mailto:indianrocking@gmail.com">indianrocking@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><div class="gmail_quote"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br><br></blockquote><div> </div></div></div>I tried to get asterisk channel by calling ast_channel_get_by_exten function but It is returning NULL.<br>
<br>Based upon my extensions.conf (as shown below) I am calling ast_channel_get_by_exten  function as<br><br>ast_channel_get_by_exten(&quot;1000&quot;,&quot;default&quot;);    but is returns NULL<br><br><b>extensions.conf is</b><br>

[default]<br>exten =&gt; 1000,1,Dial(SIP/1000)<br>exten =&gt; 2000,1,Dial(SIP/2000)<br><br>Is it any way to get channel  through number(number may be SIP number or phone number)<br><br>Please help me how can i get channel by exten.<br>

<br><br><br><br>Thanks and Regards,<br>Vikash<br><br><br>
</blockquote></div><br>