FastAGI Not Working
Hello everyone,
I have a problem with a FastAGI connection, could you help me fix this problem please?
Here is my log:
[2015-12-15 16:17:09] WARNING[23936][C-00000015]: res_agi.c:1658 handle_connection: Connecting to ‘10.171.54.149:9110’ failed for url ‘agi://10.171.54.149:9110/DatabaseQuery.agi?vars=name%3Bfirst+name%3BStatut&db=Oracle+database&query=VIP&as=10.171.54.149’: Connection refused
[2015-12-15 16:17:09] WARNING[23936][C-00000015]: res_agi.c:1730 launch_netscript: Couldn’t connect to any host. FastAGI failed.
And my extensions.conf :
[950-IVR-mainmenu]
exten => s,1,Playback(${message accueil})
exten => s,n,Set(PhoneNumber=${CALLERID(num)})
exten => s,n,AGI(agi://10.171.54.149:9110/DatabaseQuery.agi?vars=name%3Bfirst+name%3BStatut&db=Oracle+database&query=VIP&as=10.171.54.149)
.
.
.
Thank you in advance, Pierre
3 thoughts on - FastAGI Not Working
Hey;
Is there a reason why you aren’t using the standard FastAGI port 4573?
Regards;
John V.
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of pierre.guyard@orange.com Sent: Tuesday, December 15, 2015 12:18 PM
To: asterisk-users@lists.digium.com Subject: [asterisk-users] FastAGI not working
Hello everyone,
I have a problem with a FastAGI connection, could you help me fix this problem please?
Here is my log:
[2015-12-15 16:17:09] WARNING[23936][C-00000015]: res_agi.c:1658
handle_connection: Connecting to ‘10.171.54.149:9110’ failed for url
‘agi://10.171.54.149:9110/DatabaseQuery.agi?vars=name%3Bfirst+name%3BStatut&
db=Oracle+database&query=VIP&as.171.54.149’: Connection refused
[2015-12-15 16:17:09] WARNING[23936][C-00000015]: res_agi.c:1730
launch_netscript: Couldn’t connect to any host. FastAGI failed.
And my extensions.conf :
[950-IVR-mainmenu]
exten => s,1,Playback(${message accueil})
exten => s,n,Set(PhoneNumber=${CALLERID(num)})
exten =>
s,n,AGI(agi://10.171.54.149:9110/DatabaseQuery.agi?vars=name%3Bfirst+name%3B
Statut&db=Oracle+database&query=VIP&as.171.54.149)
.
.
.
Thank you in advance,
Pierre
In article <26820_1450199905_56704B61_26820_4934_1_9222B1F3842BDF4A9CDAB9E738A7114E8334BB@OPEXCNORM53.corporate.adroot.infra.ftgroup>, wrote:
This means that either:
a) Nothing on 10.171.54.149 is listening to port 9110, or:
b) The firewall on 10.171.54.149 is rejecting connections to port 9110.
You didn’t tell us whether 10.171.54.149 is the same box as the asterisk one, or a different one.
On 10.171.54.149, do “netstat -nltp” as root to see what processes are listening, and see if port 9110 is among them.
So if you can describe how you have set up your FastAGI server, and how it invokes DatabaseQuery.agi, that would help us to help you!
Cheers Tony
Hello,
Thank you for these advices, but the problem was in fact that the service of the application which was connected to Asterisk in AGI was stopped. All I have to do is to restart it.
So the firewall isn’t rejecting connections to port 9110.
Thank you very much for your help, Best regards, Pierre
—–Message d’origine—