Hello everyone,
I’m using the latest version of FreePBX with Asterisk 13. I installed the “CallerID Lookup” module and configured it to “hit” an HTTP script. The script works great and returns a UTF-8 string.
Unfortunately, I found out that the module (or asterisk, or both?) have a problem with UTF-8 strings returned by the script. Everything works fine if the script returns ASCII characters, but when it returns anything else the ID is scrapped and the phone number is used instead.
Upon further investigation, I found that the process is in extensions_additional.conf, under [cidlookup], which optionally calls [cidlookup-custom]. I looked at the code, which uses Set(CALLERID(name)=… but that didn’t give any clue as to whats wrong.
I then created the following lines in extensions_custom.conf, hoping it would help:
[cidlookup-custom]
exten => cidlookup_6,1,Set(CALLERID(name-charset)=utf8)
But the above didn’t make any difference, UTF-8 strings are still ignored. Here is what I see in my /var/log/asterisk/full log file:
"CURLOPT(httptimeout)=7") in new stack
"CALLERID(name)=") in new stack
Something strips the UTf-8 characters completely and returns an empty string.
Any help finding whats wrong, would be much appreciated.
Thank you.