bg_system not in mod_commands Fax2Mail

Status
Not open for further replies.

fipse

New Member
Jun 30, 2022
6
0
1
34
Hi,

I'm trying to activate fax2mail on my new system (5.0.1). Everythings works as expected but i don't get an en email notification if a new fax arrives.


The fax-to-mail script from..scripts/hangup_rx.lua tryes to execute
Code:
result = api:executeString("bg_system "..cmd);
but since bg_system isn't in mod_commands it can't be executed. looks like a bug in 5.0.1

1656590044747.png
1656590289837.png
1656590334077.png

Does anyone can point me in the right direction how to fix this?

PS: THIS isn't helping, but it's basically the same problem :/
 

fipse

New Member
Jun 30, 2022
6
0
1
34
Try using this guide and follow step 10 & 11

Hi mcs332

thanks for the suggestion but even on a fresh install this is not working neither the f2m nor the m2f function. So it's basically back to square one.

@m2f do i still need the cron (#*/2 * * * * wget --no-check-certificate --delete-after https://127.0.0.1/app/fax/fax_emails.php >/dev/null 2>&1) bc the mails never got pulled from the mailserver? if i run it now manually the mail gets pulled but it never gets sent.

but there is also good news: if i send a fax from applications/fax server i get an conformation via mail - this is new :)

Maybe someone want to try: Ubuntu 20.04 srv with only SSH enabled (no Desktop) and the standard install script from the fusion website

-fipse

1656661547017.png
1656661605022.png
1656661651951.png

1656662926313.png
i've already set the queue back to true.. (and jepp this relay works w/o auth from my ip. mail is also working from the cli)
 
Last edited:

mcs3ss2

Active Member
Sep 8, 2020
286
33
28
AU
here is what I use in cron job every 1 minute to pull emails from the mail server inbox

Bash:
*/5 * * * * sudo -u www-data php /var/www/fusionpbx/app/fax/fax_emails.php
 

fipse

New Member
Jun 30, 2022
6
0
1
34
here is what I use in cron job every 1 minute to pull emails from the mail server inbox

Bash:
*/5 * * * * sudo -u www-data php /var/www/fusionpbx/app/fax/fax_emails.php
OK thanx. but this is basically the same as
Code:
*/2 * * * * wget --no-check-certificate --delete-after https://127.0.0.1/app/fax/fax_emails.php >/dev/null 2>&1

Ok following happened: with everything activated and the ques running - nothing [neither m2f nor f2m is working]
with fax_queue.service not running: mail2fax works, f2m not



This still don't get executed and therefore no notification is sent

Code:
2022-07-04 08:29:14.607250 98.67% [NOTICE] switch_cpp.cpp:1465 [fax] command: /usr/bin/php /var/www/fusionpbx/secure/fax_to_email.php email=somewere@somehow.com extension=30 name=/var/lib/freeswitch/storage/fax/192.168.154.35/30/inbox/012345678999-2022-07-04-08-28-30.tif messages='result:OK sender: pages:1' domain=192.168.154.35 caller_id_name=012345678999 caller_id_number=01234567 fax_relay=false          fax_prefix=false
 

mcs3ss2

Active Member
Sep 8, 2020
286
33
28
AU
30 in the dialplan is loopback

can you change fax ext to 1000 plus number

I am not an expert but I think that 30 might be causing contradiction with dp
 

fipse

New Member
Jun 30, 2022
6
0
1
34
ok.. no difference :( mail2fax is working as expected, fax2mail not. the notification isn't sent. i only can download it in the inbox from app/fax server.
 
Status
Not open for further replies.