Joshua C. Colp
2023-Feb-28 13:50 UTC
[asterisk-users] 5s delays before executing the dialplan
On Tue, Feb 28, 2023 at 9:48 AM Kingsley Tart <kingsley at dns99.co.uk> wrote:> Hi, > > We've recently hit an issue with Asterisk 18.8.0 where a call comes in > via SIP (using pjsip) but it can take 5 seconds before starting to > execute the dialplan. > > This was intermittent, but frequent (eg approx half of the calls). > > We have verbose logging on, but I didn't see any errors. > > Running asterisk -r -vvvv and then watching SIP traffic in another > window showed the INVITE coming in, then a good 5 seconds before > dialplan execution started showing within the Asterisk console. > > We've never seen this before, but it affected 6 our of 8 of our > Asterisk servers. They're running in debian 11 VMS, with the VMs > running under KVM on the host OS which is also debian 11. > > Any suggestions where to look next? We've been running Asterisk for > years but never seen this issue before. > > FWIW, the match= lines for the SIP proxies sending to Asterisk are > configured by IPv4 address, not host name. >Is the local hostname configured in /etc/hosts and not reliant on an outside DNS server? Are you using ICE or STUN at all? -- Joshua C. Colp Asterisk Project Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230228/2b5ba774/attachment.html>
Kingsley Tart
2023-Feb-28 16:52 UTC
[asterisk-users] 5s delays before executing the dialplan
On Tue, 2023-02-28 at 09:50 -0400, Joshua C. Colp wrote:> Is the local hostname configured in /etc/hosts and not reliant on an > outside DNS server? Are you using ICE or STUN at all?Hi, thanks for responding. No ICE or STUN. Some of the servers have entries for themselves in /etc/hosts and some rely on external DNS. That is not by design, it's just how it happened and I shall sort that out. I can't figure out how whether the delays were on only the ones without /etc/hosts entries, but I can be sure that some without those entries definitely did experience those delays. Does 5 seconds match some sort of DNS timeout within Asterisk that could have been the cause? Cheers, Kingsley. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230228/8799c2e1/attachment.html>