Give this a go: exten => s,n,MYSQL(Query resultid ${connid} SELECT `name` FROM `cnam` WHERE `ani` = '${CALLERID(number)}') -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081202/8b8dd1d1/attachment-0001.htm