DID loosing digits

Hi;
This works fine in trixbox but when I custom install asterisk and add the trunk I cannot read the last digit of the DID on an incoming SIP connection. My JP SIP provider gives me the DID as Country code 81 and then 50 and then 8 digits so a total of 12 digits. Is there somewhere I can set this?

<— SIP read from UDP:111.111.111.111:5060 —>
INVITE sip:81500000742@111.111.111.112:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK0mlpn51088nhofo194o0.1
From: sip:9012341234@PSTN.MYPROVIDER.COM;tag=SDr5nmb01-gK0a7589a4
To: sip:815000007421@111.111.111.111:5060

You provider has a very strange SIP message. The “DID’s” differ:

INVITE sip:81500000742@111.111.111.112:5060 SIP/2.0
To: <sip:815000007421@111.111.111.111:5060>

If I were you, I would ask you SIP provider why they are cutting the last digit in their SIP Invite messages (To header seems to be correct).

Thanks for the help. I discovered that it was my fault. The registration string was missing some digits due to a typo.