I am having a problem I cant figure out with a test lab I've setup. Lab is setup as follows:
PSTN (ISDN-PRI)--> Adtran 550 #1 --> PRI XROSS Cable --> Adtran 550 #2 -- Fax Server (Hylafax/Avantfax)
Adtran 550 # 1 is handling my DID's and PRI's. All is working well here. This is actually a production device that just routes numbers to the appropriate PRI.
Adtran 550 # 2 is handling my FXS ports going out to modems (3) attached to the Fax Server. In order to route calls to the correct account on the fax server I must switch the ANI/DNIS on the network term. This is part of the problem I believe.
I can call into the Fax Server from PSTN, call is processed correctly and routed to the correct DID. I can call out from the Fax Server to the PSTN, the call is processed correctly without a CID value (dont want people trying to fax to a wrong number and I do not want dedicated modems). So far so good. However, the problem is if I try and have the Fax Server call itself. I get a busy signal. The error message received on both Adtrans, # 1 and # 2, is that # 2 is rejecting the call because:
01/19 13:30:15 Call to 'XXXXXXXXXX' cleared from ATLAS end <--- swapped my number with XXXXXXXXXX...
01/19 13:30:15 Ds0:6 RX-Change rxABCD:05 txABCD:05 t:74112891 ms
01/19 13:30:13 Call to '' disconnected by far end.
01/19 13:30:13 Ds0:6 DSP Event:60000 t:74110947 ms
01/19 13:30:13 Incoming call to ' ' refused - No such number in A
01/19 13:30:13 Incoming call not completed: UNASSIGNED_NUMBER :
01/19 13:30:13 ' ' rejected: No such number <--- The null "from" value
01/19 13:30:13 Call to ATLAS:'' from 'XXXXXXXXXX'.
01/19 13:30:13 Gate opened to name by Proceeding Msg.
01/19 13:30:13 XXXXXXXXXX Pri. accepted: slot Ntw1, port 1
01/19 13:30:13 Dialing XXXXXXXXXX
I have verified the call is hitting Adtran # 1 and being routed back to # 2 where it is being rejected because it cannot find a match for the number, a null value (remember ANI/DNIS are being swapped). So Adtran # 1 recognizes the number being dialed is being routed back to # 2 but it doesn't know where to send it on # 2 even though I have a "$" in the IN#ACCEPT for the FXS ports.
I can assign a CID value to the FXS port and the call does complete - however, because the ANI/DNIS are being swapped - the call does not route to the correct account on the fax server. Likewise, I can split up the PRI and create a new Network Term sending calls "As Dialed" instead of "ISDN National As Dialed" and I can again get the call to complete but they do not route to the correct account because the DNIS is showing up as a null ' ' , if I swap the ANI/DNIS on the new network-term the call fails due to the same issue with # 2 rejecting the call.
Ive been combing google and the AOS/Atlas 550 manuals to no avail....can someone more experienced with these devices point me in the right direction on where to look? Im sure its something extremely simple. Im also working on putting together the Atlas configs in a fashion you can go through if so requested.