User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

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.

The first thing you need to know is that this dial plan needs to be processed only when an incoming call comes, and it needs to be the first one (or at least before the transfer). Here it is my configuration. Change it according to your needs.

<extension name="cnam" continue="true">
<condition field="context" expression="public">
<action application="set" data="caller_id_name=${cidlookup(${caller_id_number})}"/>
</condition>
</extension>

This dial plan must be run in the public context. 

Good Luck!

blog comments powered by Disqus