I am trying to have the incoming dial plan reference the contacts before displaying the incoming caller ID
So I use the following dial plan (attached - please reference attachment)
As you can see the cidlookup.lua is at the bottom. It works great as is. If the contact is in the contacts list, it displays that contacts name as the caller id name.
But
If the contact does not exist it shows UNKNOWN as the caller ID. If I remove the lua line that says cidlookup.lua then the caller ID displays correctly, but it won't reference the contacts list first.
Does anyone know how I can adjust this to ensure it references the contacts list and if not there shows the incoming ID? As it is now, if it is not in the contacts list all incoming shows as UNKNOWN.
So I use the following dial plan (attached - please reference attachment)
As you can see the cidlookup.lua is at the bottom. It works great as is. If the contact is in the contacts list, it displays that contacts name as the caller id name.
But
If the contact does not exist it shows UNKNOWN as the caller ID. If I remove the lua line that says cidlookup.lua then the caller ID displays correctly, but it won't reference the contacts list first.
Does anyone know how I can adjust this to ensure it references the contacts list and if not there shows the incoming ID? As it is now, if it is not in the contacts list all incoming shows as UNKNOWN.