Netkum-AG / telsearch_integration

Search.ch integration for Wildix WMS
MIT License
0 stars 0 forks source link

search.ch integration mit Wildix WMS

Summary

This integration makes it possible to query the Search.ch number base and optionally save the result in a Wildix address book.

Dev Log

Install

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

Choice of operating mode

Lookup mode

Define the following variables in Dialplan > General Settings > Dialplan Variables:

Optional: save mode

Define the following additional variables in Dialplan Variables:

Dialplan change

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).

check_number.jpg

Add a custom application and set the caller name from the created variable
img.png

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})

Update

From WMS console, logged as root.

cd /var/www/telsearch_integration
git reset --hard
git pull
chmod +x main.py

Bug report

Please open an issue on GitHub with as many details as possible and screenshot from the problem.