Why didn't superfecta do its thing?

Thanks Lorne that will save me a bunch of time and messing about.

I’ve given it a try, and again, it hasn’t worked as expected:

[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: Launched AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Executing Scheme..
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Scheme Asked is: ALL
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: The DID is: [01709622111](tel:01709622111)
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: The CNUM is: [02035987307 ](tel:02035987307)
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: The CNAME is: SALESOFFICE
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi:
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Starting scheme Default
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Converting result to UTF-8
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting caller id to: London
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting channel variable SUPERFECTA_NEW: London
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting channel variable SUPERFECTA_OLD: SALES OFFICE
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Determined to be: 'London'
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: /var/www/html/admin/modules/superfecta/agi/superfecta.agi: Attempting to set lookupcid
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] res_agi.c: <PJSIP/20-00000bd6>AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi completed, returning 0
[2019-09-16 14:07:16] VERBOSE[18272][C-00003a27] pbx.c: Executing [[01709622111](tel:01709622111)@from-trunk:22] Set("PJSIP/20-00000bd6", "CALLERID(name)=London") in new stack

A quick look at the GUI for the Superfecta demo and for the first time when I’ve tested this number today in the demo view it shows this! Every other time today it’s shown the same stats as the website itself shows.

Executing WhoCalled UK
Searching https://who-called.co.uk/Number/[02035987307 ]  ...
Number of Searches: 0
Search Threshhold : 10
Number of Comments: 0
Comment Threshold : 0
result  took 0.3903 seconds

So it looks like the problem might be intermittent or it might be with the module itself or the lookup source? If you go to the web view of whocalledUK you can clearly see that the number of searches is 2,600+.

Still doesn’t explain the superfecta caching issue though…

I genuinely still find all this really interesting and fun to experiment with.