[Asterisk-Users] Delay in dial

steve@daviesfam.org
2005-09-28T12:44:53Z

On Wed, 28 Sep 2005, yusuf wrote:

> I am using Asterisk CVS, and I am getting a huge delay in dialing SIP.
> This Asterisk box is taking calls from a PABX over ZAP, then dialing SIP
> users.
> So, a user '0251' dials from his phone, the PABX sends it the my
> Asterisk box, no delay, then I get a 15 sec delay, before it actually
> dials the end SIP user.
>
> 1   -- Accepting call from '0251' to '0834541083' on
channel 0/1, span
> 2    -- Executing NoOp("Zap/1-1", "0834541083") in new
stack
> 3    -- Executing Answer("Zap/1-1", "") in new stack
> 4    -- Executing
Dial("Zap/1-1","SIP/0834541083@192.168.11.111:5060")in
>             5       new stack
> 6    -- Called 0834541083@192.168.11.111:5060
> 7    -- SIP/192.168.11.111:5060-1699 is ringing
> 8    -- SIP/192.168.11.111:5060-1699 is ringing
> 9    -- SIP/192.168.11.111:5060-1699 is ringing
> 0834541083
>
> When the call is placed, Asterisk executes until Line 5.  There is a 10
> -15 sec delay between Line 5 and Line 6. Once Line 6 has executed, only
> then does it dial


Hi Yusuf,

Hope you are well.

I think this is a DNS issue.

You're dialling a full SIP address.  The time delay could perhaps be taken
up by the Asterisk SIP code doing a DNS lookup for srv records, in
combination perhaps with broken DNS setup on the machine?

In your sip.conf, try setting srvlookup=no.

It may also be that the peer system is doing some sort of reverse DNS
lookup and that is causing the delay.

I guess I'm generally suggesting that if the srvlookup change doesn't
fix
the problem, then you need to look at DNS.

Regards,
Steve Davies