W
W
winmasta2016-12-04 08:57:24
Asterisk
winmasta, 2016-12-04 08:57:24

How to set up notification in telegram freepbx_12 asterisk_13?

I used the article https://habrahabr.ru/company/centosadmin/blog/303490/
I set up telegram, the messages go away, but I can’t understand where to enter the lines so that if a certain extension is not answered, the message leaves.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
winmasta, 2016-12-04
@winmasta

Initially, there was a problem: calls from my office come to my mobile and the number is determined by the outgoing trunk. It often happens that I can’t pick up the phone on time or the subscriber on the other end does not wait for my answer. I wanted to know who specifically called.
I solved the problem like this:
1. I set up the telegram according to the instructions from the article above.
2. Created (if it does not exist) extension_override_freepbx.conf
3. Entered the following there:

[from-internal]
exten => НОМЕР_МОЕГО_МОБИЛЬНОГО,1,System(/ПУТЬ_ДО_СКРИПТА/telegram.sh ИМЯ_ПОЛУЧАТЕЛЯ "Входящий звонок от ${CALLERID(num)}")

It should be noted that:
1. The mobile number can be viewed in the Aster logs.
2. The telegram.sh script must belong to the user:asterisk:asterisk group and have the execution flag.
Now any call that goes from this master to a mobile number will be accompanied by a telegram message with the caller's number (internal or external).
As a telegram account, I took my own account and send messages to myself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question