ire Client Matter Code Calling Party Transformations Use Calling Party's External Phone Number Mask Calling Party Transform Mask Prefix Digits (Outgoing Calls) Figure 12-26 Route Pattern Information 290 SIP Trunking Route Pattern Gateway/Route List Call Classification Calling Party Transform Mask Make sure that the outbound call goes out with the calling numbers matching the DID number range as allocated by the SP to the bank. For example: 9.1[2-9]XX[2-9JXXXXXX 9. [2-9]XXXXXX CUBE Configuration In the case study for the bank, CUBE works as a interconnecting point between internal and external networks. Both the call legs are SIP-enabled. CUBE communicates with an external facing SP network via SIP and an internal-facing CUCM network via SIP. Now let's see the configurations of different sections of CUBE. Example 12-9 enables SIP-to-SIP calls between two networks. You can also see the com- ments and explanations of the Cisco IOS commands. Example 12-9 Enabling SIP Services in CUBE voice service voip ! Enters voice services configuration for voip allow-connections sip to sip (CUBE Feature) bind control source -interface - Loopback0 ! SIP source address bind media source interface Loopback 0 early-offer forced ! SIP Signaling midcall - signaling passthru Is needed for G.711 and G.729 call hold sip-ua retry invite 2 ! This is important when the gateway is in SRST mode retry bye 2 retry cancel 2 g729-annexb override When the employees of the bank dial PSTN or mobile numbers from their desk phones, they dial 9 as a dialing prefix. We need to set up translation rules to strip this prefix SO that it does not go to SP network with the called number. Example 12-10 shows the translation rule configuration to strip the dialed prefix. Chapter 12: Case Studies 291 Example 12-10 Configuring Translation Rules voice translation-rule 1 rule 1 /^9\(.*))/ / // voice translation-profile DIGITSTRIP 9 translate called 1 interface Loopback0 : Make sure, this Loopback interface is routable from your network. ip address 10.255.125.36 255.