<div>Steve,</div>
<div>&nbsp;</div>
<div>I would suggest doing Set(__CALLERID(name)=${ANI}) without the __underscore.</div>
<div>&nbsp;</div>
<div>I would think that Set(__CALLERID(name)=${ANI}) is not the same as Set(CALLERID(name)=${ANI}) so when you are doing the NoOP(${CALLERID}) it is looking for $CALLERID(name) &amp; $CALLERID(number)&nbsp;&nbsp;not $__CALLERID(name) &amp; $__CALLERID(number).
</div>
<div>&nbsp;</div>
<div>Don't know if that is really the case, but it sounds good to me :)</div>
<div>&nbsp;</div>
<div>bp<br>&nbsp;</div>
<div><span class="gmail_quote">On 11/3/06, <b class="gmail_sendername">Steve Totaro</b> &lt;<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I receive calls over a T1 with callerid and then *ani*dnis*.&nbsp;&nbsp;I am able<br>to strip out the ani and the dnis in the dialplan but when I try to set
<br>the caller ID to be the ani, it looks ok but then if I do a NoOp<br>callerid on the next line, I get unknown.<br><br>Here is the section of my dialplan:<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,1,Set(ANI=${EXTEN})<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,2,Set(__ANI=${CUT(ANI,*,2)})
<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,3,Set(DNIS=${EXTEN})<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,4,Set(__DNIS=${CUT(EXTEN,*,3)})<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,5,SetVar(__TransferToExt=6101)<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,6,Set(__CALLERID(name)=${ANI})
<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,7,Set(__CALLERID(number)=${ANI})<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,8,NoOP(${CALLERID})<br>exten =&gt; _*NXXNXXXXXX*NXXNXXXXXX*,9,Goto(DNIS,${DNIS},1)<br><br>[DNIS]<br>exten =&gt; _NXXNXXXXXX,1,AGI(agi://172.16.1.135)
<br>exten =&gt; _NXXNXXXXXX,2,Setvar(__ActiveCallID=${ActiveCallID})<br>exten =&gt; _NXXNXXXXXX,3,Goto(ext-queues,${TransferToExt},1)<br>exten =&gt; _NXXNXXXXXX,104,Goto(ext-queues,6004,1)<br>exten =&gt; h,1,DeadAGI(agi://172.16.1.135:4574)
<br><br><br>Here is the output on the console:<br>&nbsp;&nbsp; -- Attempting native bridge of SIP/Sangoma01-f7bd and SIP/Sangoma03-0548<br>&nbsp;&nbsp; -- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;,<br>&quot;ANI=*4102921029*8007318154*&quot;) in new stack
<br>&nbsp;&nbsp; -- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;, &quot;__ANI=4102921029&quot;) in new stack<br>&nbsp;&nbsp; -- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;,<br>&quot;DNIS=*4102921029*8007318154*&quot;) in new stack<br>&nbsp;&nbsp; -- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;, &quot;__DNIS=8007318154&quot;) in new stack
<br>&nbsp;&nbsp; -- Executing SetVar(&quot;SIP/Sangoma01-7f6e&quot;, &quot;__TransferToExt=6101&quot;) in<br>new stack<br>*&nbsp;&nbsp;&nbsp;&nbsp;-- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;,<br>&quot;__CALLERID(name)=4102921029&quot;) in new stack
<br>&nbsp;&nbsp; -- Executing Set(&quot;SIP/Sangoma01-7f6e&quot;,<br>&quot;__CALLERID(number)=4102921029&quot;) in new stack<br>&nbsp;&nbsp; -- Executing NoOp(&quot;SIP/Sangoma01-7f6e&quot;, &quot;&quot;Unknown&quot; &lt;Unknown&gt;&quot;) in
<br>new stack*<br>&nbsp;&nbsp; -- Executing Goto(&quot;SIP/Sangoma01-7f6e&quot;, &quot;DNIS|8007318154|1&quot;) in new<br>stack<br><br>Thanks,<br>Steve Totaro<br>_______________________________________________<br>--Bandwidth and Colocation provided by 
<a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>