<br>Vincent,<br>I do something similar to what you're doing. However, I use the CID number as the astdb family, allowing me to assign multiple attributes as the keys. It requires some maintenance, so I also wrote a php script for the management. 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: 206-456-7890<br>Privilige: 1<br>Family: 206-456-7890
<br>Music: jazz<br>Family: 206-456-7890<br>Recording: 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. 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> <<a href="mailto:timebandit001@gmail.com">timebandit001@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> I use some custom scripts to do database lookups and rewrite CallerID<br>> information. Everything works fine with regard to the CID name, however<br>> my Cisco 7960 and Linksys SPA-942 phones do not display the calling
<br>> number. Instead, they display the called number. This makes the phone's<br>> call return feature not work. The calling number and name are both<br>> properly displayed on all of the softphone clients that I've tried.
<br>><br>> Here's the format I'm using to set the CallerID.<br>><br>> SET CALLERID "JONES DARYL A"<6508701826><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> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>