If they are working with FTDI, doesn't that mean that they are working correclty?
I have seet PAN ID of both to 2001.
also set ATDH to be the common high bits of xbee.
And ATDL is the bottom bits of the destination. Since A wants to send to B, ATDL of A has the bottom bits of B and vice versa.