HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Problem with Dialogic/Eicon BRI-2 to initialize modem



Hi Sam,

I use a Diva BRI card connected to our PBX which has the BRI port
configured as a trunk.

The way you are describing seems closer to the way that Eicon cards
work under windows, where you create multiple virtual modems. I
haven't tried this under Linux, as I think there is a better way.

I use FaxDispatch to route inbound calls with DynamicConfig to tidy it
up what the sender sees, and jobcontrol to have outbound calls set
with the correct TSID and CLI. This way you can have an unlimited (1)
number of inbound and outbound dedicated numbers.

(1) depending on your DDI range.

I've put some very rough samples below, but there are better examples online.


Cheers

Arne

sample FaxDispatch
----------------------------------
case "$CIDNUMBER" in
       3001)  SENDTO=user1@domain; FILETYPE=pdf;;       # User 1
       3001)  SENDTO=user1@domain; FILETYPE=pdf;;       # User2
esac
NOTIFY_FAXMASTER=errors
----------------------------------

sample Dynamic.sh
----------------------------------
#!/bin/sh

RCALLID1=$2

case "$RCALLID1" in
       3001)  echo "LocalIdentifier: +44.20.xxxx3001";;         # User 1 Number
       3002)  echo "LocalIdentifier: +44.20.xxxx3002";;         # User 2 Number
esac
----------------------------------

sample jcontrol.sh
----------------------------------
GetClient ()
{
    # Pretend to lookup the user
    case "$1" in
       User1)
            echo "user1"
            ;;
        User2)
            echo "user2"
            ;;
        root)
            echo "REJECT"
            ;;
        *)
            # All others are not full virtual clients
            echo ""
    esac
}
SetControlParam ()
{
    echo "$1: \"$2\""
}
OWNER=$(GetJobParam owner)
EMAIL=$(GetJobParam mailaddr)

CLIENT=$(GetClient "$OWNER" "$EMAIL")
if [ "$CLIENT" == "REJECT" ]
then
    SetControlParam RejectNotice "Not authorized"
    exit
fi
case "$CLIENT" in
   user1)
        # This is for user1, we set the Local Identifier to be "User 1"
        # and set the number to be 'from' 020 xxxx 3001
        SetControlParam LocalIdentifier User 1'
        SetControlParam TagLineFormat 'From User 1 020 xxxx
3001|%c|Page %%P of %%T'
        SetControlParam UseJobTagLine true
        SetControlParam ModemDialCmd 'AT+IO020xxxx3001\nATS0=255;DT%s@'
        ;;
   user2)
        # This is for user2, we set the Local Identifier to be "User 2"
        # and set the number to be 'from' 020 xxx 3002
        SetControlParam LocalIdentifier User 2'
        SetControlParam TagLineFormat 'From User 2 020 xxxx
3002|%c|Page %%P of %%T'
        SetControlParam UseJobTagLine true
        SetControlParam ModemDialCmd 'AT+IO020xxxx6851\nATS0=255;DT%s@'
        ;;
esac
----------------------------------




On Thu, Mar 11, 2010 at 11:42 PM, Sam Przyswa <samp@xxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I installed the Eicon/Dialogic ISDN card with the Dialogic Diva System
> Release 9.0LIN SU driver on Debian 5.0.3 and created symlinks on /dev/ttyds1
> to /dev/ttyds[01-09] with their own phone number, I configured each with
> faxaddmodem ttydsxx. I got any error message running faxaddmodem but when I
> start Hylafax the log say:
>
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATE0\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATV1\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATQ0\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [7:ATS8=2\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [8:ATS7=60\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [12:AT+FCLASS=?\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [9:0,1,1.0,2]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [14:AT+FCLASS=1.0\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATI3\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [16:Eicon ISDN Modem]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATI0\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [16:Eicon ISDN Modem]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [9:AT+FTM=?\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: -->
> [41:3,24,48,72,73,74,96,97,98,121,122,145,146]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [9:AT+FRM=?\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: -->
> [41:3,24,48,72,73,74,96,97,98,121,122,145,146]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:18 colmar FaxGetty[2466]: MODEM EICON ISDN MODEM Eicon ISDN
> Modem/
> Mar 12 00:37:18 colmar FaxGetty[2466]: <-- [5:ATM0\r]
> Mar 12 00:37:18 colmar FaxGetty[2466]: --> [2:OK]
> Mar 12 00:37:20 colmar FaxGetty[2462]: MODEM <Timeout>
> Mar 12 00:37:20 colmar FaxGetty[2462]: DELAY 75 ms
> Mar 12 00:37:20 colmar FaxGetty[2462]: DELAY 2600 ms
> Mar 12 00:37:20 colmar FaxGetty[2465]: MODEM <Timeout>
> Mar 12 00:37:20 colmar FaxGetty[2465]: /dev/ttyds07: Can not initialize
> modem.
>
> I tried to make a call with minicom on one of ttydsxx, it's work.
>
> Thanks in advance for your help.
>
> Sam.
>
>
>
> ____________________ HylaFAX(tm) Users Mailing List _______________________
>  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
> On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
>  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
>
>


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions