Note: This example explains how to configure trunks for FXO interfaces only.
If a route pattern contains multiple trunk groups, you can give each one a preference number indicating the order in which it is to be used. If you do not use preference numbers, trunk groups are tried in the order in which you added them to the route pattern. The number zero (0) has no precedence.
Trunk access codes, or trunk prefixes, are used for selecting SRX Series MGW trunks that the peer call server passes calls to. You use trunk access codes to enable the peer call server to route calls to a specific trunk, such as a PSTN trunk or a VoIP service trunk. You specify the trunk access code as a route pattern’s digit pattern. In this case, all calls that use the trunk access code are routed out one of the route pattern’s trunks. When trunk access codes are used, you do not need to differentiate types of calls, such as long-distance calls and international calls, as you might do when digit patterns without trunk access codes are used. The peer call server routes a call using the trunk access code, and not based on a type of call.