<div>I think you can save/get the number in variable and then assign it to callerid. I am doing similar and working for me.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Viv<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 11/8/07, <b class="gmail_sendername">Peder @ NetworkOblivion</b> &lt;<a href="mailto:peder@networkoblivion.com">peder@networkoblivion.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is there any way to see the called number when a call gets redirected to<br>the &#39;a&#39; extension from voicemail?&nbsp;&nbsp;Say x123 calls x456 and it rolls to
<br>voicemail.&nbsp;&nbsp;x123 hits * and gets dumped into the &#39;a&#39; extension in the<br>original context.&nbsp;&nbsp;I need some logic in &#39;a&#39; to do a database lookup<br>based on the original called number (x456).&nbsp;&nbsp;Any ideas?&nbsp;&nbsp;When I do a
<br>test, it appears that the called number is &#39;a&#39; and the calling number is<br>123.&nbsp;&nbsp;I need to be able to tell that it was a call to x456.&nbsp;&nbsp;Thanks.<br><br>Peder<br><br><br>_______________________________________________
<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.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>