more then one virtual fax

Discussion in 'General' started by crasca, Dec 3, 2009.

  1. crasca

    Joined:
    Dec 3, 2009
    Messages:
    7
    Likes Received:
    0
    Hi guys !!
    I need a guru.
    I try to explain....
    Well i had installed Elastix and i'm very happy.
    It's very simply and all goes great !!!
    Now i have a ISDN line connected trough a misdn driver
    with the same number on all two telco lines.
    So i'd like to receive fax contemporarily on the two lines
    but if i set ANY CID/ANY DID on inbounds route, i can only use one
    internal virtual fax.
    i can't use more then one DID because the number is always the same
    and i don't know if it is possible to use "ZAP CHANNEL DID" feature of
    FREEPBX with MISDN.
    I hope i' m clear. Sorry for my english.
    I'm waiting for some gurus !!
    Ciao !!
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    If you had your inbound route going to a ring group of two (or more if not ISDN BRI) "virtual faxes", that should work for you under your circumstances. If you expect voice and faxes investigate nvfax (I don't know if ZAPTEL fax detect works on mISDN) interception to send it to your ring group through a custom extension, that just calls the ring group.
     
  3. crasca

    Joined:
    Dec 3, 2009
    Messages:
    7
    Likes Received:
    0
    good ideas !!! I'll try ....
    Thank a lot
     
  4. crasca

    Joined:
    Dec 3, 2009
    Messages:
    7
    Likes Received:
    0
    I think i have to create a ring group
    with two virtual fax extension and then
    modify this context to point to the ring groups
    and then put it in the extensions_override_freepbx.conf
    what do you think about ?
    How have i to modify the bold line below ?

    Perhaps so :

    [ext-fax]
    exten => s,1,Answer
    exten => s,2,Goto(in_fax,1)
    exten => in_fax,1,StopPlayTones
    exten => in_fax,2,GotoIf($["${FAX_RX}" = "system"]?3:analog_fax,1)
    exten => in_fax,3,Macro(faxreceive)
    exten => in_fax,4,Hangup
    exten => analog_fax,1,GotoIf($["${FAX_RX}" = "disabled"]?4:2) ;if fax is disabled, just hang up

    exten => analog_fax,2,Set(DIAL=${DB(DEVICE/${FAX_RX}/dial)});

    become

    exten => analog_fax,2,Goto(ext-group,group_number);

    exten => analog_fax,3,Dial(${DIAL},20,d); this to be deleted

    exten => analog_fax,4,Hangup
    ;exten => out_fax,1,wait(7)
    exten => out_fax,1,txfax(${TXFAX_NAME},caller)
    exten => out_fax,2,Hangup
    exten => h,1,system(/var/lib/asterisk/bin/fax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --dest "${FROM_DID}" --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)})}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${FAXFILE});
    exten => h,2,Hangup()
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    or a custom extension thet has as a dial string

    local/5555@from-internal

    where 5555 is your RG and send the faxes to that extension, this is a kluge as you can only send a detected fax to an extension in FreePBX, and not directly to a ring group, I'm just lazy!
     
  6. crasca

    Joined:
    Dec 3, 2009
    Messages:
    7
    Likes Received:
    0
    this works very very very well
    extensions_override_freepbx.conf

    [ext-fax]
    exten => s,1,Answer
    exten => s,2,Goto(in_fax,1)
    exten => in_fax,1,StopPlayTones
    exten => in_fax,2,GotoIf($["${FAX_RX}" = "system"]?3:analog_fax,1)
    exten => in_fax,3,Macro(faxreceive)
    exten => in_fax,4,Hangup
    exten => analog_fax,1,GotoIf($["${FAX_RX}" = "disabled"]?3:2) ;if fax is disabled, just hang up
    exten => analog_fax,2,Goto(ext-group,2,1); 2 is faxes group
    exten => analog_fax,3,Hangup
    ;exten => out_fax,1,wait(7)
    exten => out_fax,1,txfax(${TXFAX_NAME},caller)
    exten => out_fax,2,Hangup
    exten => h,1,system(/var/lib/asterisk/bin/fax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --dest "${FROM_DID}" --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)})}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${FAXFILE});
    exten => h,2,Hangup()

    Thank you very much !!
    Bye !!
     

Share This Page