SIP Fax reception since update to 12.0

Hi,

I don’t know if it’s related with the recent update to 12.0 but the timing is there.

In FreePBX I have set up SIP Fax detection, which thens sends it to a “Fax recipient” which is basically an extension with the fax options adequately configured, and an email address for where to send the fax to.

It was working perfectly until the update.

Now, what happens is that the fax detection DOES work but I’m not getting the email!

Just in case, we’re still getting the VOICEMAIL emails though!

Here’s an extract from the console:

    -- Executing [s@ext-fax:4] ReceiveFAX("SIP/sip.babytel.ca-000015d5", "/var/spool/asterisk/fax/1412304049.5594.tif,f") in new stack
    -- Channel 'SIP/sip.babytel.ca-000015d5' receiving FAX '/var/spool/asterisk/fax/1412304049.5594.tif'
       > 0x7f73f1f35e60 -- Probation passed - setting RTP source address to XXX
       > 0x7f73f1f35e60 -- Probation passed - setting RTP source address to XXX
[2014-10-02 22:41:19] WARNING[1776][C-00000000]: channel.c:1337 __ast_queue_frame: Unable to write to alert pipe on Message/ast_msg_queue (qlen = 96): Resource temporarily unavailable!
  == Spawn extension (dpma_message_context, digium_phone_module, 7) exited non-zero on 'Message/ast_msg_queue'
    -- Executing [s@ext-fax:5] ExecIf("SIP/sip.babytel.ca-000015d5", "0?Set(FAXSTATUS="FAILED: error:  statusstr: OK")") in new stack
    -- Executing [s@ext-fax:6] Hangup("SIP/sip.babytel.ca-000015d5", "") in new stack
  == Spawn extension (ext-fax, s, 6) exited non-zero on 'SIP/sip.babytel.ca-000015d5'
    -- Executing [h@ext-fax:1] GotoIf("SIP/sip.babytel.ca-000015d5", "0?failed") in new stack
    -- Executing [h@ext-fax:2] GotoIf("SIP/sip.babytel.ca-000015d5", "0?noemail") in new stack
    -- Executing [h@ext-fax:3] Set("SIP/sip.babytel.ca-000015d5", "DELETE_AFTER_SEND=true") in new stack
    -- Executing [h@ext-fax:4] System("SIP/sip.babytel.ca-000015d5", "/var/lib/asterisk/bin/fax2mail.php --to "XXX" --dest "XXX" --callerid ‘XXX’ --file /var/spool/asterisk/fax/1412304049.5594.tif --exten "XXX" --delete "true" --attachformat "pdf"") in new stack
    -- Executing [h@ext-fax:5] Macro("SIP/sip.babytel.ca-000015d5", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/sip.babytel.ca-000015d5", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/sip.babytel.ca-000015d5", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("SIP/sip.babytel.ca-000015d5", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/sip.babytel.ca-000015d5' in macro 'hangupcall'
  == Spawn extension (ext-fax, h, 5) exited non-zero on 'SIP/sip.babytel.ca-000015d5'

Anything helpful in /var/log/maillog or perhaps /var/log/httpd/error_log?

I see the fax is attempting to be sent so I would check you mail logs as @brk mentioned “/var/log/maillog”.

I can tell you it’s not a 12 issue simply from the fact that I’ve worked with a few external people on faxing in 12 already and I believe if there was an issue I would have heard about it from those people.

There are a few other disconcerting things in your log however:

and

However let’s focus on the emailing portion first.

For this fax, /var/log/maillog says this:

Oct  2 22:41:21 freepbx postfix/qmgr[1337]: 6DE1B207E5: from=<[email protected]>, size=11971, nrcpt=1 (queue active)
Oct  2 22:41:21 freepbx postfix/smtp[17305]: 6DE1B207E5: to=<XXX>, relay=XXX:25, delay=0.25, delays=0.04/0.01/0.04/0.16, ds$
Oct  2 22:41:21 freepbx postfix/qmgr[1337]: 6DE1B207E5: removed

The email sent to, and the relay server address are the good one.

Still, now email is received.

Nothing in /var/log/httpd/error_log

When originally installing the distro, I had to mess around a lot with postfix to make the emails work, because the FROM address wasn’t a “real” address, and I couldn’t get to change it in FreePBX GUI, and my mail server does a check to see if the address exists before accepting the emails.

However, this would also affect the voicemail emails, and it would show in the maillogs,…

So I’m not sure what’s going on here !

So it’s working? I don’t understand.

Sorry for the confusion.

At the moment of writing my last message, it was still not working.

However, I went into

FreePBX > Setting > Fax Configuration

and noticed that no email was set (probably got lost in the upgrade.

Since then, it seems to be working fine !

1 Like

That’s actually a new setting. It was not there previously and used the system default email. root@localhost usually