Php 2 trigger a extension in extensions_custom.conf

Hello,

Im trying to make a trigger from a php page to the Freepbx server. I would like to trigger a custom extension. I found some ways where you can talk from asterisk to the php file but not the other way around. The extension dials a number and plays a message to that person after that it will hangup.

Do you maby have a idea how to talk from php to the Freepbx server?

Thank you,

Nick

Use AMI for connection(you can create the raw socket or use an existing php class like phpagi) or even if the same user & group is used by asterisk & apache you can send commands via asterisk -rx.

Last advice: google is your friend.