execute UserEvent via curl

Dear FOP2 Team,

Do you have idea to execute UserEvent via CURL?

I want to run this script from curl

$user_event_body = "\"UserDeviceRemoved,Data: {$user}\\\\,{$devices}\"";
$agi->exec("UserEvent", $user_event_body);

example :

http://IP/userevent.php?param=deviceremove&user=2000&devices=100

Thanks

Comments

  • You should be able to do that with no problem. If you have a php script that will connect to AMI and fire the user event, that php script can be loaded via curl or even you can run it from command line..

Sign In or Register to comment.