Looking up contacts numbers and displaying names

Status
Not open for further replies.

mattswainston

Member
Sep 27, 2018
44
1
8
52
Struggling a bit with this, trying to get the cidlookup working. After trawling here and the net I'm still at a loss. I am running freeswitch 1.10 and ubuntu 9 and fusuionpbx 4.4.11. Have enabled the cidlookup in the dial plan and moved it up to position 099 for good measure but no results back at all, the debug logs don't seem to give much away, I have seen some different sql for the lua so copied that and restarted - no joy, ensured the number matches the contact created in the contacts module, before i start hacking the script with debug outputs does anyone have any pointers?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,415
376
83
It's a while since I looked at this, so forgive me if things have moved on.

There are two versions of cidlookup. One is a straight .lua script, the other uses the FreeSWITCH module mod_cidlookup. I believe the cidlookup you are referring to in the dialplan manager uses mod_cidlookup.

I have only ever used the .lua script version and this had an issue until I submitted a fix back in January. You can find details of the fix here:
https://github.com/fusionpbx/fusionpbx/pull/5134

You call the .lua version from the inbound route, see the screenshot below:
Screenshot from 2020-12-15 20-14-44.png
 
  • Like
Reactions: mattswainston

mattswainston

Member
Sep 27, 2018
44
1
8
52
I get this on the output, it seems to be calling the script correctly - but i dont seem to be getting anything out of it the other end.....not even the NOTIC debug bits I put in - any Ideea what i might be doing wrong?

Debug output below.

EXECUTE [depth=0] sofia/external/07908053221@46.31.225.185 lua(cidlookup.lua 51291e15-2629-41d3-a65f-3691bbfedd09 eb786398-484e-4260-8c40-3575a299a74f)
2020-12-16 12:01:32.988936 [NOTICE] switch_cpp.cpp:1447 [cidlookup] caller name from contacts db is nil
 
Status
Not open for further replies.