Summary: | ASTERISK-18568: Extend the use of Wait to intergrate with res_fax and detect fax/voice | ||
Reporter: | Gregory Hinton Nietsky (irroot) | Labels: | |
Date Opened: | 2011-09-17 12:09:52 | Date Closed: | 2011-09-17 13:05:13 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Various | Attachments: | |
Description: | [Synopsis] Generic Fax Detect CNG/T.38 (Wait For Fax) [Description] This application sets FAXOPT(status) To SUCCESS | FAILURE | ERROR FAXOPT(statusstr) will be set to CNG | T38 on SUCCESS or reason on FAILURE | ERROR [Syntax] WaitFAX(timeout[,tone[,noise]]) [Arguments] timeout Specifies the number of seconds we attempt to detect a fax tone on the channel tone Either the tone name defined in the "indications.conf" configuration file, or a directly specified list of frequencies and durations. If not specified silence is generated. noise Number of ms noise detected before proceeding with the dialplan. Example exten => s,n,WaitFax(4,ring,150) exten => s,n,GotoIf($[${FAXOPT(status)} = SUCCESS]?fax,${ARG1},2) This will wait 4s playing ring tone and will break the loop when 150ms of voice is detected or 4s expires. this allows a dialplan fax detection with or without channel faxdetect. the problem with fax detect in the channel this happens when the channel is answered it may be routed to a fax machine already when it answers and then bounces to the fax exten to get routed back to the fax it will be busy. | ||
Comments: | By: Gregory Hinton Nietsky (irroot) 2011-09-17 13:05:13.391-0500 Some how jira added it 2 |