{% extends "base.html" %} {% block title %}Caller ID Lookup{% endblock %} {% set active = "callerid" %} {% block content %}
| Telefone | Nome | Empresa | Obs | |
|---|---|---|---|---|
{{ entry.phone }} |
{{ entry.name }} | {{ entry.company or '' }} | {{ entry.notes[:40] if entry.notes else '' }} | |
| Nenhum contato cadastrado. | ||||
Para consultar o CallerID nas chamadas, adicione no dialplan do Asterisk:
same => n,Set(LOOKUP_RESULT=${CURL(http://127.0.0.1:8000/app/pbx/callerid/lookup?phone=${CALLERID(num)})})
same => n,Set(LOOKUP_NAME=${SHELL(/opt/sisnetcall/scripts/callerid_lookup.py ${CALLERID(num)})})
same => n,Set(CALLERID(name)=${LOOKUP_NAME})
Ou via AGI: configure agi://127.0.0.1/callerid/lookup no dialplan.