CNAM allows you to see not only what number the call is coming from but a label of who is calling. This will be very useful as if you see a number 1 613 800 7370, that might mean nothing to you, a name like LUIS D will ring a bell who is calling. There are many CNAM databases, some are public and free, some are paid.
FreeSWITCH offers mod_cidlookup to deal with that. You will need to edit the configuration file to put some information that will allow the information pulling, but that is not enough. After that, you will need to do a dial plan configuration. I will talk in this article, about that dial plan.
CIDLookup is the FreeSWITCH module who handles the Name Caller automatic setting. This mean that when an incoming call happens, mod_cidlookup will handle and set the correct name. This way, when the extension rings, you won't see only a number, but a name as well.
Mod_cidlookup has many capabilities, it can consult a database in two levels and it can ask a WEB based service. In this article, I will explain the last one.
For starters, you must get an account in OpenCNAM. If you get a paid one you will get more accuracy.
So, as I am doing a very cool service I got into the dilemma of finding a user management system. It doesn't make sense to write all again if there are projects such as Joomla that does that very well. So my problem was reduced from coding a user management system to authenticating against Joomla.
After browsing I read several scripts that inspired me to write the one I need: https://bitbucket.org/daniel-lucio/external-joomla-http-authentication/src/master/