<br>Vincent,<br>I do something similar to what you're doing.&nbsp; However, I use the CID number as the astdb family, allowing me to assign multiple attributes as the keys.&nbsp; It requires some maintenance, so I also wrote a php script for the management.&nbsp; You can find it here: 
<a href="http://voip-info.org/wiki/view/Web+based+Asterisk+Database+maintenance">http://voip-info.org/wiki/view/Web+based+Asterisk+Database+maintenance</a><br><br>Family:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 206-456-7890<br>Privilige:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>Family: &nbsp; &nbsp; &nbsp; 206-456-7890
<br>Music:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jazz<br>Family:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 206-456-7890<br>Recording:&nbsp; No<br><br>By inverting the relationship, I found it easier to focus on the source of the call and the treatments I want to apply.&nbsp; I can also wipe out entries by family name and remove all attributes in one operation using database deltree.
<br><br><br><div><span class="gmail_quote">On 11/25/06, <b class="gmail_sendername">Time Bandit</b> &lt;<a href="mailto:timebandit001@gmail.com">timebandit001@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; I use some custom scripts to do database lookups and rewrite CallerID<br>&gt; information.&nbsp;&nbsp;Everything works fine with regard to the CID name, however<br>&gt; my Cisco 7960 and Linksys SPA-942 phones do not display the calling
<br>&gt; number. Instead, they display the called number.&nbsp;&nbsp;This makes the phone's<br>&gt; call return feature not work. The calling number and name are both<br>&gt; properly displayed on all of the softphone clients that I've tried.
<br>&gt;<br>&gt; Here's the format I'm using to set the CallerID.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SET CALLERID &quot;JONES DARYL A&quot;&lt;6508701826&gt;<br>If you're using Asterisk 1.2, see this page :<br><a href="http://www.voip-info.org/wiki/view/Setting+Callerid">
http://www.voip-info.org/wiki/view/Setting+Callerid</a><br><br>hth<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>