SOLVED Incredible PBX Avantfax / Hylafax

nunya

Member
Joined
Oct 1, 2010
Messages
44
Reaction score
3
When trying to send a fax from the Avantfax dashboard, I get the following error:
sendfax: Password:Login failed: 500 'PASS ': Syntax error, expecting password.

This is on a fresh install of Incredible PBX, using the incrediblefax script. http://nerdvittles.com/?p=738

I also cannot get incoming faxes to be detected. I'd really rather not start over, as I finally got every trunk and extension configured just right.
 

radiopol

New Member
Joined
Apr 8, 2008
Messages
1
Reaction score
0
When trying to send a fax from the Avantfax dashboard, I get the following error:
sendfax: Password:Login failed: 500 'PASS ': Syntax error, expecting password.

This is on a fresh install of Incredible PBX, using the incrediblefax script. http://nerdvittles.com/?p=738

I also cannot get incoming faxes to be detected. I'd really rather not start over, as I finally got every trunk and extension configured just right.


Did you have this issue solved?
 

nunya

Member
Joined
Oct 1, 2010
Messages
44
Reaction score
3
Fax

Never did. I'm still searching for a solution. Everything I find when googling "sendfax: Password:Login failed: 500 'PASS ': Syntax error, expecting password." gets me nowhere.
 

nunya

Member
Joined
Oct 1, 2010
Messages
44
Reaction score
3
Just wanted to check back I'm doing a fresh install of PIAF. But, I wanted to say that I was able to get sendfax working through avantfax. Apparently I "broke" it be deleting the "avantfax" default user after creating my own. When adding a user, apparently the

/var/spool/hylafax/etc/hosts.hfaxd

can get pretty ugly when adding and deleting users from Avantfax.
 

sekiur

New Member
Joined
Feb 20, 2009
Messages
10
Reaction score
0
When trying to send a fax from the Avantfax dashboard, I get the following error:
sendfax: Password:Login failed: 500 'PASS ': Syntax error, expecting password.

This is on a fresh install of Incredible PBX, using the incrediblefax script. http://nerdvittles.com/?p=738

I also cannot get incoming faxes to be detected. I'd really rather not start over, as I finally got every trunk and extension configured just right.
Nunya: Try to remove callerid as a source from the incoming trunk.
 

nunya

Member
Joined
Oct 1, 2010
Messages
44
Reaction score
3
Apparently there was an issue with the incrediblefax script at the time. All is working well on a new installation. Thanks
 

sekiur

New Member
Joined
Feb 20, 2009
Messages
10
Reaction score
0
Apparently there was an issue with the incrediblefax script at the time. All is working well on a new installation. Thanks
I found the problem. When you add a user, it is added to the top of the hosts.hfaxd file in the etc folder. This messes up the permissions. If you edit the hosts.hfaxd and at localhost and 127.0.0.1 to the top of the file, it fixes the problem.
 

Cynjut

Member
Joined
Jul 15, 2009
Messages
68
Reaction score
11
Just in case anyone else ends up here:

If you installed Avantfax in PIAF and get this error, the file you want to modify is /var/spool/hylafax/etc/hosts.hfaxd.

The "fix" is to open the file from the editor and move "localhost" and "127.0.0.1" from the bottom of the file to the top.
 

mathewss

Guru
Joined
Sep 21, 2011
Messages
8
Reaction score
2
No problem. glad to contribute. Been trying for a few days now to get Fax detection working but have hit a roadblock I can not seem to figure out.

I had an existing PIAF purple install that I updated and its now these versions. Not sure if others exist
PBX in a Flash Version = 1.7.5.6
FreePBX Version = 2.9.0.12
Running Asterisk Version = 1.8.4.1
Asterisk Source Version = 1.8.4.1
Dahdi Source Version = 2.4.1.2+2.4.1
Libpri Source Version = 1.4.11.5

I also have been using Visual Dial Plan if that effects anything.

I can receive and send faxes just fine but the detect fax stuff is causing problems. I receive a fax from my flowroute sip trunk and I see it detected as a fax but then an error occures in a Goto and it wont send it
to the FAX extension.

Code:
2013-06-13 10:26:56 DEBUG32029 res_rtp_asterisk.c: Starting RTCP transmission on RTP instance '0x2aaaac7e6358'
2013-06-13 10:26:56 DEBUG32029 dsp.c: 1100 Hz done detected
2013-06-13 10:26:56 DEBUG32029 chan_sip.c: Fax CNG detected on SIP/flowroute-00000028
2013-06-13 10:26:56 VERBOSE32029 chan_sip.c: == Redirecting 'SIP/flowroute-00000028' to fax extension due to CNG detection
2013-06-13 10:26:56 DEBUG32029 channel.c: Soft-Hanging up channel 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second
2013-06-13 10:26:56 DEBUG32029 channel.c: Stopped silence generator on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Set channel SIP/flowroute-00000028 to write format ulaw
2013-06-13 10:26:56 DEBUG32029 pbx.c: Spawn extension (from-trunk,fax,1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'Goto'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: — Executing fax@from-trunk:1 Goto("SIP/flowroute-00000028", ",,") in new stack
2013-06-13 10:26:56 NOTICE32029 pbx.c: Cannot find extension context ''
2013-06-13 10:26:56 WARNING32029 pbx.c: Priority '' must be a number > 0, or valid label
2013-06-13 10:26:56 DEBUG32029 pbx.c: Spawn extension (from-trunk,fax,1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Soft-Hanging up channel 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'Macro'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: — Executing h@from-trunk:1 Macro("SIP/flowroute-00000028", "hangupcall,") in new stack
2013-06-13 10:26:56 DEBUG32029 pbx.c: Expression result is '1'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'GotoIf'


After a bit of work I was able to find the Goto in the configs ( must be an easier way to get the line number of the error in the logs? )

I was able to narrow it down to this config line ( note i added the Log event to track this down )

Code:
[ext-did-0001]
include => ext-did-0001-custom
exten => fax,1,Log(NOTICE,wtf1)
exten => fax,n,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})
So it seems that FAX_DEST is not a valid variable so I must have missed something someplace.

Any thoughts? I just dont want to go messing with stuff as I know from experience how easy it is to destroy everything and force me to start from scratch.

Re
Sean Mathews
CTO @ Nu Tech Software Solutions, Inc.
 

b0b z33

Member
Joined
Dec 6, 2013
Messages
73
Reaction score
2
Had it (fax) working once but re-started from scratch when the fax borked. We're not going to do it again

Having the same issue with one of the latest versions 2.0.6.4.5 PIAF (Green / Asterisk 11)

Problem sending the fax.
sendfax: Password:Login failed: 500 'PASS ': Syntax error, expecting password.

faxstat
HylaFAX scheduler on pbx.local: Running
Modem ttyIAX0 (+1.800.555.1212): Running and idle
Modem ttyIAX1 (+1.800.555.1212): Running and idle
Modem ttyIAX2 (+1.800.555.1212): Running and idle
Modem ttyIAX3 (+1.800.555.1212): Running and idle

│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ Disk Free = ADEQUATE| Mem Free = ADEQUATE| NTPD = ONLINE │
│ SendMail = ONLINE | Samba = OFFLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PIAF Installed Version = 2.0.6.4 under *HARDWARE* │
│ FreePBX Version = 2.11.0.11 │
│ Running Asterisk Version = 11.6.0 │
│ Asterisk Source Version = 11.6.0 │
│ Dahdi Source Version = 2.7.0.2 │
│ Libpri Source Version = 1.4.14 │
│ Operating System = CentOS release 6.4 (Final) <> │
│ Kernel Version = 2.6.32-358.23.2.el6.i686 - 32 Bit │
│ Incredible Version = 11.7
 

b0b z33

Member
Joined
Dec 6, 2013
Messages
73
Reaction score
2
Disregard...

Moving the localhost & 127.0.0.1 line to the top of
/var/spool/hylafax/etc/hosts.hfaxd

worked after a reboot

Thanks
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
Can not reach service hylafax at host "localhost". I tried to fax a thing and this is what i get what can i do to fix this??? please help very urgent
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
It also does not show on the welcome page on admin dont know why and did what you suggested please help
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,210
Reaction score
5,239
Posting a new problem that already is flagged as SOLVED will result in your not getting much help.

HINT: Start new threads for new problems.
 

Members online

Forum statistics

Threads
25,839
Messages
167,933
Members
19,264
Latest member
baata
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top