CIDLookup Module not picking up config changes

Status
Not open for further replies.

japayton42

New Member
Jan 22, 2019
4
0
1
33
Hello, I am trying to setup the caller id lookup module. I have the mod enabled and edited the config file. However if I run cidlookup status the URL: says null. I did set the URL parameter to my CRM and tested the URL it does work. I disabled everything else. I have restarted freeswitch and the whole server. Double checked the conf file. /usr/share/freeswitch/conf/vanilla/autoload_configs/cidlookup.conf.xml


Code:
+OK 
url: (null) 
cache: true 
cache-expire: 86400 
curl-timeout: 2000 
curl-warn-duration: 1000 
odbc-dsn:  
sql:  SELECT trim(v_contacts.contact_name_given || ' ' || v_contacts.contact_name_family || ' (' || v_contacts.contact_organization || ')') 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 = '${caller_id_number}' OR v_contact_phones.phone_number = '1${caller_id_number}') LIMIT 1
 citystate-sql: (null)

I dont have the SQL Module activated. This is the trivial example from free switch which is what I used with my own URL inserted.

Code:
 <configuration name="cidlookup.conf" description="cidlookup Configuration">
  <settings>
    <param name="url" value="https://api.opencnam.com/v2/phone/+${caller_id_number}"/>
    <param name="cache" value="false"/>
  </settings>
</configuration>
 

tyryko

New Member
Jul 12, 2017
23
4
3
36
Not sure if you figured this out but I had a similar issue. The path listed (the one you used) in some documentation I think is outdated.

My file was located at /etc/freeswitch/autoload_configs/cidlookup.conf.xml Took me a while to figure that out.

Also if it helps or makes it more convenient you can edit it from the XML editor within Fusion. Also don't forget to reload mod_cidlookup after editing the file.
 
  • Like
Reactions: iota

japayton42

New Member
Jan 22, 2019
4
0
1
33
I had not, i figured there had to be another file but I could not find it!. Thanks. the XML editor I had not even thought of.
 

japayton42

New Member
Jan 22, 2019
4
0
1
33
My Next Question on the Subject is, can I have more then 1 URL? I want to try my CRM first and then cname if that fails.
 

ad5ou

Active Member
Jun 12, 2018
892
205
43
My Next Question on the Subject is, can I have more then 1 URL? I want to try my CRM first and then cname if that fails.
Have a look at cidlookup.lua for examples of how Fusionpbx checks multiple sources for CNAM info.
It wouldn't take much to have the lua script check another database and/or url
 
Status
Not open for further replies.