<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>hi. i am running asterisk 11 and i am using astdb to store all my contacts and their numbers. so everytime they call me, i can see their name on the screen of the phone.<br/>
 i am making use of the following to retrieve the name from the astdb</div>

<div>exten => WhatEverIsMyDID,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})<br/>
exten => WhatEverIsMyDID,n,Answer()</div>

<div> </div>

<div>in the same machine i have mysql. i would like to make use of mysql to store and retrieve phonebook as well create blacklist of numbers.</div>

<div>i thought of creating 2 databases</div>

<div>-phonebook, will contain name, number</div>

<div>-blacklist, will contain name, number</div>

<div> </div>

<div>once i update all the database fiels how can i see the names whenever someone calls?</div>

<div>regarding the blacklist, i would like to send them to hear a sound (eg tt-monkeys) or simply hangup.</div>

<div> </div>

<div>Some advice please?</div></div></body></html>