|
I have just realized, that even though you turned on the fax tone
detection, the only way to figure it out (whether the tone has been
detected) is to poll the system variable (fax_tone_detected). In other
words, if the prompt being played or any other lengthy operation is
executing, I will not be able to check the variable, till that
operation finishes. More elegant solution to that problem would be the use use of callbacks or hooks. The following example would demonstrate the idea: function fax_session_hook(status) -- fax tone detected, go and save the fax doProcessFax(); end session:setFaxToneDetectHook("fax_session_hook"); playPrompt('greeting'); -- at this point we are receiving a voice mail session:unsetFaxToneDetectHook(); doProcessVoice() Would it be difficult to implement? PV Michael Collins wrote:
|
_______________________________________________ FreeSWITCH-dev mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
