Jiteen
Jiteen

Reputation: 427

Set Timeout for MAX_AGI_CONNECT in Asterisk

I have an Asterisk installed and a Zoiper softphone. Whenever we make a call, there is an error displayed on Asterisk :

WARNING[28761]: res_agi.c:1498 launch_netscript: FastAGI connection to 'agi://0.0.0.0/incoming.agi' timed out after MAX_AGI_CONNECT (2000) milliseconds. -- Auto fallthrough, channel 'SIP/123-0000003d' status is 'UNKNOWN'

It takes approx 10 seconds to connect a call, but as the Time-out is for 2 sec, thus the call is never connected.

My question is : How can we change the default Time-out from 2000ms to 15000ms ?

Upvotes: 0

Views: 2134

Answers (1)

gkocjan
gkocjan

Reputation: 735

Problem is that in some point of your dialplan there is AGI that can't be executed. It's look like this:

exten => ????,n,AGI(agi://0.0.0.0/incoming.agi)

If you need it you have to fix your script to receive connection in proper way or change dialplan.

In case you realy need this, you can change timeout in sources

Upvotes: 1

Related Questions