Time and time again those who are new to FusionPBX find it difficult to get cidlookup working from their contact list.
Inbound Route:


Now navigate to Advanced > XML Editor > autoload_configs > cidlookup.conf.xml and modify existing lines with these:
	
	
	
		
	
	
	
		
Once you've finished the edits, goto Status > SIP Status and hit 'Reload XML' and 'Flush Memcache'.
				
			Inbound Route:

Now navigate to Advanced > XML Editor > autoload_configs > cidlookup.conf.xml and modify existing lines with these:
		HTML:
	
	<!--<param name="odbc-dsn" value="$${dsn_system}"/>-->
    <param name="odbc-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=fusionpbx user=fusionpbx password=your_db_password"/>
	
		Code:
	
	<param name="sql" value="
SELECT concat_ws(' ',v_contacts.contact_name_given,v_contacts.contact_name_family) AS name, v_contact_phones.phone_number AS number
FROM v_contacts, v_contact_phones
WHERE v_contact_phones.contact_uuid = v_contacts.contact_uuid AND (v_contact_phones.phone_number LIKE '%' || '${caller_id_number}')
LIMIT 1
      "/>
	Once you've finished the edits, goto Status > SIP Status and hit 'Reload XML' and 'Flush Memcache'.
			
				Last edited: