Hi All, I checked and find two possible solution. But still NOT clear. 1. Run "fs_cli" in PHP script. But NOT find to correct command to show the channel variables. Nor the data for Mod_spandsp. https://wiki.freeswitch.org/wiki/Fs_cli#Simple 2. get info from "Mod event socket". But still NOT very clear how to get the Mod_spandsp event. https://wiki.freeswitch.org/wiki/Mod_event_socket#api https://wiki.freeswitch.org/wiki/Event_Socket_Library#events https://wiki.freeswitch.org/wiki/Event_List#Event-Name https://wiki.freeswitch.org/wiki/Mod_spandsp Please share your idea, how to handle such issue? Hope there is direct way to get the result code, then it will be easy to handle fax step in the script. Thanks! 2014-04-15 sparklezou 发件人:Michael Jerris <mike@jerris.com> 发送时间:2014-04-14 20:08 主题:Re: [Freeswitch-users] How to check the "fax_result_code" in the script? such as php script? 收件人:"FreeSWITCH Users Help"<freeswitch-users@lists.freeswitch.org> 抄送: you could use an api hangup hook, or possibly do it in cdr processing. On Apr 10, 2014, at 10:39 PM, sparklezou <sparklezou@163.com> wrote: Hi Buddies, Reviewed the wiki, https://wiki.freeswitch.org/wiki/Mod_spandsp How to check the "fax_result_code" in the php script? Also other result info, such as fax_result_text, then could provide more detail response info to the client. Thanks! 2014-03-03 sparklezou _________________________________________________________________________