douzhunlan5930
douzhunlan5930
2015-01-22 20:00

带有FastAgi + Remote PC(Windows)PHP文件的星号

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 by its own.

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

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

Thank You in advanced

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douyi9787 douyi9787 6年前

    I have solved the question by my self. The only problem was that default port "4573" as my remote PC was not configured to listen this port. Any how, I solved it by simply adding a port to my IP like this "IP:80" and the connection was complete with response of 0.

    Any how the script never fired after this so I use CURL function to get my php script running.

    Thank You

    点赞 评论 复制链接分享

为你推荐