Additional dial-peer help

Unanswered Question

dial-peer voice 10 voip
description **International Outgoing Call to SIP Trunk**
translation-profile outgoing PSTN_Outgoing
destination-pattern .T
voice-class codec 711
session protocol sipv2
session target ipv4:66.60.xx.xx
dtmf-relay rtp-nte
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
no vad
!
dial-peer voice 11 voip
translation-profile outgoing PSTN_Outgoing
destination-pattern 214638xxxx
voice-class codec 711
session protocol sipv2
session target ipv4:66.60.xx.xx
dtmf-relay rtp-nte
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
no vad
!
dial-peer voice 1 pots
destination-pattern 214638....
direct-inward-dial
port 1/0:0
!
dial-peer voice 2 pots
destination-pattern 214630....
direct-inward-dial
port 1/0:0
!
dial-peer voice 3 pots
destination-pattern 214638xxxx
port 2/2
!
dial-peer voice 4 pots
destination-pattern 214638xxxx
port 2/1

Current dial-peers

What I want is to have anything that comes in from port 1/0:0 go out dial peer 10/11

I want to create a new dial peer for anything that comes in from 2/1 or 2/2 to go out, lets say dial-peer 12

How would I go about that?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
CHRIS CHARLEBOIS Wed, 01/20/2010 - 09:34

This is exactly what you want...

http://www.ciscosystems.ac/en/US/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml#con21

Make Calls from Specific Ports go to the Desired VoIP Peer with the Same Called Number

voice translation-rule 27     

!--- Matches anything that starts with a 7 and replaces the 7 with 27.

rule 1 /^7/ /27/
!
voice translation-rule 37    

!--- Matches anything that starts with a 7 and replaces the 7 with 37.

rule 1 /^7/ /37/
!
voice translation-profile FXS27    

!--- Invokes voice translation profile “FXS27” in order to translate the called number.

translate called 27
!
voice translation-profile FXS37    

!--- Invokes voice translation profile “FXS37” in order to translate the called number.

translate called 37
!
dial-peer voice 270 voip    

!--- Matches the called number of 27 which is
!--- translated from port 2/0.  You can use a translation
!--- profile in order to change the number back to 7 here if needed.


destination-pattern 27
session target ipv4:10.1.1.2
!
dial-peer voice 370 voip    

!--- Matches the called number of 37 which is translated
!--- from port 2/1.  You can use a translation profile in order to
!--- change the number back to 7 here if needed.


destination-pattern 37
session target ipv4:10.1.1.3
!
dial-peer voice 27 pots
translation-profile incoming FXS27    

!--- Matches calls from port 2/0, and invokes voice translation
!--- profile FXS27 in order to change numbers that start with a 7 to begin with 27.


port 2/0
!
dial-peer voice 37 pots
translation-profile incoming FXS37         

!--- Matches calls from port 2/1, and invokes voice translation
!--- profile FXS37 in order to change numbers that start with a 7 to begin with 37.


port 2/1

Actions

This Discussion