T
T
torr20092014-10-20 14:55:53
Asterisk
torr2009, 2014-10-20 14:55:53

How to display the status of external sip trunks on the VOIP phone indicators?

There is an Asterisk 11 server, VoIP phones D-link, Grandstrem, etc., several SIP trunks to a telecom operator, gateways, USB-GSM modems, and so on.
Please tell me how to set up BLF and hint to correctly display the status of these channels.
I am trying to do something like
extension.conf

exten => 8711,hint,SIP/7111  ;  FXO Шлюз DLINK 1-порт
exten => 8001,hint,SIP/port3/1 ; FXO Шлюз Granstream на 4 порта
exten => 8002,hint,SIP/port3/2  ; FXO Шлюз Granstream на 4 порта
exten => 8003,hint,SIP/port3/3   ; FXO Шлюз Granstream на 4 порта
exten => 8004,hint,SIP/port3/4  ; FXO Шлюз Granstream на 4 порта
exten => 8005,hint,Dongle/dongle0 ; USB-GSM- модем
exten => 8006,hint,SIP/beeline1 ; SIP - транк к провайдеру
exten => 8007,hint,SIP/beeline2 ;  SIP - транк к провайдеру

sip show hints
[email protected]              : Dongle/dongle0        State:Idle            Watchers  0
                   [email protected]              : SIP/port3/4           State:Unavailable     Watchers  0
                   [email protected]              : SIP/beeline2          State:Idle            Watchers  0
                   [email protected]              : SIP/beeline1          State:Idle            Watchers  0
                   [email protected]              : SIP/port3/1           State:Idle            Watchers  1
                   [email protected]              : SIP/port3/3           State:Unavailable     Watchers  1
                   [email protected]              : SIP/port3/2           State:Idle            Watchers  1

In this example, Asterisk sets the State arbitrarily, regardless of the state of the lines.
Watchers is also 0, although BLF is correctly registered on at least one phone.
Please advise how to do it right. There are no problems with indication of internal lines.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
torr2009, 2014-10-21
@torr2009

The problem was that the Grandsream GXP2120 phone was not working properly. Decided to update the firmware.
It was not possible to monitor individual gateway ports.
The USB-GSM modem after the first call shows the unchanged InUse status. So far excluded from BLF.
Here is a working extension.conf:

exten => 8711,hint,SIP/7111  ;  FXO Шлюз DLINK 1-порт
exten => 8001,hint,SIP/port3 ; FXO Шлюз Granstream на 4 порта
;exten => 8005,hint,Dongle/dongle0 ; USB-GSM- модем
exten => 8006,hint,SIP/beeline1 ; SIP - транк к провайдеру
exten => 8007,hint,SIP/beeline2 ;  SIP - транк к провайдеру

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question