cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
722
Views
0
Helpful
9
Replies

matching dial-peers on gateway

tim-griffin
Level 1
Level 1

I have a provider that negotiates codecs on outgoing calls on a SIP trunk. I would like to send voice calls with a G.729 preference and fax calls with a G.711 preference. I was thinking that if I can match the fax calling number on the incoming dial-peer from Callmanager 7.1 and force this calling number to use a specific dial-peer outgoing to telco that prefers G.711, while sending all other calling numbers to the dial-peer preferring G.729 it will work. I haven't been successful using this method. Does anyone have an example (if this can be accomplished) or alternate method for accomplishing faxing at G.711 and voice calls at G.729?

9 Replies 9

frlindse
Cisco Employee
Cisco Employee

Hi Tim,

I assume this is a SIP gateway, on the inbound dial-peer for faxes you would use "answer-address xxxx" for the fax DIDs, this will pull faxes out of the mainstrea.  On the dial-peer you call manipulate the "called" number using a translation-profile to where it matches the outbound dial-peer with g711 set.  If your normal dialing prefix is "9" you can replace it with an "8" (or A-D) and on your outbound fax dial-peer "destination-pattern 8T"

I was able to match on a pattern leading with a # sign (i.e. #5551212) and have a translation rule to drop the # sign. I see the match on dial-peer 1002  when I do a debug voip dialpeer, but immediately get a fast busy when I dial any numbers. The issue seems to be that the matched incoming dial-peer is matching on anthe dial-peer 210 incoming called-number . instead of the incoming called-number 8950 which is the fax machine.

dial-peer voice 1002 voip
description Faxing O/B Dial-Peer 
translation-profile outgoing poundstrip
destination-pattern #T
voice-class codec 2
voice-class h323 1
session protocol sipv2
session target ipv4:192.268.1.1:5060

dtmf-relay rtp-nte digit-drop
fax protocol pass-through g711ulaw
no vad
!

dial-peer voice 210 voip
description O/B Dial Peer From Call Manager
preference 1
voice-class codec 1
voice-class h323 1
session target ipv4:10.22.200.100
incoming called-number .
dtmf-relay h245-alphanumeric h245-signal
fax protocol pass-through g711ulaw
!

dial-peer voice 8950 voip
description O/B Fax Machine x8950
preference 1
voice-class codec 2
voice-class h323 1
session target ipv4:10.22.200.101
incoming called-number 8950
dtmf-relay rtp-nte digit-drop
fax protocol pass-through g711ulaw
no vad

Hi Tim

Remember the # is the terminating character for dial string (it pulls the trigger on whatever digits collected at that point). Try changing the termination character to something else

Conf t

Dial-peer terminator <0-9, A-F, *, #>

Only those characters are valid.

Frank Lindsey

Engineer.customer Support

Cisco Unified Communication Infrastructure

frlindse@cisco.com (epage)

Phone: +1 469 255 6556

Hours 11:00am - 7:00pm Central US Time Zone (GMT -6)

Cisco Systems, Inc.

United States

Cisco.com

Think before you print.Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

For corporate legal information go to:

http://www.cisco.com/web/about/doing_business/legal/cri/index.html

This is added into the route group where it appears on the route list. The translation rule works with a # sign and is the only way I can think that won't overlap other dial-peers

voice translation-rule 10
rule 1 /^#\(.*\)/ /\1/

!voice translation-profile poundstrip
translate called 10

!

dial-peer voice 1002 voip
description Faxing O/B Dial-Peer To SmoothStone
translation-profile outgoing poundstrip
destination-pattern #T
voice-class h323 1
session protocol sipv2
session target ipv4:72.1.69.238:5060
dtmf-relay rtp-nte digit-drop
codec g711ulaw
fax protocol pass-through g711ulaw
no vad

test voice translation-rule 10 #15551212
Matched with rule 1
Original number: #15551212      Translated number: 15551212
Original number type: none      Translated number type: none
Original number plan: none      Translated number plan: none

Also - I've since found that the H323 gateway is set for "enable outbound fast start" and to use fast start codec g729. If I cange that to G711 the calls go through fine with this rule, but also all the voice calls go through at g711 too. We're trying to force voice calls to g729 and fax/modem calls to g711

Hi Tim,

Try using the letters A-F ( valid dialstring characters) instead as they have no actions associated with them.

Frank Lindsey

Engineer.customer Support

Cisco Unified Communication Infrastructure

frlindse@cisco.com (epage)

Phone: +1 469 255 6556

Hours 11:00am - 7:00pm Central US Time Zone (GMT -6)

Cisco Systems, Inc.

United States

Cisco.com

Think before you print.Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

For corporate legal information go to:

http://www.cisco.com/web/about/doing_business/legal/cri/index.html

This is the message in Callmanager for the route group called number prefix setting on the route list configuration when trying to input a letter

"Prefix Digits (Outgoing Calls) - allowed characters are numeric (0-9),plus (+),asterisk (*),pound (#)"

Hi Tim,

Hmm.. One of differences between CUCM and gateways. Just to be sure we aren't fighting the wrong battle, could you send me a copy of "debug voip ccapi inout" from the gateway for one of these calls. Please include calling and called numbers. If what I think is happening we will see an empty dial string in the setup.

Thanks,

Frank Lindsey

Engineer.customer Support

Cisco Unified Communication Infrastructure

frlindse@cisco.com (epage)

Phone: +1 469 255 6556

Hours 11:00am - 7:00pm Central US Time Zone (GMT -6)

Cisco Systems, Inc.

United States

Cisco.com

Think before you print.Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

For corporate legal information go to:

http://www.cisco.com/web/about/doing_business/legal/cri/index.html

Called number 17275635695

Calling number 8950

For some reason the calling umber matches the 210 dial-peer and not the 850 dial-peer. The 8950 dial-peer is set as incoming called-number 8950$ and the 210 dial-peer is set to incoming called number .  The 210 dial-peer is also set up to use 7729 as a preference

Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Calling Number=8950, Called Number=#17275635695, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Match Rule=DP_MATCH_INCOMING_DNIS; Called Number=#17275635695
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchPeertype:
   Is Incoming=TRUE, Number Expansion=FALSE
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=
   Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/MatchNextPeer:
   Result=Success(0); Incoming Dial-peer=210 Is Matched
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchPeertype:exit@5591
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=210
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerSPI:exit@6144
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Calling Number=8950, Called Number=#17275635695, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Match Rule=DP_MATCH_INCOMING_DNIS; Called Number=#17275635695
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchPeertype:
   Is Incoming=TRUE, Number Expansion=FALSE
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=
   Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/MatchNextPeer:
   Result=Success(0); Incoming Dial-peer=210 Is Matched
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpMatchPeertype:exit@5591
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=210
Feb 21 20:06:24.426: //-1/80A58A0D0800/DPM/dpAssociateIncomingPeerSPI:exit@6144
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=#17275635695, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=#17275635695
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=
   Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/MatchNextPeer:
   Result=Success(0); Outgoing Dial-peer=1002 Is Matched
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Feb 21 20:06:24.430: //-1/80A58A0D0800/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1002
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=#17275635695, Called Number=#17275635695, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=#17275635695
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=#17275635695T
   Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
   Result=Success(0); Outgoing Dial-peer=1002 Is Matched
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1002
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=#17275635695, Called Number=#17275635695, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=#17275635695
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=#17275635695T
   Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
   Result=Success(0); Outgoing Dial-peer=1002 Is Matched
Feb 21 20:06:24.430: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1002
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=#17275635695, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Match Rule=DP_MATCH_ANSWER; Calling Number=#17275635695
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
   Is Incoming=TRUE, Number Expansion=FALSE
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Dial String=, Expanded String=, Calling Number=#17275635695T
   Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Result=-1
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:exit@5591
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Match Rule=DP_MATCH_ORIGINATE; Calling Number=#17275635695
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
   Is Incoming=TRUE, Number Expansion=FALSE
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Dial String=, Expanded String=, Calling Number=#17275635695T
   Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
   Result=Success(0); Incoming Dial-peer=1002 Is Matched
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:exit@5591
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1002
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeer:exit@6190
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=#17275635695, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=#17275635695
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=
   Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
   Result=Success(0); Outgoing Dial-peer=1002 Is Matched
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Feb 21 20:06:24.434: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1002
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=#17275635695, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=#17275635695
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/dpMatchCore:
   Dial String=#17275635695, Expanded String=#17275635695, Calling Number=
   Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/MatchNextPeer:
   Result=Success(0); Outgoing Dial-peer=1002 Is Matched
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Feb 21 20:06:24.434: //-1/80A58A0D0800/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1002

Hi Tim,

Could you send the running config, something weird is happening, or something unnoticed is affecting the call.

Frank Lindsey

Engineer.customer Support

Cisco Unified Communication Infrastructure

frlindse@cisco.com (epage)

Phone: +1 469 255 6556

Hours 11:00am - 7:00pm Central US Time Zone (GMT -6)

Cisco Systems, Inc.

United States

Cisco.com

Think before you print.Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

For corporate legal information go to:

http://www.cisco.com/web/about/doing_business/legal/cri/index.html