<div dir="ltr"><div>Thanks guys!  Makes perfect sense now.  </div><div> </div><div>I'm in the process of cleaning up a CUBE so that the dial peer logic is easier to follow. It isn't complex but it is production so I have to be sure of my footsteps.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 12:53 PM, Robert Kulagowski <span dir="ltr"><<a href="mailto:rkulagow@gmail.com" target="_blank">rkulagow@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, May 29, 2013 at 11:43 AM, Erick Wellnitz<br>
<<a href="mailto:ewellnitzvoip@gmail.com">ewellnitzvoip@gmail.com</a>> wrote:<br>
> Simple question I just need a refresher.<br>
><br>
> On my CUBE, if I translate-outgoing called xxxx on the dial peer does my<br>
> destination pattern need to match the original number or the translated<br>
> number?  The dial peer guides are not quite clear in my mind.<br>
><br>
> Here is my dial peer and my translation rule.<br>
><br>
> voice translation-rule 4000<br>
>  rule 1 /^\+/ /9/<br>
> ***replacing the + globalization with 9 for outbound PSTN access<br>
><br>
> dial-peer voice 4000 voip<br>
>  description Inbound Toll Bypass from XXXXX<br>
>  translate-outgoing called 4000<br>
>  preference 1<br>
>  destination-pattern +16304######   <-----should this be 916304######?<br>
>  session protocol sipv2<br>
>  session-taaget ipv4:<a href="http://172.16.7.12:5070" target="_blank">172.16.7.12:5070</a><br>
>  incoming called-number +16304######<br>
>  dtmf-relay rtp-nte<br>
>  codec g711ulaw<br>
<br>
The translation happens once you've matched a dial-peer: (we dial "8"<br>
to get out so that people don't accidentally dial "911" by accident)<br>
<br>
dial-peer voice 10000 voip<br>
 description Outbound SIP to Bandwidth.com<br>
 translation-profile outgoing SIP-OUT<br>
 preference 1<br>
 destination-pattern 8T<br>
 session protocol sipv2<br>
 session target dns:<a href="http://ot.bandwidth.com" target="_blank">ot.bandwidth.com</a><br>
 voice-class sip dtmf-relay force rtp-nte<br>
 voice-class sip profiles 200<br>
 dtmf-relay rtp-nte<br>
 codec g711ulaw<br>
 ip qos dscp cs5 media<br>
 ip qos dscp cs4 signaling<br>
 no vad<br>
<br>
voice translation-profile SIP-OUT<br>
 translate called 8<br>
<br>
voice translation-rule 8<br>
 rule 1 /^81\(.*\)/ /+1\1/<br>
 rule 2 /^\*81\(.*\)/ /+1\1/<br>
 rule 3 /^8011\(.*\)/ /+\1/<br>
 rule 4 /^\*8011\(.*\)/ /+\1/<br>
 rule 10 /^91\(.*\)/ /+1\1/<br>
 rule 11 /^9011\(.*\)/ /+\1/<br>
</blockquote></div><br></div>