Project

General

Profile

Listen-in, Barge-in Features

Added by Moh Moh about 1 year ago

Hey everyone ,

I try to use 'Listen-in, Barge-in' Features but it doesn't work (no sound, just popup with time counter)

Does WebRTC need to be enabled?

what to do to make these features working.

Thank's


Replies (8)

RE: Listen-in, Barge-in Features - Added by Levy Ryan Nolasco about 1 year ago

Hi,

The user/admin you are using must have a phone extension assigned to it. What is the asterisk cli log when you are trying to do Listen/Barge.

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

Hi,

which type of phone extension to use, SIP or EXTERNAL?

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

Admin: EXTERNAL
Others: SIP and EXTERNAL

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

vcp555*CLI>
vcp555*CLI> iax2 show peers
Name/Username    Host                                           Mask                                      Port           Status      Description
ASTloop          (null)                                   (D)  (null)                                    (null)         UNKNOWN
ASTblind         (null)                                   (D)  (null)                                    (null)         UNKNOWN
ASTplay          (null)                                   (D)  (null)                                    (null)         UNKNOWN
3 iax2 peers [0 online, 3 offline, 0 unmonitored]

vcp555*CLI>
vcp555*CLI> iax2 show registry
Host                                           dnsmgr  Username    Perceived                                      Refresh  State
127.0.0.1:42569                                N       ASTplay     127.0.0.1:42569                                     60  Request Sent
127.0.0.1:41569                                N       ASTblind    127.0.0.1:41569                                     60  Request Sent
127.0.0.1:40569                                N       ASTloop     127.0.0.1:40569                                     60  Request Sent
3 IAX2 registrations.
vcp555*CLI>
vcp555*CLI>

vcp555*CLI> iax2 set debug on
IAX2 Debugging Enabled
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Called 005*039*013*144*08600051@default
    -- Executing [005*039*013*144*08600051@default:1] Goto("Local/005*039*013*144*08600051@default-00000005;2", "default,08600051,1") in new stack
    -- Goto (default,08600051,1)
    -- Executing [08600051@default:1] Dial("Local/005*039*013*144*08600051@default-00000005;2", "IAX2/ASTblind:test@127.0.0.1:41569/68600051,55,To") in new stack
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00005ms  SCall: 00138  DCall: 00000 127.0.0.1:41569
   VERSION         : 2
   CALLED NUMBER   : 68600051
   CODEC_PREFS     : (ulaw|gsm)
   CALLING NUMBER  : 0000000000
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
    -- Called IAX2/ASTblind:test@127.0.0.1:41569/68600051
   CALLING NAME    : VC Blind Monitor
   LANGUAGE        : en
   USERNAME        : ASTblind
   FORMAT          : 4
   FORMAT2         : ulaw
   CAPABILITY      : 6
   CAPABILITY2     : Unknown
   ADSICPE         : 0
   DATE TIME       : 2019-09-29  05:29:00

Tx-Frame Retry[003] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ
   Timestamp: 00012ms  SCall: 05363  DCall: 00000 127.0.0.1:42569
   USERNAME        : ASTplay
   REFRESH         : 60

Tx-Frame Retry[003] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ
Tx-Frame Retry[003] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ
   Timestamp: 00012ms  SCall: 08901  DCall: 00000 127.0.0.1:41569
   USERNAME        : ASTblind
   Timestamp: 00012ms  SCall: 12018  DCall: 00000 127.0.0.1:40569
   REFRESH         : 60
   USERNAME        : ASTloop

   REFRESH         : 60

  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00005ms  SCall: 00138  DCall: 00000 127.0.0.1:41569
   VERSION         : 2
   CALLED NUMBER   : 68600051
   CODEC_PREFS     : (ulaw|gsm)
   CALLING NUMBER  : 0000000000
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : VC Blind Monitor
   LANGUAGE        : en
   USERNAME        : ASTblind
   FORMAT          : 4
   FORMAT2         : ulaw
   CAPABILITY      : 6
   CAPABILITY2     : Unknown
   ADSICPE         : 0
   DATE TIME       : 2019-09-29  05:29:00

vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
[Sep 29 05:29:05] NOTICE[20867]: chan_iax2.c:4749 __auto_congest: Auto-congesting call due to slow response
    -- IAX2/127.0.0.1:41569-138 is circuit-busy
    -- Hungup 'IAX2/127.0.0.1:41569-138'
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 000 Type: IAX     Subclass: HANGUP
   Timestamp: 04005ms  SCall: 00138  DCall: 00000 127.0.0.1:41569
   CAUSE CODE      : 0

  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [08600051@default:2] Hangup("Local/005*039*013*144*08600051@default-00000005;2", "") in new stack
  == Spawn extension (default, 08600051, 2) exited non-zero on 'Local/005*039*013*144*08600051@default-00000005;2'
[Sep 29 05:29:05] WARNING[28067][C-00000006]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
    -- Executing [h@default:1] AGI("Local/005*039*013*144*08600051@default-00000005;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CONGESTION---------------)") in new stack
    -- <Local/005*039*013*144*08600051@default-00000005;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CONGESTION---------------) completed, returning 0
  == Manager 'sendcron' logged off from 127.0.0.1
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
vcp555*CLI>
Tx-Frame Retry[001] -- OSeqno: 001 ISeqno: 000 Type: IAX     Subclass: HANGUP
   Timestamp: 04005ms  SCall: 00138  DCall: 00000 127.0.0.1:41569
   CAUSE CODE      : 0

vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
Tx-Frame Retry[002] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00005ms  SCall: 00138  DCall: 00000 127.0.0.1:41569
   VERSION         : 2
   CALLED NUMBER   : 68600051
   CODEC_PREFS     : (ulaw|gsm)
   CALLING NUMBER  : 0000000000
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : VC Blind Monitor
   LANGUAGE        : en
   USERNAME        : ASTblind
   FORMAT          : 4
   FORMAT2         : ulaw
   CAPABILITY      : 6
   CAPABILITY2     : Unknown
   ADSICPE         : 0
   DATE TIME       : 2019-09-29  05:29:00

vcp555*CLI>
vcp555*CLI>
vcp555*CLI>
vcp555*CLI> iax2 set debug off
vcp555*CLI>
vcp555*CLI>
vcp555*CLI>

[root@vcp555 ~]# ps -aux|grep listener

root     26782  0.0  0.3 196956 12392 pts/8    S    05:23   0:00 /usr/bin/perl /usr/local/bin/listener.pl
root     29201  0.0  0.0 112732   968 pts/8    S+   05:32   0:00 grep --color=auto listener

[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# netstat -anup|grep 569
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           1924/asterisk       
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           20434/asterisk

[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# cat /etc/asterisk/iax-vicidial.conf 

; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
register => ASTloop:test@127.0.0.1:40569
register => ASTblind:test@127.0.0.1:41569
register => ASTplay:test@127.0.0.1:42569

[ASTloop]
accountcode=ASTloop
secret=test
type=friend
requirecalltoken=no
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
disallow=all
allow=ulaw
qualify=yes

[ASTblind]
accountcode=ASTblind
secret=test
type=friend
requirecalltoken=no
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
disallow=all
allow=ulaw
qualify=yes

[ASTplay]
accountcode=ASTplay
secret=test
type=friend
requirecalltoken=no
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
disallow=all
allow=ulaw
qualify=yes

; END OF FILE    Last Forced System Reload: 2014-09-15 07:30:28
[root@vcp555 ~]#
[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# 
[root@vcp555 ~]# cat /etc/asterisk/extensions-vicidial.conf 

; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569
TRUNKplay = IAX2/ASTplay:test@127.0.0.1:42569

.....

[root@vcp555 ~]# yum install glibc-devel

Complementary modules loaded: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.ovh.net
 * extras: centos.mirrors.ovh.net
 * updates: centos.mirrors.ovh.net
The packet glibc-devel-2.17-292.el7.x86_64 is already installed in its latest version

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

Problem solved.

I found out that ip_relay in my server was not compiled properly, (Goautodial iso version)

I have tried the procedure in this page http://www.vicidial.org/VICIDIALforum/viewtopic.php?p=50058


[root@vcp555 ip_relay]# /usr/share/astguiclient/ADMIN_keepalive_ALL.pl

[root@vcp555 ip_relay]# ps -e | grep ip_relay

[root@vcp555 ~]# ls /usr/local/bin/ip_relay  -l
lrwxrwxrwx 1 root root 52 22 sept. 06:34 /usr/local/bin/ip_relay -> /usr/share/astguiclient/ip_relay/ip_relay_linux_i386

[root@vcp555 ~]# cd /usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/ip_relay/
[root@vcp555 ~]# ls
ip_relay_1.0.021902.tar  ip_relay_linux_i386            lib_ip_relay_linux_i386.so.1.0.1
ip_relay_1.1.112705.zip  lib_ip_relay_linux_i386_gcc.a  relay_control

[root@vcp555 ~]#cd /usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/

[root@vcp555 extras]# unzip ip_relay/ip_relay_1.1.112705.zip
[root@vcp555 extras]# ls ip_relay_1.1/
bin  Readme.txt  src

[root@vcp555 extras]# cd ip_relay_1.1/src/unix/

[root@vcp555 unix]# make
gcc -c ../lib_ip_relay.c -o lib_ip_relay.o
ar rcs lib_ip_relay.a lib_ip_relay.o
gcc -c -fPIC ../lib_ip_relay.c -o lib_ip_relay_so.o
gcc -shared -Wl,-soname,lib_ip_relay.so.1 -o lib_ip_relay.so.1.0.1 lib_ip_relay_so.o -lc
gcc ../ip_relay.c lib_ip_relay.a -o ip_relay
../ip_relay.c: In function ‘parse_command_line’:
../ip_relay.c:114:9: attention : incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
         exit( IR_ERROR_BAD_PARAMETERS );
         ^

[root@vcp555 unix]# ls
ip_relay  lib_ip_relay.a  lib_ip_relay.o  lib_ip_relay.so.1.0.1  lib_ip_relay_so.o  makefile

[root@vcp555 unix]# ls /usr/share/astguiclient/ip_relay/ip_relay -l
lrwxrwxrwx 1 root root 52 22 sept. 06:34 /usr/share/astguiclient/ip_relay/ip_relay -> /usr/share/astguiclient/ip_relay/ip_relay_linux_i386

[root@vcp555 unix]# rm /usr/share/astguiclient/ip_relay/ip_relay
rm : supprimer lien symbolique « /usr/share/astguiclient/ip_relay/ip_relay » ? y

[root@vcp555 unix]# pwd
/usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/ip_relay_1.1/src/unix

[root@vcp555 unix]# ls
ip_relay  lib_ip_relay.a  lib_ip_relay.o  lib_ip_relay.so.1.0.1  lib_ip_relay_so.o  makefile

[root@vcp555 unix]# cp * /usr/share/astguiclient/ip_relay/
[root@vcp555 unix]# cd /usr/local/bin
[root@vcp555 bin]# cd /usr/local/bin
[root@vcp555 bin]#  rm ip_relay
rm : supprimer lien symbolique « ip_relay » ? y

[root@vcp555 bin]# ln -s /usr/share/astguiclient/ip_relay/ip_relay ip_relay

[root@vcp555 bin]# /usr/share/astguiclient/ADMIN_keepalive_ALL.pl

[root@vcp555 bin]# ps -e | grep ip_relay
17295 pts/8    00:00:00 ip_relay
17296 pts/8    00:00:00 ip_relay
17297 pts/8    00:00:00 ip_relay

[root@vcp555 bin]# service asterisk restart
Redirecting to /bin/systemctl restart asterisk.service

[root@vcp555 bin]# cd
[root@vcp555 ~]# asterisk -rvvvvv

vcp555*CLI> iax2 show registry
Host                                           dnsmgr  Username    Perceived                                      Refresh  State
127.0.0.1:42569                                N       ASTplay     127.0.0.1:42569                                     60  Registered
127.0.0.1:41569                                N       ASTblind    127.0.0.1:41569                                     60  Registered
127.0.0.1:40569                                N       ASTloop     127.0.0.1:40569                                     60  Registered
3 IAX2 registrations.

vcp555*CLI>
vcp555*CLI>
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
vcp555*CLI> iax2 show peers
Name/Username    Host                                           Mask                                      Port           Status      Description
ASTloop          127.0.0.1                                (D)  (null)                                    33189          OK (3 ms)
ASTblind         127.0.0.1                                (D)  (null)                                    50615          OK (3 ms)
ASTplay          127.0.0.1                                (D)  (null)                                    56577          OK (3 ms)
3 iax2 peers [3 online, 0 offline, 0 unmonitored]

Thanks for your help.

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

ip relay is compiled and working even with the triggered compilation error but to fixe error i try to instrall glibc-devel.i686 (solution found in google) but dosn't work.

in my case, to bypass this compilation error I commented this above line in /usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/ip_relay_1.1/src/ip_relay.c like this:
//exit( IR_ERROR_BAD_PARAMETERS );

to fixe compilation error i try to instrall glibc-devel.i686 but dosn't work

to bypass the compilation error I commented this above in/usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/ip_relay_1.1/src/ip_relay.c like this:
//exit( IR_ERROR_BAD_PARAMETERS );

the i make ip_relay again:

[root@vcp555 ~]# cd /usr/src/goautodial-ce-4.0-1537704000/astguiclient/extras/ip_relay_1.1/src/unix/

[root@vcp555 unix]# make
gcc -c ../lib_ip_relay.c -o lib_ip_relay.o
ar rcs lib_ip_relay.a lib_ip_relay.o
gcc -c -fPIC ../lib_ip_relay.c -o lib_ip_relay_so.o
gcc -shared -Wl,-soname,lib_ip_relay.so.1 -o lib_ip_relay.so.1.0.1 lib_ip_relay_so.o -lc
gcc ../ip_relay.c lib_ip_relay.a -o ip_relay

[root@vcp555 unix]# cp * /usr/share/astguiclient/ip_relay/

[root@vcp555 bin]#  rm /usr/local/bin/ip_relay
rm : supprimer lien symbolique « ip_relay » ? y

[root@vcp555 bin]# ln -s /usr/share/astguiclient/ip_relay/ip_relay ip_relay

[root@vcp555 ~]# ps -e | grep ip_relay
 1979 ?        00:00:00 ip_relay
 1980 ?        00:00:00 ip_relay
 1981 ?        00:00:00 ip_relay

I do not know if this solution can have consequences or not. I appreciate if anyone can fix this.

RE: Listen-in, Barge-in Features - Added by Moh Moh about 1 year ago

I want to change also /usr/bin/ip_relay to be linked to /usr/share/astguiclient/ip_relay/ip_relay not to /usr/share/astguiclient/ip_relay/ip_relay_linux_i386

before it was:


[root@vcp555 ~]# cd /usr/bin/
[root@vcp555 bin]# ls -l ip_relay 
lrwxrwxrwx 1 root root 52 22 sept. 06:34 ip_relay -> /usr/share/astguiclient/ip_relay/ip_relay_linux_i386

Also 

[root@vcp555 ~]# ps -e | grep ip_relay
 1894 ?        00:00:00 ip_relay
 1895 ?        00:00:00 ip_relay
 1896 ?        00:00:00 ip_relay

Then i remove old symbolic link

[root@vcp555 ~]# cd /usr/bin/
[root@vcp555 bin]# rm ip_relay 
rm : supprimer lien symbolique « ip_relay » ? y

and create new one:


[root@vcp555 bin]# ln -s /usr/share/astguiclient/ip_relay/ip_relay ip_relay
[root@vcp555 bin]# reboot 

After reboot i checked IAX peers (it's OK):


[root@vcp555 ~]# asterisk -rvvvvvv
Asterisk 13.17.2-vici, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.17.2-vici currently running on vcp555 (pid = 2007)
vcp555*CLI> iax2 show pe
peer   peers  
vcp555*CLI> iax2 show peers
Name/Username    Host                                           Mask                                      Port           Status      Description                     
ASTloop          127.0.0.1                                (D)  (null)                                    45251          OK (3 ms)                                   
ASTblind         127.0.0.1                                (D)  (null)                                    60545          OK (3 ms)                                   
ASTplay          127.0.0.1                                (D)  (null)                                    57248          OK (3 ms)                                   
3 iax2 peers [3 online, 0 offline, 0 unmonitored]
vcp555*CLI> iax2 show registry 
Host                                           dnsmgr  Username    Perceived                                      Refresh  State
127.0.0.1:42569                                N       ASTplay     127.0.0.1:42569                                     60  Registered
127.0.0.1:41569                                N       ASTblind    127.0.0.1:41569                                     60  Registered
127.0.0.1:40569                                N       ASTloop     127.0.0.1:40569                                     60  Registered
3 IAX2 registrations.

But i found 6 instances of ip_relay no 3 like before:


Last login: Sun Sep 29 09:08:03 2019 from 10.10.10.1
[root@vcp555 ~]# ps -e | grep ip_relay
 1941 ?        00:00:00 ip_relay
 1942 ?        00:00:00 ip_relay
 1943 ?        00:00:00 ip_relay
 1989 ?        00:00:00 ip_relay
 1990 ?        00:00:00 ip_relay
 1991 ?        00:00:00 ip_relay

[root@vcp555 ~]# netstat -anup|grep 569

udp        0      0 127.0.0.1:60545         127.0.0.1:4569          ESTABLISHED 1942/ip_relay       
udp        0      0 0.0.0.0:42569           0.0.0.0:*                           1943/ip_relay       
udp        0      0 0.0.0.0:40569           0.0.0.0:*                           1941/ip_relay       
udp        0      0 127.0.0.1:57248         127.0.0.1:4569          ESTABLISHED 1943/ip_relay       
udp        0      0 127.0.0.1:45251         127.0.0.1:4569          ESTABLISHED 1941/ip_relay       
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           2007/asterisk       
udp        0      0 0.0.0.0:41569           0.0.0.0:*                           1942/ip_relay

is it normal? or i must delete /usr/bin/ip_relay and keep just /usr/local/bin/ip_relay

RE: Listen-in, Barge-in Features - Added by Kristian Antiligando 12 months ago

Hi,

The way I see it is normal. If in case the listen and barge feature isn't working, simply recreate the admin user account for it to work.

    (1-8/8)
    Go to top