Faxing in Elastix 2.0 & PSTN

Discussion in 'General' started by ibrahimuwc, Sep 14, 2010.

  1. ibrahimuwc

    Joined:
    Sep 10, 2010
    Messages:
    8
    Likes Received:
    0
    Hi All,
    I have a fresh copy of Elastix 2.0 installed as of last week ona 32-bit machine. I am having trouble setting up the faxing specificallly nvfax. I have followed Ben's June manual about setting up a virtual fax with an IAX extension and downloaded the three .so files from http://dl.dropbox.com/u/4264251/Fax.rar and copied them to /usr/lib/asterisk/modules and restart the computer. However, the nvfax option in Inbound Route is greyed out.

    Here are some observations:

    1. In General Setting, there is no option to disable the fax.
    2. I enabled an IAX extension to receive faxes
    3. Under Fax-->Virutal Fax List: I have the status stating: "Running and idle on ttyIAX1"

    For the record, I have the Digium 410P card and I am able to receive and dial out calls and send voicemail to email.

    Also, I tried sending out a fax via Fax-->Send Fax and uploaded a pdf file but nothing happened there.


    As much help and Ben's manual have been, on the faxing front I think it's outdated in regards to the new modifications of Elastix 2.0


    Any help would appreciated.

    Thanks,
    Ibrahim
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    I believe you will find those binaries are for Asterisk 1.4, Elastix 2.? is not that beast.
     
  3. DaveD

    Joined:
    Nov 12, 2007
    Messages:
    597
    Likes Received:
    0
    Ben's guide for Elastix 2 is out of date, it is for 1.4-1.6.

    The NVFax .so files will not work with asterisk 1.6 in Elastix 2

    search the forums for the fax fix in Elastix 2 that I posted when it was still in beta,it uses the digium fax and has worked with no issues for me,both with SIP and PSTN.

    http://www.elastix.org/en/component/kun ... html#59659

    Save you searching
     
  4. ibrahimuwc

    Joined:
    Sep 10, 2010
    Messages:
    8
    Likes Received:
    0
    These instruction broke my Asterisk. Here is the log.

    [root@sdba-srv-02 asterisk]# tail full
    [Sep 14 21:11:36] VERBOSE[3149] pbx.c: == Registered custom function 'VMCOUNT'
    [Sep 14 21:11:36] VERBOSE[3149] loader.c: func_vmcount.so => (Indicator for whether a voice mailbox has messa ges in a given folder.)
    [Sep 14 21:11:36] WARNING[3149] pbx.c: Already have an application 'SendFAX'
    [Sep 14 21:11:36] WARNING[3149] xmldoc.c: Couldn't find application TxFAX in XML documentation
    [Sep 14 21:11:36] WARNING[3149] xmldoc.c: Couldn't find application TxFAX in XML documentation
    [Sep 14 21:11:36] VERBOSE[3149] pbx.c: == Registered application 'TxFAX'
    [Sep 14 21:11:36] WARNING[3149] pbx.c: Already have an application 'ReceiveFAX'
    [Sep 14 21:11:36] WARNING[3149] xmldoc.c: Couldn't find application RxFAX in XML documentation
    [Sep 14 21:11:36] WARNING[3149] xmldoc.c: Couldn't find application RxFAX in XML documentation
    [Sep 14 21:11:36] VERBOSE[3149] pbx.c: == Registered application 'RxFAX'


    Also, when I try to restart Asterisk I get the error:
    *****************
    STARTING ASTERISK
    Asterisk ended with exit status 1
    *****************

    Also I get the error =========================================================================
    == Parsing '/etc/asterisk/asterisk.conf': == Found
    == Parsing '/etc/asterisk/extconfig.conf': == Found
    Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist? )
    ==================================================



    What's going on? The whole thing is broken now.
     
  5. DaveD

    Joined:
    Nov 12, 2007
    Messages:
    597
    Likes Received:
    0
    Remove app_fax.so and all should be ok
    /usr/lib/asterisk/modules folder - app_fax.so
     
  6. ibrahimuwc

    Joined:
    Sep 10, 2010
    Messages:
    8
    Likes Received:
    0
    Thank you. That did solve the Asterisk restarting problem. It sure did scare me for a moment.

    Now, should continue with Ben's instructions about creating a IAX fax extension?

    At the moment, in Inbound Trunks, I have detection type set to Dahdi since nvfax is still grayed out. The other option is sip?

    Or is there a entirely different approach to doing this.

    And for everyone benefit, here is Digium's guide to doing this:

    http://downloads.digium.com/pub/telephony/fax/README

    All help is much appreciated.
     
  7. DaveD

    Joined:
    Nov 12, 2007
    Messages:
    597
    Likes Received:
    0
    Yes it is safe to create iax extensions as fax.

    Also depending on your freepbx version, you might need to install the fax addon module.I have detection set as SIP due to no longer having pstn line
     
  8. ibrahimuwc

    Joined:
    Sep 10, 2010
    Messages:
    8
    Likes Received:
    0
    Hi Dave,
    I have FreePBX 2.7.05 installed and the Fax add-on since it come by default with Elastix 2.0.

    I have setup an IAX extension with fax enabled, and I have a virtual fax setup under the fax add-on pointing correctly to that fax.

    Also, I have in Inbound Route fax enabled and pointing to the same IAX extension with detection set to Dahdi, and time = 4.

    I asked friend to send me a few faxes but it is not working. This is on a shared pstn line with voice. The line rings four times then it goes to voicemail of an extension as defined in the Inbound Route.

    Any ideas?
     
  9. DaveD

    Joined:
    Nov 12, 2007
    Messages:
    597
    Likes Received:
    0
    It may not be a long enough ring time to pick the call up from pstn
    Also you made need to tweak the rx tx gains on your card for faxes (2 on tx and 5 on rx used to do it for me )
     
  10. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
  11. jimmy888

    Joined:
    Mar 29, 2009
    Messages:
    3
    Likes Received:
    0
    I tried this Fax.rar on elastix2.0, I set up an iax2 extension and used nvdetect to send fax to the iax2 extension. unfortunately, the incomming fax can't be detected. I am never able to receive a fax. I set the detection time to be 4 seconds.

    Here is the log:

    [Dec 22 21:18:34] DEBUG[6572] app_nv_faxdetect.c: Preparing detect of fax (waitdur=4ms, sildur=1000ms, mindur=100ms, maxdur=-1ms)
    [Dec 22 21:18:34] DEBUG[6572] app_nv_faxdetect.c: Start of voice token!
    [Dec 22 21:18:35] DEBUG[6572] app_nv_faxdetect.c: Found unqualified token of 0 ms
    [Dec 22 21:18:38] DEBUG[6572] app_nv_faxdetect.c: Start of voice token!

    I can send out fax without problem. I am using ulaw for faxing out. what can I do to get this working ?
     

Share This Page