This integration makes it possible to query the Search.ch number base and optionally save the result in a Wildix address book.
From WMS console, logged as root.
apt-get update & apt-get install git -y
cd /var/www/
git clone https://github.com/Netkum-AG/telsearch_integration.git
cd telsearch_integration
chmod +x main.py
Define the following variables in Dialplan > General Settings > Dialplan Variables:
Define the following additional variables in Dialplan Variables:
First, you need to check if the number is already known.
The easiest way to achieve this it to check if the first digit of the caller name is a "+".
Note: If you are using a third party trunk provider, you may want to check for a "0" instead.
We jump out, if this is the case, otherwise the caller name will be overwritten and a new contact created every time (if activated).
Add a custom application and set the caller name from the created variable
See doc/dialplan_example.json
Debug script for dialplan to be used as custom application
noop(${HOSTNAME}/telsearch_integration/search.php?request_text=${CALLERID(num)}&telsearch_key=${TELSEARCH_KEY}&wms_hostname=${HOSTNAME}&wms_app_token=${WMS_APP_TOKEN}&telsearch_phonebook=${TELSEARCH_PHONEBOOK})
From WMS console, logged as root.
cd /var/www/telsearch_integration
git reset --hard
git pull
chmod +x main.py
Please open an issue on GitHub with as many details as possible and screenshot from the problem.