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 _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151215/04f5fb0f/attachment.html>
Hey; Is there a reason why you aren't using the standard FastAGI port 4573? Regards; John V. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of pierre.guyard at orange.com Sent: Tuesday, December 15, 2015 12:18 PM To: asterisk-users at 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=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%3B Statut&db=Oracle+database&query=VIP&as=10.171.54.149) . . . Thank you in advance, Pierre ____________________________________________________________________________ _____________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151215/31df84e2/attachment.html>
In article <26820_1450199905_56704B61_26820_4934_1_9222B1F3842BDF4A9CDAB9E738A7114E8334BB at OPEXCNORM53.corporate.adroot.infra.ftgroup>, <pierre.guyard at orange.com> wrote:> > 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.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 -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
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----- De?: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] De la part de Tony Mountifield Envoy??: mercredi 16 d?cembre 2015 13:00 ??: asterisk-users at lists.digium.com Objet?: Re: [asterisk-users] FastAGI not working In article <26820_1450199905_56704B61_26820_4934_1_9222B1F3842BDF4A9CDAB9E738A7114E8334BB at OPEXCNORM53.corporate.adroot.infra.ftgroup>, <pierre.guyard at orange.com> wrote:> > 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.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 -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.