<div>Thanks Alex <br>Thats just a test code </div><div><br></div><div>&gt;&gt;exten =&gt; _.,1,Answer<br><div>&gt;&gt;exten =&gt; _.,n,NoOp(${EXTEN})</div><div><br></div><div>This also have the same output as that of previous.</div>
<div><br></div><div> <br><div class="gmail_quote">On Mon, Nov 23, 2009 at 3:46 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am curious what happens if you do the following instead:<br>
<br>
[abc]<br>
<br>
exten =&gt; _.,1,Answer<br>
exten =&gt; _.,n,NoOp(${EXTEN})<br>
<div class="im"><br>
ABBAS SHAKEEL wrote:<br>
<br>
&gt; Thanks Alex,<br>
&gt;<br>
&gt; suppose this is the context<br>
&gt;<br>
&gt; [abc]<br>
&gt; exten =&gt; s,1,Answer();<br>
&gt; exten =&gt; s,n,Noop(${EXTEN});<br>
&gt; exten =&gt; s,n,Noop(${CALLERID(dnid)});<br>
&gt;<br>
&gt; I get the following out put<br>
&gt;<br>
&gt;<br>
&gt; Answer(&quot;DAHDI/2-1&quot;, &quot;&quot;)<br>
&gt; NoOp(&quot;DAHDI/2-1&quot;, &quot;s&quot;) in new stack<br>
&gt;  NoOp(&quot;DAHDI/2-1&quot;, &quot;&quot;)<br>
&gt;<br>
&gt; But i need the number that the user is dialing not the &quot;s&quot;;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Nov 23, 2009 at 3:24 PM, Alex Balashov<br>
</div><div class="im">&gt; &lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a> &lt;mailto:<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     ABBAS SHAKEEL wrote:<br>
&gt;<br>
&gt;      &gt; I  am facing problem while getting the number dialed. if the user is<br>
&gt;      &gt; using SIP phone then we can get the number dialed. but if it<br>
&gt;     using PSTN<br>
&gt;      &gt; then we are unable to get the number dialed using CALLERID(dnid).<br>
&gt;     Do any<br>
&gt;      &gt; other way exists to find out? Or this is some thing wrong with<br>
&gt;     the PSTN.<br>
&gt;<br>
&gt;     DNID breakage is a long-standing Asterisk problem.<br>
&gt;<br>
&gt;     If this is taking place in the context of the dial plan, why not just<br>
&gt;     use ${EXTEN}?<br>
&gt;<br>
&gt;     --<br>
&gt;     Alex Balashov - Principal<br>
&gt;     Evariste Systems<br>
&gt;     Web     : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
&gt;     Tel     : (+1) (678) 954-0670<br>
&gt;     Direct  : (+1) (678) 954-0671<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt;     asterisk-users mailing list<br>
&gt;     To UNSUBSCRIBE or update options visit:<br>
&gt;       <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Kind Regards<br>
&gt; Shakeel Abbas<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="h5">&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
--<br>
Alex Balashov - Principal<br>
Evariste Systems<br>
Web     : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel     : (+1) (678) 954-0670<br>
Direct  : (+1) (678) 954-0671<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br></div><div>Kind  Regards<br>Shakeel Abbas<br><br>
</div></div>