Reduce Delay In Fax Detection

Home » Asterisk Users » Reduce Delay In Fax Detection
Asterisk Users 3 Comments

hello everybody

i want to send fax via asterisk in pass through mode. everything is ok if enable fax detection in ooh323 and write fax extension in extensions.conf file. just one problem: delay. i have to wait 5 seconds in order to fax detection done. it is too long for me when i have voice call and no fax. my phone rings after five seconds. is there any way to omit or reduce this time? i test and understand that sip fax detection acts in some milliseconds but oohs323 needs 5 seconds to do that. what is difference between them?

any comments or hints are really appreciated. SAM

3 thoughts on - Reduce Delay In Fax Detection

  • Hey;

    Yes, I’ve also seen that 5 second delay with our fax server and it drove me crazy. How I solved it was by doing a “core show channels ” and detect if there was a fax transmission going on. Doing it this way shows up instantaneously without any delay. Like so:

    mte6*CLI> core show channels concise

    SIP/SIPRoutes-00000054!faxserver-tx!fax!11!Up!SendFAX!/var/spool/asterisk/fax/documents/faxadmin/default.tif,dfz!!voipbusiness!!3!4!(None)!1432132315.97

    mte6*CLI> core show channels verbose

    Channel Context Extension Prio State Application Data CallerID Duration Accountcode PeerAccount BridgedTo

    SIP/SIPRoutes-000000 faxserver-tx fax 11 Up SendFAX /var/spool/asterisk/fax/d 00:00:10 voipbusines (None)

    1 active channel

    1 active call

    62 calls processed

    mte6*CLI> core show channels

    Channel Location State Application(Data)

    SIP/SIPRoutes-000000 fax@faxserver-tx:11 Up SendFAX(/var/spool/asterisk/fa

    1 active channel

    1 active call

    62 calls processed

    All of these outputs shows that there is a fax transmission taking place. I hope this helps.

    Regards;

    JV

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of s m Sent: Wednesday, May 20, 2015 2:54 AM
    To: Asterisk Users Mailing List – Non-Commercial Discussion Subject: [asterisk-users] reduce delay in fax detection

    hello everybody

    i want to send fax via asterisk in pass through mode. everything is ok if enable fax detection in ooh323 and write fax extension in extensions.conf file. just one problem: delay. i have to wait 5 seconds in order to fax detection done. it is too long for me when i have voice call and no fax. my phone rings after five seconds. is there any way to omit or reduce this time? i test and understand that sip fax detection acts in some milliseconds but oohs323 needs 5 seconds to do that. what is difference between them?

    any comments or hints are really appreciated.

    SAM

  • hello and thank you so much for your reply

    just one question: how do you use it? AFAIK, when asterisk receive a call, it select extensions based on the received number and when it detects fax, jump to the fax extension. now when should i use these show commands to detect fax and how should i tell asterisk to execute fax extension?
    this is a big problem for me, so i really appreciate if you help me to solve it.

    yours, SAM

  • Hey;

    We built a pretty extensive fax server and part of what it does is check to see how many fax sessions we currently have. We use that to determine how many new fax sessions we are able to start sending.

    Regards;

    JV

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Hey;

    Yes, I’ve also seen that 5 second delay with our fax server and it drove me crazy. How I solved it was by doing a “core show channels ” and detect if there was a fax transmission going on. Doing it this way shows up instantaneously without any delay. Like so:

    mte6*CLI> core show channels concise

    SIP/SIPRoutes-00000054!faxserver-tx!fax!11!Up!SendFAX!/var/spool/asterisk/fax/documents/faxadmin/default.tif,dfz!!voipbusiness!!3!4!(None)!1432132315.97

    mte6*CLI> core show channels verbose

    Channel Context Extension Prio State Application Data CallerID Duration Accountcode PeerAccount BridgedTo

    SIP/SIPRoutes-000000 faxserver-tx fax 11 Up SendFAX /var/spool/asterisk/fax/d 00:00:10 voipbusines (None)

    1 active channel

    1 active call

    62 calls processed

    mte6*CLI> core show channels

    Channel Location State Application(Data)

    SIP/SIPRoutes-000000 fax@faxserver-tx:11 Up SendFAX(/var/spool/asterisk/fa

    1 active channel

    1 active call

    62 calls processed

    All of these outputs shows that there is a fax transmission taking place. I hope this helps.

    Regards;

    JV

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of s m Sent: Wednesday, May 20, 2015 2:54 AM
    To: Asterisk Users Mailing List – Non-Commercial Discussion Subject: [asterisk-users] reduce delay in fax detection

    hello everybody

    i want to send fax via asterisk in pass through mode. everything is ok if enable fax detection in ooh323 and write fax extension in extensions.conf file. just one problem: delay. i have to wait 5 seconds in order to fax detection done. it is too long for me when i have voice call and no fax. my phone rings after five seconds. is there any way to omit or reduce this time? i test and understand that sip fax detection acts in some milliseconds but oohs323 needs 5 seconds to do that. what is difference between them?

    any comments or hints are really appreciated.

    SAM