NVFAX test files for Elastix 2.0 (32bit)

Discussion in 'General' started by Liakopoulos, Oct 11, 2010.

  1. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
  2. leungda

    Joined:
    Sep 12, 2010
    Messages:
    19
    Likes Received:
    0
    Help to install it. BTW, the link you posted it doesn't work
     
  3. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
    1. Put the two files in /usr/lib/asterisk/modules/
    2. Using the asterisk CLI register the modules by issuing the following:
    module load app_nv_backgrounddetect
    module load app_nv_faxdetect

    After each command you should see a message about a successful module registration.

    As for the post, the full address was too big so here it is in two parts:

    http://www.freepbx.org/forum/freepbx/tips-and-tricks/
    freepbx-2-6-nvfax-detection-asterisk-1-6-1-6-and-digium-fax-working

    Just copy-paste the full address in your browser.

    Hope this helps. Let me know if you need anything else.
     
  4. vijayayar

    Joined:
    Jun 2, 2010
    Messages:
    30
    Likes Received:
    0
    Can you please provide me Nvdetect.so file for Elastix 2.2.0 with 32 bit
    i tried with attached files but its doesnt allow me to load module here.

    Can you please help me for this. or

    I can recieve fax in fax folder but i am not able to get email of fax.
    my email setup is working properly with voice mail but its not working with fax
    so anyone can help me with this issue please.
     
  5. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
  6. vijayayar

    Joined:
    Jun 2, 2010
    Messages:
    30
    Likes Received:
    0
    Hello I have updated given File on server but still i am not getting fax over mail
    see the log if you can help me with this.

    Connected to Asterisk 1.8.7.0 currently running on Elasix (pid = 3884)
    Verbosity is at least 3
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [+17987985195@from-trunk-sip-Packet8:1] Set("SIP/Packet8-00000029", "GROUP()=OUT_2") in new stack
    -- Executing [+17987985195@from-trunk-sip-Packet8:2] Goto("SIP/Packet8-00000029", "from-trunk,+17987985195,1") in new stack
    -- Goto (from-trunk,+17987985195,1)
    -- Executing [+17987985195@from-trunk:1] Set("SIP/Packet8-00000029", "__FROM_DID=+17987985195") in new stack
    -- Executing [+17987985195@from-trunk:2] Gosub("SIP/Packet8-00000029", "app-blacklist-check,s,1") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/Packet8-00000029", "0?check-blocked") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("SIP/Packet8-00000029", "0?check-blocked") in new stack
    -- Executing [s@app-blacklist-check:3] GotoIf("SIP/Packet8-00000029", "0?check-blocked:check") in new stack
    -- Goto (app-blacklist-check,s,5)
    -- Executing [s@app-blacklist-check:5] GotoIf("SIP/Packet8-00000029", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:6] Set("SIP/Packet8-00000029", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:7] Return("SIP/Packet8-00000029", "") in new stack
    -- Executing [+17987985195@from-trunk:3] ExecIf("SIP/Packet8-00000029", "1 ?Set(CALLERID(name)=18825254845)") in new stack
    -- Executing [+17987985195@from-trunk:4] SetMusicOnHold("SIP/Packet8-00000029", "none") in new stack
    -- Executing [+17987985195@from-trunk:5] Set("SIP/Packet8-00000029", "__MOHCLASS=none") in new stack
    -- Executing [+17987985195@from-trunk:6] Set("SIP/Packet8-00000029", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [+17987985195@from-trunk:7] Set("SIP/Packet8-00000029", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [+17987985195@from-trunk:8] Set("SIP/Packet8-00000029", "FAX_DEST=ext-fax^s^1") in new stack
    -- Executing [+17987985195@from-trunk:9] Set("SIP/Packet8-00000029", "FAX_RX_EMAIL=john@yahoo.com") in new stack
    -- Executing [+17987985195@from-trunk:10] Answer("SIP/Packet8-00000029", "") in new stack
    -- Executing [+17987985195@from-trunk:11] Wait("SIP/Packet8-00000029", "2") in new stack
    == Redirecting 'SIP/Packet8-00000029' to fax extension due to CNG detection
    == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/Packet8-00000029'
    -- Executing [fax@from-trunk:1] Goto("SIP/Packet8-00000029", "ext-fax,s,1") in new stack
    -- Goto (ext-fax,s,1)
    -- Executing [s@ext-fax:1] Macro("SIP/Packet8-00000029", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/Packet8-00000029", "AMPUSER=18825254845") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/Packet8-00000029", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/Packet8-00000029", "1?Set(REALCALLERIDNUM=18825254845)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/Packet8-00000029", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/Packet8-00000029", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/Packet8-00000029", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/Packet8-00000029", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/Packet8-00000029", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/Packet8-00000029", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/Packet8-00000029", "CALLERID(number)=18825254845") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/Packet8-00000029", "CALLERID(name)=18825254845") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/Packet8-00000029", "Using CallerID "18825254845" <18825254845>") in new stack
    -- Executing [s@ext-fax:2] NoOp("SIP/Packet8-00000029", "Receiving Fax for: john@yahoo.com , From: "18825254845" <18825254845>") in new stack
    -- Executing [s@ext-fax:3] StopPlayTones("SIP/Packet8-00000029", "") in new stack
    -- Executing [s@ext-fax:4] ReceiveFAX("SIP/Packet8-00000029", "/var/spool/asterisk/fax/1354108548.81.tif,f") in new stack
    -- Channel 'SIP/Packet8-00000029' receiving FAX '/var/spool/asterisk/fax/1354108548.81.tif'
    == Spawn extension (ext-fax, s, 4) exited non-zero on 'SIP/Packet8-00000029'
    -- Executing [h@ext-fax:1] GotoIf("SIP/Packet8-00000029", "1?failed") in new stack
    -- Goto (ext-fax,h,103)
    -- Executing [h@ext-fax:103] NoOp("SIP/Packet8-00000029", "FAX FAILED for: john@yahoo.com , From: "18825254845" <18825254845>") in new stack
    -- Executing [h@ext-fax:104] Macro("SIP/Packet8-00000029", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/Packet8-00000029", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/Packet8-00000029", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/Packet8-00000029", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,15)
    -- Executing [s@macro-hangupcall:15] NoOp("SIP/Packet8-00000029", "MEETME_RECORDINGFILE=") in new stack
    -- Executing [s@macro-hangupcall:16] GotoIf("SIP/Packet8-00000029", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,18)
    -- Executing [s@macro-hangupcall:18] NoOp("SIP/Packet8-00000029", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:19] GotoIf("SIP/Packet8-00000029", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,25)
    -- Executing [s@macro-hangupcall:25] NoOp("SIP/Packet8-00000029", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:26] GotoIf("SIP/Packet8-00000029", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,29)
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/Packet8-00000029", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,32)
    -- Executing [s@macro-hangupcall:32] GotoIf("SIP/Packet8-00000029", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] Hangup("SIP/Packet8-00000029", "") in new stack
    == Spawn extension (macro-hangupcall, s, 34) exited non-zero on 'SIP/Packet8-00000029' in macro 'hangupcall'
    == Spawn extension (ext-fax, h, 104) exited non-zero on 'SIP/Packet8-00000029'
     
  7. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
    Hello there,

    First of all, I see that you are using Asterisk 1.8.7. The latest files are for Asterisk 1.8.18.

    Second, after you put the modules in /usr/lib/asterisk/modules/ (with the right permissions) you must load the modules by issuing the following commands at the Asterisk CLI>

    module load app_nv_backgrounddetect.so
    module load app_nv_faxdetect.so

    Third, what kind of fax detection have you set up in your inbound route?

    Best Regards,

    Panagiotis Liakopoulos
     
  8. vijayayar

    Joined:
    Jun 2, 2010
    Messages:
    30
    Likes Received:
    0
    Thanks for replying

    I want to get fax over Email only. I am getting voicemail over email but not fax.
    even if you can see in my log. i am receiving fax in fax server but its not
    coming over Email.

    Here the log...
    Executing [s@ext-fax:4] ReceiveFAX("SIP/Packet8-00000029", "/var/spool/asterisk/fax/1354108548.81.tif,f") in new stack
    -- Channel 'SIP/Packet8-00000029' receiving FAX '/var/spool/asterisk/fax/1354108548.81.tif'
    == Spawn extension (ext-fax, s, 4) exited non-zero on 'SIP/Packet8-00000029'
    -- Executing [h@ext-fax:1] GotoIf("SIP/Packet8-00000029", "1?failed") in new stack
    -- Goto (ext-fax,h,103)
    -- Executing [h@ext-fax:103] NoOp("SIP/Packet8-00000029", "FAX FAILED for: john@yahoo.com , From: "18825254845" <18825254845>") in new stack
     
  9. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
    Hello Again,

    It seems that you have SIP Fax detection and that the fax to e-mail part fails. This has nothing to do with the files in this thread. You should have a look at your mail logs (e.g. /var/log/maillog) in order to find out why your e-mail fails.

    Best Regards,

    Panagiotis Liakopoulos
     
  10. vijayayar

    Joined:
    Jun 2, 2010
    Messages:
    30
    Likes Received:
    0
    Hello,

    I have find the log but i am not getting any erro with mail log.
    My voicemail is comming over email without any issue. but i would you like to know from your side do you have fax-process.pl file with you .Might be i am not able
    to covert from .TIF file to PDF file by sofware and so might be
    there is some issue with this file.

    you will get file fro elastix : cd /var/lib/asterisk/bin/ .

    So can you help me with this issue of if you have file can you please send me here
    i will check and replace correct detail.

    Thanks for reply dear
     
  11. vijayayar

    Joined:
    Jun 2, 2010
    Messages:
    30
    Likes Received:
    0
    Hello,

    I have find the log but i am not getting any erro with mail log.
    My voicemail is comming over email without any issue. but i would you like to know from your side do you have fax-process.pl file with you .Might be i am not able
    to covert from .TIF file to PDF file by sofware and so might be
    there is some issue with this file.

    you will get file fro elastix : cd /var/lib/asterisk/bin/ .

    So can you help me with this issue of if you have file can you please send me here
    i will check and replace correct detail.

    Thanks for reply dear
     
  12. Liakopoulos

    Joined:
    Feb 24, 2010
    Messages:
    37
    Likes Received:
    0
    Please try the following:

    1. Install ImageMagick

    yum -y install ImageMagick

    2. Run the following command

    /var/lib/asterisk/bin/fax-process.pl --to "your@address.com" --from "freepbx@gmail.com" --dest "11111111" --subject "New fax from me" --attachment fax.pdf --type application/pdf --file your.tif

    where your@address.com replace with your mail address and
    your.tif replace with a tif file on your elastix box.

    Afterwards have a look at the /var/log/maillog file to see if there was an attempt to send an email by fax-process.pl
     

Share This Page