Live Call when call is Ringing

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Live Call when call is Ringing

Postby areon » Fri Oct 04, 2019 9:12 am

Hello,

We use latest ViciDial installation from VICIbox9, SVN Version: 3136 and Asterisk v.13.27.0-vici.

When Agent do manaual dial call the "Live Call" lights green immediately when Agent hears Ring sound from PBX.
In some other installations "Live Call" lights green only when other side realy Answered call, and it is right!

What does it depend on? And how to get an event in manual dial calls, when other side realy Answered call.
areon
 
Posts: 59
Joined: Tue Sep 08, 2015 7:17 am

Re: Live Call when call is Ringing

Postby areon » Thu Oct 10, 2019 7:27 am

Ok...
We solved this, may be not quite correct, bu it works for us in manual dial mode, and we not tested it yet in autodial mode:

We have made same change in code AST_manager_listen_AMI2.pl

In line 630:
Code: Select all
### ChannelStateDesc = Ringing or Up
               elsif ($event_hash{'ChannelStateDesc'} =~ /Ringing|Up/)

We changed to:
Code: Select all
### ChannelStateDesc =  Up
               elsif ($event_hash{'ChannelStateDesc'} =~ /Up/)


In another project we made additional change to remove uniqueid in update when Ringing :
Code: Select all
 ### ChannelStateDesc = Ringing or Up
                elsif ($event_hash{'ChannelStateDesc'} =~ /Ringing|Up/)
                        {
                        if ($event_hash{'ChannelStateDesc'} =~ /Ringing/){
                                $stmtA = "UPDATE vicidial_manager set status='UPDATED', channel='$event_hash{'Channel'}' where server_ip = '$event_hash{'ServerIP'}' and callerid = '$call_id' and status != 'NEW'";
                        }else{
                                $stmtA = "UPDATE vicidial_manager set status='UPDATED', channel='$event_hash{'Channel'}', uniqueid = '$event_hash{'Uniqueid'}' where server_ip = '$event_hash{'ServerIP'}' and callerid = '$call_id' and status != 'NEW'";
                        }
areon
 
Posts: 59
Joined: Tue Sep 08, 2015 7:17 am

Re: Live Call when call is Ringing

Postby mcargile » Fri Oct 11, 2019 8:54 am

What does the Asterisk CLI output show when you place a call?
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Live Call when call is Ringing

Postby areon » Wed Oct 16, 2019 9:33 am

Code: Select all
[Oct 16 14:13:11] Connected to Asterisk 13.27.0-vici currently running on vicibox913 (pid = 1366)
[Oct 16 14:13:12]        > 0x7fb95c0af700 -- Strict RTP learning complete - Locking on source address 193.23.181.227:10376
[Oct 16 14:13:18]   == Manager 'sendcron' logged on from 127.0.0.1
[Oct 16 14:13:18]     -- Called 8600057@default
[Oct 16 14:13:18]     -- Executing [8600057@default:1] MeetMe("Local/8600057@default-0000130e;2", "8600057,F") in new stack
[Oct 16 14:13:18]     -- Local/8600057@default-0000130e;1 answered
[Oct 16 14:13:18]     -- Executing [0123456789@default:1] AGI("Local/8600057@default-0000130e;1", "agi://127.0.0.1:4577/call_log") in new stack
[Oct 16 14:13:18]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=MAIN))
[Oct 16 14:13:18]     -- <Local/8600057@default-0000130e;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Oct 16 14:13:18]     -- Executing [0123456789@default:2] Dial("Local/8600057@default-0000130e;1", "SIP/stream/0123456789,60,tT") in new stack
[Oct 16 14:13:18]   == Using SIP RTP CoS mark 5
[Oct 16 14:13:18]     -- Called SIP/stream/0123456789
[Oct 16 14:13:18]   == Manager 'sendcron' logged on from 127.0.0.1
[Oct 16 14:13:18]     -- Called 58600057@default
[Oct 16 14:13:18]     -- Executing [58600057@default:1] MeetMe("Local/58600057@default-0000130f;2", "8600057,Fmq") in new stack
[Oct 16 14:13:18]     -- Local/58600057@default-0000130f;1 answered
[Oct 16 14:13:18]     -- Executing [8309@default:1] Answer("Local/58600057@default-0000130f;1", "") in new stack
[Oct 16 14:13:18]     -- Executing [8309@default:2] Monitor("Local/58600057@default-0000130f;1", "wav,20191016-141318_0123456789_2199") in new stack
[Oct 16 14:13:18]     -- Executing [8309@default:3] Wait("Local/58600057@default-0000130f;1", "3600") in new stack
[Oct 16 14:13:19]   == Manager 'sendcron' logged off from 127.0.0.1
[Oct 16 14:13:19]   == Manager 'sendcron' logged off from 127.0.0.1
[Oct 16 14:13:23]        > 0x7fb9180a0800 -- Strict RTP learning after remote address set to: 193.23.181.227:10466
[Oct 16 14:13:23]     -- SIP/stream-000001b5 is making progress passing it to Local/8600057@default-0000130e;1
[Oct 16 14:13:23]        > 0x7fb9180a0800 -- Strict RTP switching to RTP target address 193.23.181.227:10466 as source
[Oct 16 14:13:28]        > 0x7fb9180a0800 -- Strict RTP learning complete - Locking on source address 193.23.181.227:10466
[Oct 16 14:13:31]     -- SIP/stream-000001b5 answered Local/8600057@default-0000130e;1
[Oct 16 14:13:31]     -- Channel SIP/stream-000001b5 joined 'simple_bridge' basic-bridge <1af9ebed-b890-44d1-a16d-550656d5b98f>
[Oct 16 14:13:31]     -- Channel Local/8600057@default-0000130e;1 joined 'simple_bridge' basic-bridge <1af9ebed-b890-44d1-a16d-550656d5b98f>
[Oct 16 14:13:32]     -- SIP/stream-000001b4 answered Local/8600051@default-0000130a;1
[Oct 16 14:13:32]     -- Channel SIP/stream-000001b4 joined 'simple_bridge' basic-bridge <a30f3601-444b-4926-b58b-025234ecb40a>
[Oct 16 14:13:32]     -- Channel Local/8600051@default-0000130a;1 joined 'simple_bridge' basic-bridge <a30f3601-444b-4926-b58b-025234ecb40a>
[Oct 16 14:13:34]     -- Channel SIP/stream-000001b5 left 'simple_bridge' basic-bridge <1af9ebed-b890-44d1-a16d-550656d5b98f>
[Oct 16 14:13:34]     -- Channel Local/8600057@default-0000130e;1 left 'simple_bridge' basic-bridge <1af9ebed-b890-44d1-a16d-550656d5b98f>
[Oct 16 14:13:34]   == Spawn extension (default, 0123456789, 2) exited non-zero on 'Local/8600057@default-0000130e;1'
[Oct 16 14:13:34]     -- Executing [h@default:1] AGI("Local/8600057@default-0000130e;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----16-----SIP 200 OK)") in new stack
[Oct 16 14:13:34]     -- <Local/8600057@default-0000130e;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----16-----SIP 200 OK) completed, returning 0

areon
 
Posts: 59
Joined: Tue Sep 08, 2015 7:17 am

Re: Live Call when call is Ringing

Postby mcargile » Wed Oct 16, 2019 10:51 am

Interesting. Have you installed the OS updates?
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Live Call when call is Ringing

Postby areon » Mon Oct 21, 2019 9:45 am

mcargile wrote:Interesting. Have you installed the OS updates?


Yes, we performed "zypper up" before install ViciDial.
It was 2019-09-30
areon
 
Posts: 59
Joined: Tue Sep 08, 2015 7:17 am


Return to Support

Who is online

Users browsing this forum: Google [Bot], scopor and 92 guests