Re: [Bulk] SIP

From: Andrew C Noonan (noonan_ac@yahoo.com)
Date: Wed Dec 20 2006 - 17:41:53 ART


Hi Prathap,

You only seem to configured a only an incoming translation rule and
profiles, basically you have set profile for calling and called numbers like
the sample I have laid out below:

IF phone number is 123-4000 .. 4999 you are more than likely only presented
with the last 6 digits from the ISDN provider which will give you 234000 so
the match pattern is 4 and replacement pattern is 234 for outgoing calls and
reversed from incoming calls where your match pattern is 234 and you will
replace with 4. Of course that would be for your the leading 4 of you 4
digit extension range.

voice translation-rule 1
 rule 1 /^<Match_Pattern>/<REPLACEMENT PATTERN>/
voice translation-rule 2
 rule 1 /^<REPLACEMENT_PATTERN>/ /<MATCH_PATTERN>/

voice translation-profile IN
 translate called 2
voice translation-profile OUT
 translate calling 1

dial-peer voice 1 pots
 translation-profile incoming IN
 incoming called-number .
 direct-inward-dial
 port x/x/x

dial-peer voice 2 pots
 translation-profile outgoing OUT
 destination-pattern .T
 direct-inward-dial
 port x/x/x

Hope this helps

Andrew.

----- Original Message -----
From: "prathap singh" <cprathap1982@yahoo.co.in>
To: <ccielab@groupstudy.com>
Sent: Wednesday, December 20, 2006 2:59 PM
Subject: [Bulk] SIP

> Hi All,
>
> I have a problem with the call flow from inside to outside through BRI
> Port but from outside to inside is happening. Please help me out to solve
> this.
>
>
> Router Configuration:
>
> network-clock-participate wic 1
> network-clock-participate wic 2
>
> ip cef
>
> isdn switch-type basic-net3
>
> trunk group 1
> translation-profile incoming myprofile
>
> voice-card 0
> no dspfarm
>
> voice rtp send-recv
>
> voice translation-rule 1001
> rule 1 /\(.*\)/ /7777/
>
> voice translation-profile myprofile
> translate called 1001
>
> interface BRI0/1/0
> no ip address
> isdn switch-type basic-net3
> isdn point-to-point-setup
> isdn incoming-voice voice
> trunk-group 1
> !
> ip http server
> no ip http secure-server
>
> logging trap debugging
>
> control-plane
>
> voice-port 0/1/0
> compand-type a-law
> cptone AU
> !
> voice-port 0/1/1
> !
> voice-port 0/2/0
> !
> voice-port 0/2/1
> !
> !
> !
> !
> dial-peer cor custom
> !
> !
> !
> dial-peer voice 201 voip
> service sess
> destination-pattern 7T
> session protocol sipv2
> session target ipv4:10.203.225.46:5060
> dtmf-relay rtp-nte
> !
> dial-peer voice 1001 voip
> service session
> destination-pattern T
> session protocol sipv2
> session target ipv4:10.203.225.46:5060
> dtmf-relay rtp-nte
> !
> dial-peer voice 100 pots
> destination-pattern T
> direct-inward-dial
> port 0/1/0
> !
> !
> sip-ua
> sip-server ipv4:10.203.225.46:5060
> no suspend-resume
> notify telephone-event max-duration 500
> xfer target dial-peer



This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:38 ART