Check what you are recieving as dialled string, we had a similar issue and it transpired that the SIP provider was sending the account number rather than the DDI, so call was not following expected route via the DID Table.
If you program a handset to show all lines, then call in on the number...