Delay Between "200 OK" and Bridge/Agent Connection
Posted: Thu Oct 31, 2019 4:19 pm
Marcelo here.
- ViciBox v.9.0.0 190913-1108 * Released on Friday the 13th during a full moon. So spooky, much wow! |Vicidial
2.14-588c BUILD 190925-1346 | Asterisk 13.27.0-vici | Linux version 4.12.14-lp151.28.16-default | Single Serv
er | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel(R) Xeon(R) CPU E5-2450 0 @ 2.10GHz
Please bear with me.
Call Log
time [s];64.74.129.238;64.124.219.166;64.124.219.133;SIP message
0.000000;;;;INVITE sip:415XXXXXXX@es1.langineers.com:5060 len:1072 [0s]
0.006837;;;;100 trying -- your call is important to us len:440 [0.01s]
1.814675;;;;183 Session Progress len:962 [1.81s]
1.817740;;;;RTP G.711u SSRC:39187691 PORT:15614 packets:537 L:0 J:0.5 [1.82s]
12.625375;;;;200 OK len:948 [12.63s] <<<<<<<<<<<< Acknowledging 200 OK from called phone
12.626401;;;;ACK sip:41XXXXXXX@64.124.219.133:5060 len:531 [12.63s]
12.637800;;;;RTP G.711u SSRC:5e171a64 PORT:15614 packets:622 L:0 J:0.7 [12.64s]
13.718900;;;;RTP G.711u SSRC:698aa077 PORT:14576 packets:626 L:0 J:4.4 [13.72s] <<<<<<<<<<< First RTP sent by ViciDail
26.235069;;;;BYE sip:14158201499@64.74.129.238:5060 len:720 [26.24s]
26.235680;;;;200 OK len:667 [26.24s]
The time difference between the "200 OK" and the first RTP sent by ViciDail is 12.625375 - 13.718900 = -1.093550 seconds. Please note the "ACK" to the "200 OK" happened immediately in 1 millisecond (0.001026s) .
1.1 seconds is a long time between the 200 OK and the first RTP sent, and this is making the gap between the customer "Hello..." and our Agent bridge engagement.
I have AMD disabled (Using Routing extension 8368.)
I understand the system needs to evaluate the call to bridge it or do a system disposition, but the delay to bridge engagement has been noticeable by our agent that most of the time gives no room for Agent/Customer conversation, as the customer is already turned away by the delay. It warns the customer it is a auto-dialing call.
Please advise if there is ways to mitigate this delay.
Many thanks in advance.
********************** Editing after post **************************
What about /usr/share/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi ?????
It is taking 700 milliseconds running.
- ViciBox v.9.0.0 190913-1108 * Released on Friday the 13th during a full moon. So spooky, much wow! |Vicidial
2.14-588c BUILD 190925-1346 | Asterisk 13.27.0-vici | Linux version 4.12.14-lp151.28.16-default | Single Serv
er | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel(R) Xeon(R) CPU E5-2450 0 @ 2.10GHz
Please bear with me.
Call Log
time [s];64.74.129.238;64.124.219.166;64.124.219.133;SIP message
0.000000;;;;INVITE sip:415XXXXXXX@es1.langineers.com:5060 len:1072 [0s]
0.006837;;;;100 trying -- your call is important to us len:440 [0.01s]
1.814675;;;;183 Session Progress len:962 [1.81s]
1.817740;;;;RTP G.711u SSRC:39187691 PORT:15614 packets:537 L:0 J:0.5 [1.82s]
12.625375;;;;200 OK len:948 [12.63s] <<<<<<<<<<<< Acknowledging 200 OK from called phone
12.626401;;;;ACK sip:41XXXXXXX@64.124.219.133:5060 len:531 [12.63s]
12.637800;;;;RTP G.711u SSRC:5e171a64 PORT:15614 packets:622 L:0 J:0.7 [12.64s]
13.718900;;;;RTP G.711u SSRC:698aa077 PORT:14576 packets:626 L:0 J:4.4 [13.72s] <<<<<<<<<<< First RTP sent by ViciDail
26.235069;;;;BYE sip:14158201499@64.74.129.238:5060 len:720 [26.24s]
26.235680;;;;200 OK len:667 [26.24s]
The time difference between the "200 OK" and the first RTP sent by ViciDail is 12.625375 - 13.718900 = -1.093550 seconds. Please note the "ACK" to the "200 OK" happened immediately in 1 millisecond (0.001026s) .
1.1 seconds is a long time between the 200 OK and the first RTP sent, and this is making the gap between the customer "Hello..." and our Agent bridge engagement.
I have AMD disabled (Using Routing extension 8368.)
I understand the system needs to evaluate the call to bridge it or do a system disposition, but the delay to bridge engagement has been noticeable by our agent that most of the time gives no room for Agent/Customer conversation, as the customer is already turned away by the delay. It warns the customer it is a auto-dialing call.
Please advise if there is ways to mitigate this delay.
Many thanks in advance.
********************** Editing after post **************************
What about /usr/share/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi ?????
It is taking 700 milliseconds running.