I've got a 3660 connected to a Nortel Option 11c with a PRI. The 3660 is controlled by CallManager 4.01 using MGCP. We are using five digit extensions to make calls between CM and the PBX. Calls between the two are working fine.
Problem is the PBX is reporting the calling number with some extra digits (part of the area code and prefix) that I need to strip. For example if a pbx user at extension 55000 calls a CM user at 75000 the CM user will see 9078555000 as the extension the call is coming from. A 90785 is prepended onto the extension. For various reasons I don't have control over the PBX so it's difficult and time consuming to get changes done so I'd like to fix this in CM.
What is the best way to modify the calling party number in CM? I thought about a translation pattern but I thought that only applied to calls made from CM, not inbound calls. Am I wrong and will that work? Any way to manipulate this on the router? How about modifying the inbound name? (Some pbx phones don't have names and I'd like to display something a little nicer than 'Unknown'.)