MICS 6.1 w/ 2 PRIs

Working with another company setting up a call recording device. The PRIs feed into this device to be recorded and then rely on SMDR data to tag the call. The problem is that the SMDR is sending the wrong target line. There doesn't seem to be any consistant mismatches though (like off by 3 every time). Does anyone know what could be causing this?