I just configured a H.323 gateway in Brasil, it works fantastically outbound, but the in bound calls get to the call manager only to receive the error message "check the number you dialed, blah, blah". I know this is a CM error as it's in English not Portuguese, I also see the call being routed to CM via the gateway. Here is the screwed up part, calling party = 15.8122.3528 called = 4000... now look at this debug h225 q931 and check out the called and calling parties. If you notice the actual numbers are in there but somehow an 803 prefix followed by 3's getting inserted every other number...
*Mar 7 19:35:03.007:
Q931 Message IE Decodes
Protocol Discriminator : 0x08
CRV Length : 2
CRV Value : 0x0014
Message Type : 0x05: SETUP
Bearer Capability: Length Of IE=3
Calling Party Number: Length Of IE=12
Called Party Number: Length Of IE=5
User-User: Length Of IE=275
Notice if I replace the 3's with "."
Calling: 803 188.8.131.52.184.108.40.206.2.8
Called: 803 220.127.116.11
What the heck?