Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 12:21:39 AM
Home Help Search Login Register
News: Noojee Receptionist 3.5 Beta 2 released with Asterisk 1.6 support.
See the full details here.

+  Noojee Telephony Solutions Forums
|-+  Noojee Fax
| |-+  Bug Reports
| | |-+  Trouble getting asterfax to start
« previous next »
Pages: [1] Print
Author Topic: Trouble getting asterfax to start  (Read 1791 times)
wschindler
Newbie
*
Offline Offline

Posts: 2


« on: April 21, 2007, 07:40:20 AM »

I have installed asterfax on Trixbox 2.0.  Phone system works just fine.

When I attempt to start asterfax daemon, I get the following error:

---- cut from console output ---------

log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [Audit] additivity to [false].
log4j: Level value for Audit is  [INFO].
log4j: Audit level set to INFO
log4j: Class name: [org.apache.log4j.DailyRollingFileAppender]
log4j: Setting property [file] to [/var/log/asterfax/audit.log].
log4j: Setting property [append] to [true].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d{DATE}, %m%n].
log4j: setFile called: /var/log/asterfax/audit.log, true
log4j: setFile ended
log4j: Appender [AUDIT] to be rolled at midnight.
log4j: Adding appender named [AUDIT] to category [Audit].
log4j: Level value for root is  [WARN].
log4j: root level set to WARN
log4j: Adding appender named [STDOUT] to category [root].
log4j: Adding appender named [FILE] to category [root].
14:36:32,836 ERROR
java.lang.NullPointerException
        at au.com.noojee.asterfax.Configuration.setCompanyNames(Configuration.java:652)
        at au.com.noojee.asterfax.Configuration.loadSettings(Configuration.java:518)
        at au.com.noojee.asterfax.Configuration.load(Configuration.java:500)
        at au.com.noojee.asterfax.Configuration.<init>(Configuration.java:447)
        at au.com.noojee.asterfax.Configuration.getInstance(Configuration.java:493)
        at au.com.noojee.asterfax.AsterFax.main(AsterFax.java:324)


-------- ./config/AsterFax.xml (partial)

<AsterFax>
        <Settings>
                <CompanyName>My Company and Associates</CompanyName>
                <ReturnFaxNumber>3105551212</ReturnFaxNumber>
                <FaxHeader>
                        <Font>
                                <Name>Arial</Name>
                                <Bold>True</Bold>
                                <Italic>False</Italic>
                                <Size>16</Size>

------- and below, the CompanyName is configured

I am running latest AsterFax.jar


Does anyone have any idea what is going on here?
Logged
warrick.zedi
Asterisk IT Staff
Sr. Member
*****
Offline Offline

Posts: 350



« Reply #1 on: April 30, 2007, 09:28:10 AM »

Do you have a Templates element in the config file? If so please comment that out and test again.
Logged
wschindler
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: April 30, 2007, 12:27:14 PM »

Oh, what a difference !!

Thanks,

Another question, if you don't mind.  How would I go about sending a fax but not from email (e.g., as an attachment)?  I'd like to be able to send the same document to one or more people without using email as the vehicle.  In other words, where could I put the fax image and cause AstraFax to send it?
Logged
warrick.zedi
Asterisk IT Staff
Sr. Member
*****
Offline Offline

Posts: 350



« Reply #3 on: May 09, 2007, 08:36:10 AM »

AsterFax was designed specifically as an email to fax gateway so there is no other interface at the moment.

One way to do it from the command line is to use the test script in /usr/bin/asterfax/test. run test.sh as follows:

./test.sh <sender email> <fax number> <host> <port> <attachment path>

where:
  sender email is the email address that receives receipts and error reports
  fax number is the fax number to send the attachment to
  host is the AsterFax host (probably localhost)
  port is the AsterFax port (probably 25)
  attachment path is path to the file you want to send

Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!