I set this in my dialplan :
 
   <action application="set" data="session_in_hangup_hook=true"/>
   <action application="set" data="api_hangup_hook=system /usr/local/bin/php /usr/local/freeswitch/scripts/php/test.php ${uuid}"/>
  and this in test.php:
 
  exec("/usr/local/freeswitch/bin/fs_cli -x \"uuid_getvar ".$argv[1]."  test_var\"", $exTabRet, $req);
 
 
 it results :
 
-ERR No Such Channel!
 
 
I tried to replace ${uuid} by ${call_uuid} without success.
 
Thanks
 
Franck