Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12610

Failed fax2mail, what is the source of FAXOPT(remotestationid)?

$
0
0

when I receive a fax, an email does not get sent. from looking at the log, I find this line:

[2025-01-06 14:41:25] VERBOSE[2393724][C-0000177f] pbx.c: Executing [h@ext-fax:5] System("PJSIP/CELLCOM-VRF-1-0099101a", "/var/lib/asterisk/bin/fax2mail.php --remotestationid "" --user "1" --dest "0322553499" --callerid "IjA0NjkyMDgzMSIgPDA0NjkyMDgzMT4=" --file /var/spool/asterisk/fax/1736167168.23858.tif --delete "true"") in new stack

Note that --remotestationid “” - meaning it’s empty.

Trying to run the shown command by myself, I get:

root@FreePBX17:/etc# /var/lib/asterisk/bin/fax2mail.php --remotestationid "" --user "1" --dest "0322553499" --callerid "IjA0NjkyMDgzMSIgPDA0NjkyMDgzMT4=" --file /var/spool/asterisk/fax/1736167168.23858.tif --delete "true"
Whoops\Exception\ErrorException: Uninitialized string offset 0 in file /var/www/html/admin/modules/fax/bin/fax2mail.php on line 216
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/fax/bin/fax2mail.php:216
  2. Whoops\Run->handleError() /var/www/html/admin/modules/fax/bin/fax2mail.php:216
  3. get_opt() /var/www/html/admin/modules/fax/bin/fax2mail.php:28

However, if I add anything in the empty quotes, i.e --remotestationid “1”, the command runs just fine, and the mail gets sent.

My conclusion, is that FAXOPT(remotestationid) is somehow empty and should not be. So my question is, what is the source of this variable? how can I fill it or what configuration changes should I make for this to start working?

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 12610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>