There is an API call : sofia_gateway_dataYou can use it inside a dialplan to get the value of a gateway variable.Should give you the status.I tried it, but it is not working on my platform, using CentOS6 packages from the okay repo.Certainly a compilation question (I didn't take time to fix this at the moment).​
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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