[asterisk-users] Detecting a fax

Floimair Florian f.floimair at commend.com
Fri Jan 11 04:04:53 CST 2019

I would guess from your explanation that the "outgoing" call somehow ends up in your Asterisk machine again, either at the voicetest or fax extension.
You don't answer it in either of the extensions. 
That's what TOOTAI meant.

If this is done in another extension, than this part of the Dialplan is missing in your post. So we can only guess what's going on.
Either post the full dialplan or add some log or cli output (with verbose set to at least 1) so we can have a chance of seeing what's going on.
With best regards

Florian Floimair
Innovation - Software-Development

A-5020 Salzburg, Saalachstraße 51
http://www.commend.com <http://www.commend.com/>

Security and Communication by Commend

FN 178618z | LG Salzburg

Am 11.01.19, 10:23 schrieb "asterisk-users im Auftrag von Neil Youngman" <asterisk-users-bounces at lists.digium.com im Auftrag von neil.youngman at wirefast.com>:

    On 11/01/2019 09:19, Administrator TOOTAI wrote:
    > Le 11/01/2019 à 10:12, Neil Youngman a écrit :
    >> A while back, I posted about detecting when a call was picked up by a 
    >> fax machine. It was suggested that having a "fax" extension and 
    >> "faxdetect=yes" would cause it to jump to the "fax" extension. This 
    >> was not something I could get to work.
    >> I have now created a very simple example. In sip.conf I have 
    >> "faxdetect = yes". My example extension is:
    >> [test]
    >> ;
    >> ; Voice test extension
    >> ;
    >> exten => voicetest,1,NoOp()
    >>      same => n,LOG(Notice,${CHANNEL}: Extension voiceout starting)
    >>      same => n,LOG(Notice,${CHANNEL}: Starting Answer Machine Detection)
    >>      same => n,AMD()
    >>      same => n,LOG(Notice,${CHANNEL}: Answer Machine Detection 
    >>      same => n,Playback(/var/lib/asterisk/sounds/en/demo-congrats)
    >>      same => n,LOG(Notice,${CHANNEL}: Voice out extension complete)
    >>      same => n(hangup),Hangup()
    >> ;
    >> ; Fax detected extension
    >> ;
    >> exten => fax,1,NoOp()
    >>      same => n,LOG(Notice,${CHANNEL}: Extension fax starting)
    >>      same => n,LOG(Notice,${CHANNEL}: Fax Machine Detected)
    >>      same => n,Playback(/var/lib/asterisk/sounds/en/silence/2)
    >>      same => n,LOG(Notice,${CHANNEL}: Fax extension complete)
    >>      same => n(hangup),Hangup()
    >> and the logs show that calling a fax using the voiceout extension in 
    >> context test does not result in the fax extension being triggered.
    >> [Jan 11 08:55:10] NOTICE[18073][C-00000115] Ext. voicetest: 
    >> SIP/ Extension voiceout starting
    >> [Jan 11 08:55:10] NOTICE[18073][C-00000115] Ext. voicetest: 
    >> SIP/ Starting Answer Machine Detection
    >> [Jan 11 08:55:13] NOTICE[18073][C-00000115] Ext. voicetest: 
    >> SIP/ Answer Machine Detection 
    >> [Jan 11 08:55:44] NOTICE[18073][C-00000115] Ext. voicetest: 
    >> SIP/ Voice out extension complete
    >> Just for completeness this is how the call is originated, with a 
    >> different phone number:
    >> Action: Originate
    >> ActionId: 1234567W001-125
    >> Context: test
    >> Exten: voicetest
    >> Priority: 1
    >> Channel: SIP/+441632660987 at
    >> Timeout: 60000
    >> Async: True
    >> Can anyone offer any insight into why this isn't working?
    >> Neil Youngman
    > You didn't ANSWER() the call
    It's an outgoing call. I wouldn't expect to answer an outgoing call?
    Neil Youngman 
    Wirefast Limited
    Wirefast provides secure corporate messaging services.
    See our messaging solutions at  http://www.wirefast.com/ 
    Please consider the environment.
    Does this email or attachment need to be printed?
    This message contains confidential information and is intended only 
    for the individual named. If you are not the named addressee you 
    should not disseminate, distribute or copy this email. Please 
    notify the sender immediately by email if you have received this 
    email by mistake and delete this email from your system.
    Any views or opinions are solely those of the author
    and do not necessarily represent those of Wirefast Limited
    Email transmission cannot be guaranteed to be secure or error-free 
    as information could be intercepted, corrupted, lost, destroyed, 
    arrive late or incomplete, or contain viruses. The sender therefore 
    does not accept liability for any errors or omissions in the contents 
    of this message which arise as a result of email transmission.
    Wirefast Limited is registered in England & Wales
    Company number: 03865860
    Registered Office: 7/10 Chandos Street, Cavendish Square, London, W1G 9DQ
    Wirefast definitions of classification can be found here: www.wirefast.com/classifications
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    Check out the new Asterisk community forum at: https://community.asterisk.org/
    New to Asterisk? Start here:
    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:

More information about the asterisk-users mailing list