<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>You can only have one incoming and one outgoing profile in a dial peer. However, a profile can have a set of translation rules for called and calling. Thinking of translations in three parts. For example:</div>
<div><br>
</div>
<div>First, apply the translation profile to the dial peer in the specific direction....</div>
<div><br>
</div>
<div>dial-peer voice 1 pots</div>
<div>   translation-profile incoming PSTN-IN</div>
<div>   translation-profile outgoing  PSTN-OUT</div>
<div><br>
</div>
<div>Next step is to apply the specific rules to the profile. It is here where the called and calling translations are defined:</div>
<div><br>
</div>
<div>voice translation-profile PSTN-IN</div>
<div>  translate calling 1</div>
<div>  translate called 2</div>
<div><br>
</div>
<div>voice translation-profile PSTN-OUT</div>
<div>  translate calling 3</div>
<div>  translate called 4</div>
<div>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">Finally, build the rules that will apply the translations ... This example requires 4 rules: 2 incoming and 2 incoming rules:</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;">voice-translation-rule 1</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;">    rule 1 / 851/ //</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;">   Add your sub rules as needed</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;"><br></span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;">voice translation-rule 2</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;"><br></span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">voice translation-rule 3</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><br></span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">voice translation-rule 4</span></font></pre>
<pre style="overflow: auto; max-width: 650px; min-width: 400px; height: auto;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;"> </span></font></pre>
    </div>
<div>Hope this helps</div>
<div><br>
Dave 
<div><br>
</div>
</div>
<div><br>
On Feb 17, 2015, at 5:08 AM, Euan McGregor <<a href="mailto:euan@mcgregor.co">euan@mcgregor.co</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi All,
<div><br>
</div>
<div>This might seem like a noob question but I have never had to do this before. I need to translate both the calling and the called party numbers on the CUBE. Can the dial peer take two incoming translation profiles for the called and calling number I cant
 seem to find any definitive answers to my query!</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Euan</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>cisco-voip mailing list</span><br>
<span><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a></span><br>
<span><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span><br>
</div>
</blockquote>
</body>
</html>