[cisco-voip] voip : translation-rule on cs 2801
henri philakham
henriphilakham at hotmail.com
Mon Feb 11 22:44:04 EST 2008
any additional advice is welcome, many thanks.
attached current config
From: henriphilakham at hotmail.com
To: keli at carocomp.ro
Subject: RE: [cisco-voip] voip : translation-rule on cs 2801
Date: Wed, 6 Feb 2008 03:05:48 +0000
Hi
this one config applies in SRST mode when WAN connectivity is lost with our SIP server (which is doing the call setup&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".
For local calls, users generally dial prefix 8 to place calls direct via the PSTN route with the local PTT (thru the local gateway).
For international calls prefix users dial 001 and our SIP server does the call routing and set up (thru central SIP platform).
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
(cfg-translation-rule)#rule 1 /^8\(.*\)/ /8\1/
> Date: Tue, 5 Feb 2008 16:43:25 +0200
> From: keli at carocomp.ro
> To: henriphilakham at hotmail.com
> Subject: Re: [cisco-voip] voip : translation-rule on cs 2801
>
> dial-peer voice 4321 pots
> translation-profile outgoing SRST
> destination-pattern T
> progress_ind setup enable 3
> progress_ind alert enable 8
> translate-outgoing called 1
> port 0/3/0:15
> !
>
> If I'm not mistaken, this is the dial-peer in question.
>
> You *are doing* two tranlations:
> translation-profile outgoing SRST
> translate-outgoing called 1
>
> also, it is recomennded by cisco, to avoid destination pattern T
> use instead destination-pattern .T
>
> However, for you, this might be the most simple way to do this:
> destination-pattern 8.T
> no forward-digits
> ! with forward digits not specified, the default behaviour is to strip
> the exactly matched part at the beginning and forward wildcarded
> characters. In your case the 8 will be stripped
> no translation-profile
> no translate-outgoing
>
> This will strip the 8 automatically.
>
> Even faster (an exact match is always better than an open-ended one),
> but specific to 8 digits only:
> destination-pattern 8........$
> forward-digits 8
> ! here forward-digits is again, optional, since it should forward the 8
> wildcard digits anyway.
> no translation-profile
> no translate-outgoing
>
> best regards,
> Zoltan
>
> henri philakham wrote:
> > thanks Keli, i will test lab it first and let you know if it works...
> > meantime here's my GW config fyi, i think there was no overlap in the
> > translation rules...
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > > Date: Tue, 5 Feb 2008 12:21:18 +0200
> > > From: keli at carocomp.ro
> > > To: henriphilakham at hotmail.com
> > > Subject: Re: [cisco-voip] voip : translation-rule on cs 2801
> > >
> > > It might happen your rule is applied twice for one reason or another.
> > >
> > > try using something more specific, so it wouldn't match on already 8
> > > digit numbers. For example this should work:
> > > (cfg-translation-rule)#rule 1 /^8\(........\)/ /\1/
> > >
> > > You should still check why is the rule applied twice, but with the
> > above
> > > rule it won't matter anyway.
> > >
> > > regards,
> > > Zoltan
> > >
> > > henri philakham wrote:
> > > > Hi
> > > >
> > > > i have this translation rule on my cs 2801 voice enabled GW but there
> > > > is a problem :
> > > >
> > > > - when user dials prefix 8 to get the local PTT line, they can call
> > > > and reach any fixed and mobile numbers BUT except the mobile numbers
> > > > starting with 8, i got the local PTT to come and check and they
> > > > confirmed they dont receive all the 8 digits of the mobile number
> > > > especially when it starts with 8 therefore the call is disconnected
> > > > from their end. So apprently my GW sends 8 digits for all mobile
> > > > numbers starting with 9 but not with 8 for some reason.
> > > >
> > > > - this the translation
> > > > voice translation-rule 6
> > > > rule 1 /^8/ //
> > > >
> > > > - this is the test that shows that it removes the prefix 8 to get the
> > > > PTT line and forward all the remaining numbers
> > > > MG-EMB-SIN#test voice translation-rule 6 890115850
> > > > Matched with rule 1
> > > > Original number: 890115850 Translated number: 90115850
> > > > Original number type: none Translated number type: none
> > > > Original number plan: none Translated number plan: none
> > > >
> > > > MG-EMB-SIN#test voice translation-rule 6 881388001
> > > > Matched with rule 1
> > > > Original number: 881388001 Translated number: 81388001
> > > > Original number type: none Translated number type: none
> > > > Original number plan: none Translated number plan: none
> > > >
> > > > MG-EMB-SIN#test voice translation-rule 6 80193356570072
> > > > Matched with rule 1
> > > > Original number: 80193356570072 Translated number: 0193356570072
> > > > Original number type: none Translated number type: none
> > > > Original number plan: none Translated number plan: none
> > > >
> > > > can somebody help understand why is that the PTT does not receive the
> > > > first digit of the mobile number called when this one starts with
> > 8xxx
> > > > xxxx but does receive all when it comes to a mobile number starting
> > > > with 9xxx xxxx ?
> > > >
> > > > Thanks for your reply
> > > >
> > ------------------------------------------------------------------------
> > > > Express yourself instantly with MSN Messenger! MSN Messenger
> > > > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > cisco-voip mailing list
> > > > cisco-voip at puck.nether.net
> > > > https://puck.nether.net/mailman/listinfo/cisco-voip
> > > >
> > >
> >
> > ------------------------------------------------------------------------
> > Express yourself instantly with MSN Messenger! MSN Messenger
> > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>
Express yourself instantly with MSN Messenger! MSN Messenger
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20080212/260c77fa/attachment-0001.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 05feb08 sh run.txt
Url: https://puck.nether.net/pipermail/cisco-voip/attachments/20080212/260c77fa/attachment-0001.txt
More information about the cisco-voip
mailing list