Problem - Can't recive fax

Post your configuration issues while installing ictfax

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:07 am

The error log shows that RESTXML response is invalid. That means either you have some syntactic error in your XML response code or Plivo is unable to load FAX API for processing ReceiveFax.

Which version of Plivo you installed? Have you installed Plivo that comes with ictfax package?

As you have pointed that this could be a problem related to plivo communicating with the webpage, You can also check the GUI log from yourdomain.com/admin/reports/dblog. That can allow to correctly figure out any error related to webpages.

You can post your GUI logs to further analyze and point your problem.

Also make sure, that you have NOT enabled Clean-URLs in the Drupal GUI. If you don't know what I am saying then leave it because by default Clean-URLs are disabled.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:19 am

We haven't tested this application on Debian. So don't know how it behaves on the Debian server.

Your Plivo is running fine. Plivo cache server doesn't matter in our case. So if it is failed that is not important.

Code: Select all
   MESSAGE   Notice: Undefined index: To in ictfax_receive_fax() (line 1122 of /usr/ictfax/sites/all/modules/ictpbx/ictfax/ictfax.module).



This is important. Because "To" is the request argument that Plivo takes from Freeswitch and give to our application. It contains the number to which you want to send the fax. If it is empty that means fax-receive code never gets executed. There may be something wrong with Freeswitch or Plivo. There is another source code log that can be accessed from "/tmp/mytest.txt". You can also check what actually coming into the request array by writing the following line in the source code "ictpbx/ictfax/ictfax.module" at line 1122 and then checking in the /tmp/mytest.txt log.

Code: Select all
    echo exec("echo 'Request=".print_r($_REQUEST, true)."' >> /tmp/mytest.txt");


Are you testing this system on the local numbers or some provider trunk / gateway? If you are on provider trunk / gateway then some providers may require to disable certain codecs while sending / receiving fax. Try disabling all the freeswitch codecs except ALAW, ULAW and / or T.38.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:25 am

Plivo log clearly shows that a check condition is forcing the application to execute hangup. It means fax receive is not executing that is why you are unable to receive fax.

There are two check conditions before receiving a fax.

1) Receiver number (number on which you are receiving fax) must be assigned to a valid user and also set forwarding to some email address. (if condition on line 1128 in ictfax.module file)

You must assign the number to some valid user and forward that number to email address of that user.

2) Second condition is is of balance (bundle) that should be greater than zero.

Second condition you can simply remove (on line 1136 in ictfax.module file) by assigning a value greater than zero to free_bundle variables. Such that write following before if condition
Code: Select all
    $ictpbx_user['free_bundle'] = 2;
    $ictpbx_user['reserve_free_bundle'] = 0;



I hope this will solve the problem.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:26 am

Yes Robert, This is known bug. Viewing a received fax contains errors that is due to porting of code from Drupal 6 to Drupal 7. However, you can find your received fax file in /usr/ictfax/sites/default/files/ictfax/inbox directory.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:27 am

Can't really tell from this log what actually went wrong. Please send the back-end log present in /tmp/mytest.txt.
Also post GUI log present in Admin -> Reports -> Recent log messages.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Problem - Can't recive fax

Postby falak » Fri Apr 26, 2013 7:29 am

Everything seems fine in the log except the pages of the received fax file. Log shows empty array in the pages variable. Have tried opening fax file that you received in "usr/ictfax/sites/default/files/ictfax/inbox" directory?

Even then an email should have been sent containing that error pdf file. Please try checking that your email server is working. If you are using any third party SMTP, try verifying that by sending a test mail.

Secondly, The received fax file (.TIF) is converted to PDF file before sending as an email attachment. Therefore there is no need to change .TIF to .PDF in the line 1206 as you mentioned. Both files are there. You can send anyone of them as an email attachment but double check that names are correct.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am


Return to Configuration

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron