<br><div class="gmail_quote"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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("1000","default"); but is returns NULL<br><br><b>extensions.conf is</b><br>
[default]<br>exten => 1000,1,Dial(SIP/1000)<br>exten => 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>