<div>Steve,</div>
<div> </div>
<div>I would suggest doing Set(__CALLERID(name)=${ANI}) without the __underscore.</div>
<div> </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) & $CALLERID(number) not $__CALLERID(name) & $__CALLERID(number).
</div>
<div> </div>
<div>Don't know if that is really the case, but it sounds good to me :)</div>
<div> </div>
<div>bp<br> </div>
<div><span class="gmail_quote">On 11/3/06, <b class="gmail_sendername">Steve Totaro</b> <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> 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*. 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 => _*NXXNXXXXXX*NXXNXXXXXX*,1,Set(ANI=${EXTEN})<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,2,Set(__ANI=${CUT(ANI,*,2)})
<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,3,Set(DNIS=${EXTEN})<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,4,Set(__DNIS=${CUT(EXTEN,*,3)})<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,5,SetVar(__TransferToExt=6101)<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,6,Set(__CALLERID(name)=${ANI})
<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,7,Set(__CALLERID(number)=${ANI})<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,8,NoOP(${CALLERID})<br>exten => _*NXXNXXXXXX*NXXNXXXXXX*,9,Goto(DNIS,${DNIS},1)<br><br>[DNIS]<br>exten => _NXXNXXXXXX,1,AGI(agi://172.16.1.135)
<br>exten => _NXXNXXXXXX,2,Setvar(__ActiveCallID=${ActiveCallID})<br>exten => _NXXNXXXXXX,3,Goto(ext-queues,${TransferToExt},1)<br>exten => _NXXNXXXXXX,104,Goto(ext-queues,6004,1)<br>exten => h,1,DeadAGI(agi://172.16.1.135:4574)
<br><br><br>Here is the output on the console:<br> -- Attempting native bridge of SIP/Sangoma01-f7bd and SIP/Sangoma03-0548<br> -- Executing Set("SIP/Sangoma01-7f6e",<br>"ANI=*4102921029*8007318154*") in new stack
<br> -- Executing Set("SIP/Sangoma01-7f6e", "__ANI=4102921029") in new stack<br> -- Executing Set("SIP/Sangoma01-7f6e",<br>"DNIS=*4102921029*8007318154*") in new stack<br> -- Executing Set("SIP/Sangoma01-7f6e", "__DNIS=8007318154") in new stack
<br> -- Executing SetVar("SIP/Sangoma01-7f6e", "__TransferToExt=6101") in<br>new stack<br>* -- Executing Set("SIP/Sangoma01-7f6e",<br>"__CALLERID(name)=4102921029") in new stack
<br> -- Executing Set("SIP/Sangoma01-7f6e",<br>"__CALLERID(number)=4102921029") in new stack<br> -- Executing NoOp("SIP/Sangoma01-7f6e", ""Unknown" <Unknown>") in
<br>new stack*<br> -- Executing Goto("SIP/Sangoma01-7f6e", "DNIS|8007318154|1") 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> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>