2.8 FAX Module Update Globals

I am aware of how to modify extensions in extensions_override_freepbx.conf

However can I override globals? What is the proper method.

I want to change:

FAX_RX_EMAIL = [email protected]
FAX_RX_FROM = [email protected]

The default emails cause rejects from relay hosts that validate domains.

As always…Thanks…

SkykingOH, can you check this?
Start mysql:

SELECT variable, value FROM globals WHERE variable IN ('FAX_RX', 'FAX_RX_EMAIL', 'FAX_RX_FROM');

If you get results, the delete them:

DELETE FROM globals WHERE variable IN ('FAX_RX', 'FAX_RX_EMAIL', 'FAX_RX_FROM')

Then check if you have email set up in fax module:

select * from fax_details;

Look at the sender_address and fax_rx_email if the correct address is set.
If not, enter them in Fax Configuration.

Scott,

The sender address comes from the following entry, line 227 of functions.inc.php:

[php]

<?php $sender_address=sql('SELECT value FROM fax_details WHERE `key` = \'sender_address\'','getRow'); [/php] That value is set on the module's page: Fax Presentation Options -> Outgoing Email address It is hard coded in to the dialplan, i does not use a global variable at all. [code] exten => h,n,System(${ASTVARLIBDIR}/bin/fax-process.pl --to "${FAX_RX_EMAIL}" --from "[email protected]" --dest "${FROM_DID}" --subject "New fax from ${URIENCODE(${CALLERID(name)})} ${URIENCODE(<${CALLERID(number)}>)}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${ASTSPOOLDIR}/fax/${UNIQUEID}.tif) [/code]

It is amazing how one can do a deep dive and not look at the obvious.

The “from” email is configured from the FreePBX FAX module.

Placing a valid address in that field fixed the problem.

Sorry I spun y’all up.

Here is a capture from the SMTP transaction:

FreePBX is sending to the proper email, it’s the “from” field that I can’t figure out how to change.

EHLO fax.vi1.net
9/24/2010 2:44:51 PM - (293595) 250-Welcome, cccccccccc], pleased to meet you
9/24/2010 2:44:51 PM - (293595) 250-AUTH=LOGIN
9/24/2010 2:44:51 PM - (293595) 250-AUTH LOGIN
9/24/2010 2:44:51 PM - (293595) 250-SIZE 20971520
9/24/2010 2:44:51 PM - (293595) 250-ETRN
9/24/2010 2:44:51 PM - (293595) 250 HELP
9/24/2010 2:44:52 PM - (293595) MAIL From:<[email protected]> SIZE=76883
9/24/2010 2:44:52 PM - (293595) 550 Domain name mydomain.tld does not exist
9/24/2010 2:44:52 PM - (293595) Domain name of sender mydomain.tld does not exist
9/24/2010 2:44:52 PM - SMTP connection with cccccccccc] ended. ID=293595
9/24/2010 2:44:52 PM - {293595} END SMTP

Here is the Asterisk Log

== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [4403854151@from-sip-external:1] NoOp("SIP-00000002", "Received incoming SIP connection from unknown peer to 4404151") in new stack
    -- Executing [4404151@from-sip-external:2] Set("SIP-00000002", "DID=4404151") in new stack
    -- Executing [4404151@from-sip-external:3] Goto("SIP/-00000002", "s,1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("SIP/-00000002", "1?checklang:noanonymous") in new stack
    -- Goto (from-sip-external,s,2)
    -- Executing [s@from-sip-external:2] GotoIf("SIP/-00000002", "0?setlanguage:from-trunk,4403854151,1") in new stack
    -- Goto (from-trunk,4403854151,1)
    -- Executing [4403854151@from-trunk:1] Set("SIP/-00000002", "__FROM_DID=4403854151") in new stack
    -- Executing [4403854151@from-trunk:2] ExecIf("SIP/-00000002", "1 ?Set(CALLERID(name)=9548946992)") in new stack
    -- Executing [4403854151@from-trunk:3] Set("SIP/-00000002", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4403854151@from-trunk:4] Set("SIP/-00000002", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [4403854151@from-trunk:5] Goto("SIP/-00000002", "ext-fax,210,1") in new stack
    -- Goto (ext-fax,210,1)
    -- Executing [210@ext-fax:1] NoOp("SIP/-00000002", "Receiving Fax for: MAI FAX (210), From: "6992" <6992>") in new stack
    -- Executing [210@ext-fax:2] Set("SIP/-00000002", "[email protected]") in new stack
    -- Executing [210@ext-fax:3] Goto("SIP/-00000002", "s,receivefax") in new stack
    -- Goto (ext-fax,s,3)
    -- Executing [s@ext-fax:3] StopPlayTones("SIP-00000002", "") in new stack
    -- Executing [s@ext-fax:4] ReceiveFAX("SIP/-00000002", "/var/spool/asterisk/fax/1285368703.2.tif,f") in new stack
    -- Channel 'SIP/-00000002' receiving FAX '/var/spool/asterisk/fax/1285368703.2.tif'
    -- Channel 'SIP/-00000002' FAX session '2' started

assuming you are using the fax module and are on 2.8 or higher (though I think this applies to 2.7 and maybe even 2.6):

FAX_RX_FROM is no longer used and should have been removed by the fax module.

FAX_RX_EMAIL this where the email is being sent to and is configured per user or the default is configured in the Fax Module under the FAX Feature Code Options section where you put the default ‘to’ email address when not otherwise configured.

The “From” header is derived also in the Fax Module under “Outgoing Email Address” in the first section.

so … no overriding necessary.

Hmmm, when I look in the outgoing mail log it is trying to send to [email protected] the extension contains a valid email.

This is a current 2.8 system. I do not see the email in the Asterisk log. May need to crank up the debug.