mail2fax.sh
John Pierce <[email protected]> Wed, 20 Apr 2016 23:30:22 -0500
| Newsgroups | gmane.comp.telephony.fax.hylafax.user |
|---|---|
| Message-ID | <[email protected]> |
I posted yesterday regarding asterisk complaining requirecalltoken=no needed to be added to my iax.conf; which it already was. I updated asterisk to the latest release: 13.8.2. I'm sure now that asterisk was reporting the error incorrectly. I'm now getting the following error, which I did see yesterday while I was manipulating /etc/asterisk/iax.conf: asterisk console: [2016-04-20 23:06:06] NOTICE[3773]: chan_iax2.c:11222 socket_process_helper: Rejected connect attempt from 127.0.0.1:4576, request '62452329@fax' does not exist /var/spool/fax/log/c000000190: Apr 20 23:06:06.70: [ 4786]: SESSION BEGIN 000000190 62452329 Apr 20 23:06:06.70: [ 4786]: HylaFAX (tm) Version 5.5.8 Apr 20 23:06:06.70: [ 4786]: SEND FAX: JOB 17 DEST mail2fax COMMID 000000190 DEVICE '/dev/ttyIAX6' FROM 'John Pierce <[email protected]>' USER fax Apr 20 23:06:06.70: [ 4786]: STATE CHANGE: RUNNING -> SENDING Apr 20 23:06:06.70: [ 4786]: <-- [12:AT+FCLASS=1\r] Apr 20 23:06:06.71: [ 4786]: --> [2:OK] Apr 20 23:06:06.71: [ 4786]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled Apr 20 23:06:06.74: [ 4786]: DIAL 62452329 Apr 20 23:06:06.74: [ 4786]: <-- [13:ATDT62452329\r] Apr 20 23:06:06.74: [ 4786]: --> [11:NO DIALTONE] Apr 20 23:06:06.74: [ 4786]: SEND FAILED: JOB 17 DEST mail2fax ERR No local dialtone {E004} Apr 20 23:06:07.75: [ 4786]: <-- [5:ATH0\r] Apr 20 23:06:07.75: [ 4786]: --> [2:OK] Apr 20 23:06:07.75: [ 4786]: MODEM set DTR OFF Apr 20 23:06:07.75: [ 4786]: MODEM set baud rate: 0 baud (flow control unchanged) Apr 20 23:06:07.75: [ 4786]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5) Apr 20 23:06:07.75: [ 4786]: SESSION END DIAL 62452329: Where is hylafax getting this from? The number is grossly incorrect, but the context fax is correct. As you can see it's the same number asterisk is using to open an iax2 channel, but its only 8 characters, so asterisk is rejecting the number. My dedicated fax number is 228XXXXXXX. I configured mail2fax as follows: Grabbed mail2fax.sh from here: http://hylafax.sourceforge.net/howto/misc/mail2fax.sh Installed it and configured my already running/working postfix as per these instructions: http://hylafax.sourceforge.net/howto/faxing.php added "transport_maps = hash:/etc/postfix/transport" to /etc/postfix/main.cf created /etc/postfix/transport: added "fax.mydomainname.com fax:localhost" ran: postmap /etc/postfix/transport added "alias_database = hash:/etc/aliases" to alias_database = hash:/etc/aliases created postfix /etc/aliases: added "mail2fax: |/usr/bin/mail2fax.sh" ran: newaliases verified: /etc/aliases.db created FaxDispatch, added following alias: [email protected]; FILETYPE=tiff; NOTIFY_FAXMASTER=errors; created fax email alias via postfixadmin added second domain fax.mydomainname.com created fax.mydomainname.com cname record in dns. I can receive faxes. I verified with a free online service. I just cant send. Thanks for your help. -- John Pierce ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe [email protected] < /dev/null *To learn about commercial HylaFAX(tm) support, mail [email protected].*