Menu

DID Routing + t38modem + SIP trunk from PBX setup

Debian
Kevin
2016-02-19
2016-02-19
  • Kevin

    Kevin - 2016-02-19

    Hey Gurus,
    I am trying to setup the system to recieve DID and CLID information from my PBX. I have the system setup with t38modem to a TCP SIP trunk. I can get the CLID to come through on the fax but it doesn't seem to be getting the DID information. I had it working once before but I lost my notes and the system died. I was hoping someone might be able to point me in the right direction with the config.

    Here is m t38modem

    # $Id$
    #
    # HylaFAX configuration for a T38FAX Pseudo Modem
    #
    # This file was originally sourced with permission from
    # Vyacheslav Frolov's t38modem software in OpenH323 package.
    #
    
    ServerTracing:          1
    SessionTracing:         0x2FFF
    RecvFileMode:           0644
    LogFileMode:            0644
    DeviceMode:             0600
    SpeakerVolume:          quiet
    GettyArgs:              ""
    QualifyCID:             etc/cid
    ModemType:              Class1          # use class 1 interface
    ModemFlowControl:       rtscts          # default
    ModemRevQueryCmd:       AT+FREV?
    ModemResetCmds: "AT#CID=10"     # enable ANI/DNIS reporting
    RingsBeforeAnswer:      3               # collect info between two RINGs
    CallIDPattern:         "NMBR = "       # pattern string for calling number
    CallIDPattern:         "NDID = "       # pattern string for called number
    
    #
    ## AvantFAX
    #
    FaxRcvdCmd:     bin/faxrcvd.php
    DynamicConfig:  bin/dynconf.php
    UseJobTSI:      true
    

    Here is the CLID stuff from local_config.php:

            // The config.<devid> file has these settings set:
            //      CallIDPattern:    "NMBR="
            //      CallIDPattern:    "NAME="
            //      CallIDPattern:    "NDID="
            //
            $CALLIDn_CIDNumber      = 1;
            $CALLIDn_CIDName        = 1;
            $CALLIDn_DIDNum         = 2;
    

    When I do a faxstat on a recieved fax, I get this output:

    /var/spool/hylafax/recvq/fax000000006.tif:
        Sender: <UNSPECIFIED>
         Pages: 1
       Quality: Fine
          Page: North American Letter
      Received: 2016:02:18 16:43:37
    TimeToRecv: 0:00:29
    SignalRate: 9600 bit/s
    DataFormat: 2-D MR
    ErrCorrect: No
       CallID1: (FROM FAX CLID)
       CallID2:
    

    So I am thinking that t38modem config might not be setup to recieve the information correctly.

    When I put the trace level high on the t38modem, I get this info in the log so I know the information is beling sent to the server:

    (Sorry about all the covering up information, I know it can make it confusing)

    INVITE sip:(DID)@(AVANT FAX IP) SIP/2.0
    Min-SE: 1200
    Route: <sip:(AVANT FAX IP);lr;phase=terminating;transport=tcp>
    Alert-Info: <cid:internal@invalid.unknown.domain>;avaya-cm-alert-type=internal
    CSeq: 1 INVITE
    Via: SIP/2.0/TCP (PBX IP);branch=z9hG4bK80d6542a1dbe51bfb56d0cc9200
    Session-Expires: 1200;refresher=uac
    History-Info: <sip:(TO FAX EXT)@(SIP DOMAIN)>;index=1
    History-Info: "(TO FAX NAME)" <sip:(TO FAX EXT)@(SIP DOMAIN)?Reason=SIP%3Bcause%3D302%3Btext%3D%22Moved%20Temporarily%22&Reason=Redirection%3Bcause%3DNORMAL%3Bavaya-cm-reason%3D%22cover-all%22>;index=1.1
    History-Info: <sip:%2348(DID)@(SIP DOMAIN)>;index=2.1
    User-Agent: Avaya CM/R015x.02.1.016.4
    From: "(FAX FROM NAME)" <sip:(FAX FROM CLID)@(SIP DOMAIN)>;tag=80d6542a1dbe51bdb56d0cc9200
    Call-ID: 80d6542a1dbe51beb56d0cc9200
    Supported: timer, replaces, join, histinfo, 100rel
    To: sip:(DID)@(AVANT FAX IP)
    P-Asserted-Identity: "(FAX FROM NAME)" <sip:(FAX FROM NUMBER)@(SIP DOMAIN)>
    Contact: "(FAX FROM NAME)" <sip:(FAX FROM NUMBER)@(PBX IP);transport=tcp>
    Allow: INVITE, CANCEL, BYE, ACK, PRACK, SUBSCRIBE, NOTIFY, REFER, OPTIONS, INFO, PUBLISH
    Content-Type: application/sdp
    Content-Length: 211
    Max-Forwards: 71
    Record-Route: <sip:(PBX IP);lr;transport=tcp>
    Accept-Language: en
    

    If Possible, I would even love to get the name from the CLID to be recoded, but mainly I need the DID and the CLID for routing. I just can't remember for the life of me how it was working before.

     

    Last edit: Kevin 2016-02-19
  • Kevin

    Kevin - 2016-02-19

    I found this little gem:
    https://sourceforge.net/p/hylafax/mailman/message/27122927/

    I changed my device configuration (config.ttyx0 files) to the following:

    # $Id$
    #
    # HylaFAX configuration for a T38FAX Pseudo Modem
    #
    # This file was originally sourced with permission from
    # Vyacheslav Frolov's t38modem software in OpenH323 package.
    
    SessionTracing:         0x2FFF
    ModemType:              Class1          # use class 1 interface
    ModemFlowControl:       rtscts          # default
    
    ModemRevQueryCmd:       AT+FREV?
    ModemResetCmds: "AT#CID=10"     # enable ANI/DNIS reporting
    RingsBeforeAnswer:      2               # collect info between two RINGs
    CallIDPattern:          "NMBR = "
    CallIDPattern:          "NAME = "
    CallIDPattern:                  "ANID = "
    CallIDPattern:          "NDID = "
    
    #
    ## AvantFAX
    #
    FaxRcvdCmd:     bin/faxrcvd.php
    DynamicConfig:  bin/dynconf.php
    UseJobTSI:      true
    

    Changed the order the local config to this:

            //
            $CALLIDn_CIDNumber      = 1;
            $CALLIDn_CIDName        = 2;
            $CALLIDn_DIDNum         = 4;
    

    I hope this helps someone in the future.

     

Log in to post a comment.