<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">any additional advice is welcome, many thanks.<br><br>attached current config<br><br></div><br><br><br><blockquote><hr id="EC_stopSpelling">From: henriphilakham@hotmail.com<br>To: keli@carocomp.ro<br>Subject: RE: [cisco-voip] voip : translation-rule on cs 2801<br>Date: Wed, 6 Feb 2008 03:05:48 +0000<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>

<div style="text-align: left;">Hi<br><br>this one config applies in SRST mode when WAN connectivity is lost with our SIP server (which is doing the call setup&amp;teardown) and it worked well, all digits are forwarded correctly. But you are right about the syntax it should be more precise as in "8.T".<br><br>For local calls, users generally dial prefix 8 to place calls direct via the PSTN route with the local PTT (thru the local gateway). <br>
For international calls prefix users dial 001 and our SIP server does the call routing and set up (thru central SIP platform). <br>I think the global translation rule needs to be more precise when using prefix 8. Hence not sure if we could just do this config instead <br>(cfg-translation-rule)#rule 1 /^8\(.*\)/ /8\1/<br><br><br><br></div><br><br><br><hr id="EC_stopSpelling">&gt; Date: Tue, 5 Feb 2008 16:43:25 +0200<br>&gt; From: keli@carocomp.ro<br>&gt; To: henriphilakham@hotmail.com<br>&gt; Subject: Re: [cisco-voip] voip : translation-rule on cs 2801<br>&gt; <br>&gt; dial-peer voice 4321 pots<br>&gt;  translation-profile outgoing SRST<br>&gt;  destination-pattern T<br>&gt;  progress_ind setup enable 3<br>&gt;  progress_ind alert enable 8<br>&gt;  translate-outgoing called 1<br>&gt;  port 0/3/0:15<br>&gt; !<br>&gt; <br>&gt; If I'm not mistaken, this is the dial-peer in question.<br>&gt; <br>&gt; You *are doing* two tranlations:<br>&gt;  translation-profile outgoing SRST<br>&gt;  translate-outgoing called 1<br>&gt; <br>&gt; also, it is recomennded by cisco, to avoid destination pattern T<br>&gt; use instead destination-pattern .T<br>&gt; <br>&gt; However, for you, this might be the most simple way to do this:<br>&gt; destination-pattern 8.T<br>&gt; no forward-digits<br>&gt; ! with forward digits not specified, the default behaviour is to strip <br>&gt; the exactly matched part at the beginning and forward wildcarded <br>&gt; characters. In your case the 8 will be stripped<br>&gt; no translation-profile<br>&gt; no translate-outgoing<br>&gt; <br>&gt; This will strip the 8 automatically.<br>&gt; <br>&gt; Even faster (an exact match is always better than an open-ended one), <br>&gt; but specific to 8 digits only:<br>&gt; destination-pattern 8........$<br>&gt; forward-digits 8<br>&gt; ! here forward-digits is again, optional, since it should forward the 8 <br>&gt; wildcard digits anyway.<br>&gt; no translation-profile<br>&gt; no translate-outgoing<br>&gt; <br>&gt; best regards,<br>&gt;   Zoltan<br>&gt; <br>&gt; henri philakham wrote:<br>&gt; &gt; thanks Keli, i will test lab it first and let you know if it works...<br>&gt; &gt; meantime here's my GW config fyi, i think there was no overlap in the <br>&gt; &gt; translation rules...<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; Date: Tue, 5 Feb 2008 12:21:18 +0200<br>&gt; &gt; &gt; From: keli@carocomp.ro<br>&gt; &gt; &gt; To: henriphilakham@hotmail.com<br>&gt; &gt; &gt; Subject: Re: [cisco-voip] voip : translation-rule on cs 2801<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; It might happen your rule is applied twice for one reason or another.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; try using something more specific, so it wouldn't match on already 8<br>&gt; &gt; &gt; digit numbers. For example this should work:<br>&gt; &gt; &gt; (cfg-translation-rule)#rule 1 /^8\(........\)/ /\1/<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; You should still check why is the rule applied twice, but with the <br>&gt; &gt; above<br>&gt; &gt; &gt; rule it won't matter anyway.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; regards,<br>&gt; &gt; &gt; Zoltan<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; henri philakham wrote:<br>&gt; &gt; &gt; &gt; Hi<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; i have this translation rule on my cs 2801 voice enabled GW but there<br>&gt; &gt; &gt; &gt; is a problem :<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; - when user dials prefix 8 to get the local PTT line, they can call<br>&gt; &gt; &gt; &gt; and reach any fixed and mobile numbers BUT except the mobile numbers<br>&gt; &gt; &gt; &gt; starting with 8, i got the local PTT to come and check and they<br>&gt; &gt; &gt; &gt; confirmed they dont receive all the 8 digits of the mobile number<br>&gt; &gt; &gt; &gt; especially when it starts with 8 therefore the call is disconnected<br>&gt; &gt; &gt; &gt; from their end. So apprently my GW sends 8 digits for all mobile<br>&gt; &gt; &gt; &gt; numbers starting with 9 but not with 8 for some reason.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; - this the translation<br>&gt; &gt; &gt; &gt; voice translation-rule 6<br>&gt; &gt; &gt; &gt; rule 1 /^8/ //<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; - this is the test that shows that it removes the prefix 8 to get the<br>&gt; &gt; &gt; &gt; PTT line and forward all the remaining numbers<br>&gt; &gt; &gt; &gt; MG-EMB-SIN#test voice translation-rule 6 890115850<br>&gt; &gt; &gt; &gt; Matched with rule 1<br>&gt; &gt; &gt; &gt; Original number: 890115850 Translated number: 90115850<br>&gt; &gt; &gt; &gt; Original number type: none Translated number type: none<br>&gt; &gt; &gt; &gt; Original number plan: none Translated number plan: none<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; MG-EMB-SIN#test voice translation-rule 6 881388001<br>&gt; &gt; &gt; &gt; Matched with rule 1<br>&gt; &gt; &gt; &gt; Original number: 881388001 Translated number: 81388001<br>&gt; &gt; &gt; &gt; Original number type: none Translated number type: none<br>&gt; &gt; &gt; &gt; Original number plan: none Translated number plan: none<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; MG-EMB-SIN#test voice translation-rule 6 80193356570072<br>&gt; &gt; &gt; &gt; Matched with rule 1<br>&gt; &gt; &gt; &gt; Original number: 80193356570072 Translated number: 0193356570072<br>&gt; &gt; &gt; &gt; Original number type: none Translated number type: none<br>&gt; &gt; &gt; &gt; Original number plan: none Translated number plan: none<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; can somebody help understand why is that the PTT does not receive the<br>&gt; &gt; &gt; &gt; first digit of the mobile number called when this one starts with <br>&gt; &gt; 8xxx<br>&gt; &gt; &gt; &gt; xxxx but does receive all when it comes to a mobile number starting<br>&gt; &gt; &gt; &gt; with 9xxx xxxx ?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Thanks for your reply<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger<br>&gt; &gt; &gt; &gt; &lt;http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/&gt;<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; cisco-voip mailing list<br>&gt; &gt; &gt; &gt; cisco-voip@puck.nether.net<br>&gt; &gt; &gt; &gt; https://puck.nether.net/mailman/listinfo/cisco-voip<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger <br>&gt; &gt; &lt;http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/&gt;<br>&gt; <br><br><hr>Express yourself instantly with MSN Messenger! <a href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target="_blank">MSN Messenger</a>
</blockquote><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>