Elastix + Digium a400p = Fax server?

Discussion in 'General' started by neolinux, Sep 16, 2009.

  1. neolinux

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Hello,

    i need to install elastix and configure it as incoming fax server with the Digium A400P card...

    Anyone has any how-to?

    Thank You,
    neolinux
     
  2. neolinux

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    No one?

    Any advice on other hardware?
     
  3. neolinux

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Hello,

    After 2 days I found the solution by myself, I want to share it with you all, so that I can help those who have (or will have) the same problem.

    Code:
    Setup Fax Server (Elastix + HylaFax + AvantFax + OpenVox A400P (4FXO))
    
    1) Install Elastix
    
    2) Edit file /etc/yum.repos.d/elastix.repo
    
    Enable [elastix-extras]
    from enabled=0 to enabled=1
    
    2) Launch: yum install elastix-avantfax
    
    3) Configure /etc/asterisk/extensions.conf
    
    Add at end of file:
    
    ;this is where parked calls go if they time-out.  Should probably re-ring
    [default]
    include => ext-local
    exten => s,1,Playback(vm-goodbye)
    exten => s,2,Macro(hangupcall)
    
    [analog-in]
    exten => s,1,Answer
    exten => s,n,Wait(3)
    exten => s,n,Dial(IAX2/51318)
    exten => s,n,Hangup
    
    [incoming]
    exten => NUMERODITELEFONOCLIENTE,1,Answer
    exten => NUMERODITELEFONOCLIENTE,n,Wait(1)
    exten => NUMERODITELEFONOCLIENTE,n,Dial(IAX2/51318))
    exten => fax,1,Goto(fax-inc,fax,1)
    
    [fax-inc]
    exten => s,1,Answer
    exten => s,2,Goto(fax,1)
    exten => fax,1,Answer
    exten => fax,2,Dial(IAX2/51318)
    exten => fax,3,Hangup
    
    4) Add an extension IAX2 (web interface elastix)
    
    5) Create a new Virtual Fax (web interface elastix, insert the IAX2 extension and password)
    
    6) Edit the file /var/spool/hylafax/etc/config.ttyIAX[X] (where [X] is the number assigned by the virtual fax)
    
    Add at end of file:
    
    FaxrcvdCmd: /var/spool/hylafax/bin/faxrcvd.php
    DynamicConfig: /var/spool/hylafax/bin/dynconf.php
    UseJobTSI: true
    
    7) Edit the file /etc/asterisk/chan_dahdi.conf
    
    Must be so:
    
    [trunkgroups]
    
    [channels]
    signalling=fxs_ks
    callerid=""
    context=analog-in
    channel => 2
    faxdetect=incoming
    
    ;Uncomment these lines if you have problems with the disconection of your analog lines
    ;busydetect=yes
    ;busycount=3
    
    
    immediate=no
    
    #include dahdi-channels.conf
    #include chan_dahdi_additional.conf
    
    8) Run these commands to the permissions:
    
    chown -R asterisk:uucp /var/www/html/avantfax/faxes
    chown -R asterisk:uucp /var/www/html/avantfax/tmp
    chmod -R 777 /var/www/html/avantfax/faxes /var/www/html/avantfax/tmp
    
    9) Restart the machine
    
    10) Enjoy
    
     
  4. agetz1

    Joined:
    Sep 22, 2009
    Messages:
    1
    Likes Received:
    0
    neolinux

    Finally, thanks for the documentation. I've been looking for something like this for a while. Can you go into details of your configuration with steps 3, 4, and 6?

    I have a rhino card and it's working for outbound faxes but i don't get an email when new faxes arrive and i'd like to get the new version of avantfax installed too.

    Any help would be great!
    Thanks
     
  5. itjumper

    Joined:
    Jul 22, 2008
    Messages:
    81
    Likes Received:
    0
    I did yum install elastix-avant. After completion, advantfax complained there is no database
     

Share This Page