execute UserEvent via curl

  1. 8 years ago

    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

  2. admin

    22 Nov 2016 Administrator

    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..

or Sign Up to reply!