This won't work. The "session_in_hangup_hook" literally means that the $session object is available in the hangup hook script. You need to use Lua, Perl, or Javascript to access the $session object. What you are doing is actually trying to access a uuid that does not exist. Once the call is over it's gone. The "session" object will be available only in the script that is called in the hangup hook.
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.ThanksFranck
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org