CallerID Lookup module - UTF8 characters

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:

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.

Hello tm1000,

I am not sure why the above commit is of any help with my problem. I’m not using Superfecta, I’m already using my own custom script to fetch caller id’s.

Sorry I missed that. Try using superfecta and see if it works for you.

Well, I’d rather find out why UTF8 characters are broken in the callerid lookup module.

Using Superfecta will give you an idea if it is your code or if it is a problem with freepbx, I assume that is where TM100 is going with this.