<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/07/2011 07:08 AM, warrior back wrote:
<blockquote
cite="mid:CAF-YeJcetao175N1Avh2oYLVguAvfR0Cg2Z1GnhkmhOU-XxJkw@mail.gmail.com"
type="cite"><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("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>
</blockquote>
<tt>Silly question, but is there actually a channel currently in
that extension when you are calling ast_channel_get_by_exten()?<br>
<br>
Mark Michelson<br>
</tt>
</body>
</html>