Asterisk with FastAgi + Remote PC (Windows) PHP file

fhahroz
Joined: Thu 22 of Jan, 2015

Asterisk with FastAgi + Remote PC (Windows) PHP file

Posted:Thu 22 of Jan, 2015 (21:03 UTC)
Hello Everyone,

I am a newbie to asterisk and found it really interesting! I've been able to create a dial plan that works perfect, but, I am stuck on working with FastAgi. I want asterisk to run my php script that is placed on my windows server remote machine. I have called fast agi as show below:

exten => s,n,AGI(agi://192.168.0.101/tts.php?number=123456789&pin=123)

But asterisk CLI always shows "Connection refused" or "Connection refused for the url 192.168.0.101:4573/tts.php?number=123456789&pin=123"

I wonder why is it appending the port "4573" by its own.

Need help to go through this Connection refusing thing, I have tried turning off the fire wall of my windows machine but still failure.

P.S: My php script is a simple one like the normal php script, nothing special.

Thank You all