B.57. LookupCIDName()

Looks up a caller ID name in the AstDB.
Looks up the caller ID number in the AstDB (family cidname), and, if it exists, sets the corresponding caller ID name. This application does nothing if no caller ID is present. LookupCIDName() can be useful if you receive number information but no names, or if you want to change the caller ID information certain incoming calls.
Returns 0.
To add entries to the list from the CLI enter database put cidname "number" "name"; similarly enter database del cidname "number" to delete entries and database show cidname to print a list of all the entries in the database.
exten => 123,1,Answer()
exten => 123,n,LookupCIDName()


Internal help for this application in Asterisk 1.4:
  -= Info about application 'LookupCIDName' =- 

Look up CallerID Name from local database

  LookupCIDName: Looks up the Caller*ID number on the active
channel in the Asterisk database (family 'cidname') and sets the
Caller*ID name.  Does nothing if no Caller*ID was received on the
channel.  This is useful if you do not subscribe to Caller*ID
name delivery, or if you want to change the names on some incoming
diff output to internal help in Asterisk 1.2:
- none -