[asterisk-users] Re: FastAGI hangs up channel if server is not
available
Tony Mountifield
tony at softins.clara.co.uk
Thu May 17 14:45:55 MST 2007
In article <464CBA36.5050106 at datatrakpos.com>,
Lee Jenkins <lee at datatrakpos.com> wrote:
> Tony Mountifield wrote:
> >
> > No, the information is wrong. You need to make a small mod to res/res_agi.c
> > in order to trap this case. Look for the second occurrence of
> > LOCAL_USER_REMOVE, and add the lines just before it as show by this
> > patch extract (ignore the line numbers; I have other mods too):
> >
> > @@ -2065,6 +2106,9 @@
> > close(fds[1]);
> > if (efd > -1)
> > close(efd);
> > + } else {
> > + pbx_builtin_setvar_helper(chan, "AGISTATUS", "NOTFOUND");
> > + res = 0;
> > }
> > LOCAL_USER_REMOVE(u);
> > return res;
> >
> > With this change, a refused connection will not hang up the channel, but
> > instead will set the AGISTATUS variable to "NOTFOUND".
> >
> > Cheers
> > Tony
>
> Nice. Thanks, Tony.
>
> Has this patched been accepted/committed in subsequent releases such as
> a 1.2.17?
No, I have never got around to submitting it.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list