[cisco-voip] Antw: Dealing with + in destination patterns
Ryan West
rwest at zyedge.com
Fri Sep 19 20:20:44 EDT 2008
Wes / Robert,
I have tried both of your suggestions. You can't really specify forward-digits for a voip dial-peer and the destination-pattern of +12XXXXXXX (numbers removed, not actually using XXX). The show dialplan number +12XXXXX matches the correct dial-peer, but it still seems to be looping back out.
I'll be looking back at the Asterisk again, because it does seem to be trying the dial-peer before defaulting back out to the catchall.
Here are the debugs:
Sep 19 20:02:56.145: :FEATURE_VSA attributes are: feature_name:0,feature_time:1213503720,feature_id:815483
Sep 19 20:02:56.145: //1710016/4FEC3C81A68D/CCAPI/ccIFCallSetupRequestPrivate:
SPI Call Setup Request Is Success; Interface Type=6, FlowMode=1
Sep 19 20:02:56.145: //1710016/4FEC3C81A68D/CCAPI/ccCallSetContext:
Context=0x46C91CAC
Sep 19 20:02:56.145: //1710015/4FEC3C81A68D/CCAPI/ccSaveDialpeerTag:
Outgoing Dial-peer=1731
Sep 19 20:02:56.161: //1710016/4FEC3C81A68D/CCAPI/cc_api_call_proceeding:
Interface=0x48928780, Progress Indication=NULL(0)
Sep 19 20:02:56.381: //1710016/4FEC3C81A68D/CCAPI/cc_api_call_feature:
Feature Type=32, Interface=0x48928780, Call Id=1710016
Sep 19 20:02:56.381: //1710015/4FEC3C81A68D/CCAPI/ccCallFeature:
Feature Type=32, Call Id=1710015
Sep 19 20:02:57.221: //1710017/xxxxxxxxxxxx/CCAPI/cc_api_caps_ind:
Call Entry Is Not Found
Sep 19 20:02:57.221: //-1/509415E38262/CCAPI/cc_api_display_ie_subfields:
cc_api_call_setup_ind_common:
cisco-username=+17037771212
----- ccCallInfo IE subfields -----
cisco-ani=+17037771212
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=0
dest=+12145551212
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFF
cisco-rdn=
cisco-rdntype=0
cisco-rdnplan=0
cisco-rdnpi=-1
cisco-rdnsi=-1
cisco-redirectreason=-1 fwd_final_type =0
final_redirectNumber =
hunt_group_timeout =0
Sep 19 20:02:57.225: //-1/509415E38262/CCAPI/cc_api_call_setup_ind_common:
Interface=0x47D59140, Call Info(
Calling Number=+17037771212,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
Called Number=+12145551212(TON=Unknown, NPI=Unknown),
Calling Translated=FALSE, Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE,
Incoming Dial-peer=100, Progress Indication=NULL(0), Calling IE Present=FALSE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=1710017
Sep 19 20:02:57.225: //-1/509415E38262/CCAPI/ccCheckClipClir:
In: Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep 19 20:02:57.225: //-1/509415E38262/CCAPI/ccCheckClipClir:
Out: Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep 19 20:02:57.225: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.225: :cc_get_feature_vsa malloc success
Sep 19 20:02:57.225: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.225: cc_get_feature_vsa count is 9
Sep 19 20:02:57.225: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.225: :FEATURE_VSA attributes are: feature_name:0,feature_time:1213498536,feature_id:815484
Sep 19 20:02:57.225: //1710017/509415E38262/CCAPI/cc_api_call_setup_ind_common:
Set Up Event Sent;
Call Info(Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
Called Number=+12145551212(TON=Unknown, NPI=Unknown))
Sep 19 20:02:57.229: //1710017/509415E38262/CCAPI/cc_process_call_setup_ind:
Event=0x4854D258
Sep 19 20:02:57.229: //1710017/509415E38262/CCAPI/ccCallSetContext:
Context=0x46C9CC8C
Sep 19 20:02:57.229: //1710017/509415E38262/CCAPI/cc_process_call_setup_ind:
>>>>CCAPI handed cid 1710017 with tag 100 to app "_ManagedAppProcess_Default"
Sep 19 20:02:57.229: //1710017/509415E38262/CCAPI/ccCallProceeding:
Progress Indication=NULL(0)
Sep 19 20:02:57.237: //1710017/509415E38262/CCAPI/ccCallSetupRequest:
Destination=, Calling IE Present=FALSE, Mode=0,
Outgoing Dial-peer=2, Params=0x46EB3C10, Progress Indication=NULL(0)
Sep 19 20:02:57.237: //1710017/509415E38262/CCAPI/ccCheckClipClir:
In: Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep 19 20:02:57.237: //1710017/509415E38262/CCAPI/ccCheckClipClir:
Out: Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep 19 20:02:57.237: //1710017/509415E38262/CCAPI/ccCallSetupRequest:
Destination Pattern=.T, Called Number=12145551212, Digit Strip=TRUE
Sep 19 20:02:57.241: //1710017/509415E38262/CCAPI/ccCallSetupRequest:
Calling Number=+17037771212(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
Called Number=12145551212(TON=Unknown, NPI=Unknown),
Redirect Number=, Display Info=+17037771212
Account Number=+17037771212, Final Destination Flag=TRUE,
Guid=509415E3-85DE-11DD-8262-DE820F4028ED, Outgoing Dial-peer=2
Sep 19 20:02:57.241: //1710017/509415E38262/CCAPI/cc_api_display_ie_subfields:
ccCallSetupRequest:
cisco-username=+17037771212
----- ccCallInfo IE subfields -----
cisco-ani=+17037771212
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=0
dest=12145551212
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFF
cisco-rdn=
cisco-rdntype=0
cisco-rdnplan=0
cisco-rdnpi=-1
cisco-rdnsi=-1
cisco-redirectreason=-1 fwd_final_type =0
final_redirectNumber =
hunt_group_timeout =0
Sep 19 20:02:57.241: //1710017/509415E38262/CCAPI/ccIFCallSetupRequestPrivate:
Interface=0x48A84070, Interface Type=6, Destination=, Mode=0x0,
Call Params(Calling Number=+17037771212,(Calling Name=+17037771212)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
Called Number=12145551212(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,
Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE, Outgoing Dial-peer=2, Call Count On=FALSE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)
Sep 19 20:02:57.241: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.241: :cc_get_feature_vsa malloc success
Sep 19 20:02:57.241: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.241: cc_get_feature_vsa count is 10
Sep 19 20:02:57.241: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
Sep 19 20:02:57.241: :FEATURE_VSA attributes are: feature_name:0,feature_time:1213500912,feature_id:815485
Sep 19 20:02:57.241: //1710018/509415E38262/CCAPI/ccIFCallSetupRequestPrivate:
SPI Call Setup Request Is Success; Interface Type=6, FlowMode=1
Sep 19 20:02:57.241: //1710018/509415E38262/CCAPI/ccCallSetContext:
Context=0x46EB3BC0
Sep 19 20:02:57.241: //1710017/509415E38262/CCAPI/ccSaveDialpeerTag:
Outgoing Dial-peer=2
I'm going to post the dialpeer inout debub, the pretty much show the same thing:
Sep 19 19:59:32.938: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=+12145551212, Called Number=+12145551212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.938: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=+12145551212
Sep 19 19:59:32.938: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:32.938: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=4834
2: Dial-peer Tag=100
3: Dial-peer Tag=2
Sep 19 19:59:32.942: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=+17037771212, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.942: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
Sep 19 19:59:32.946: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=+17037771212, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.946: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
Sep 19 19:59:32.946: //-1/D6D2252681E8/DPM/dpAssociateIncomingPeerCore:
Calling Number=+17037771212, Called Number=+12145551212, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.950: //-1/D6D2252681E8/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
Sep 19 19:59:32.958: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=+12145551212, Called Number=+12145551212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.958: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=+12145551212
Sep 19 19:59:32.958: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:32.958: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=4834
2: Dial-peer Tag=100
3: Dial-peer Tag=2
Sep 19 19:59:32.958: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=+12145551212, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.962: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=4834
Sep 19 19:59:32.962: //-1/D6D2252681E8/DPM/dpMatchPeersCore:
Calling Number=, Called Number=+12145551212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:32.962: //-1/D6D2252681E8/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=+12145551212
Sep 19 19:59:32.966: //-1/D6D2252681E8/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:32.966: //-1/D6D2252681E8/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=4834
2: Dial-peer Tag=100
3: Dial-peer Tag=2
Sep 19 19:59:33.390: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=+17037771212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:33.390: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=+17037771212
Sep 19 19:59:33.394: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:33.394: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=100
2: Dial-peer Tag=2
Sep 19 19:59:33.394: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=12145551212, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:33.394: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
Sep 19 19:59:33.406: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=+17037771212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:33.406: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=+17037771212
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=100
2: Dial-peer Tag=2
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=12145551212, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=12145551212
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 19 19:59:33.410: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=4
2: Dial-peer Tag=100
3: Dial-peer Tag=2
show dialplan number +12145551212
Macro Exp.: +12145551212
VoiceOverIpPeer4834
peer type = voice, system default peer = FALSE, information type = voice,
description = `',
tag = 4834, destination-pattern = `+12145551212',
voice reg type = 0, corresponding tag = 0,
allow watch = FALSE
answer-address = `', preference=6,
CLID Restriction = None
CLID Network Number = `'
CLID Second Number sent
CLID Override RDNIS = disabled,
source carrier-id = `', target carrier-id = `',
source trunk-group-label = `', target trunk-group-label = `',
numbering Type = `unknown'
group = 4834, Admin state is up, Operation state is up,
incoming called-number = `', connections/maximum = 0/unlimited,
DTMF Relay = enabled,
modem transport = system,
URI classes:
Incoming (Request) =
Incoming (To) =
Incoming (From) =
Destination =
huntstop = disabled,
in bound application associated: 'DEFAULT'
out bound application associated: ''
dnis-map =
permission :both
incoming COR list:maximum capability
outgoing COR list:minimum requirement
Translation profile (Incoming):
Translation profile (Outgoing):
incoming call blocking:
translation-profile = `'
disconnect-cause = `no-service'
advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
type = voip, session-target = `ipv4:204.118.100.171',
technology prefix:
settle-call = disabled
ip media DSCP = ef, ip signaling DSCP = af31,
ip video rsvp-none DSCP = af41,ip video rsvp-pass DSCP = af41
ip video rsvp-fail DSCP = af41,
UDP checksum = disabled,
session-protocol = sipv2, session-transport = system,
req-qos = best-effort, acc-qos = best-effort,
req-qos video = best-effort, acc-qos video = best-effort,
req-qos audio def bandwidth = 64, req-qos audio max bandwidth = 0,
req-qos video def bandwidth = 384, req-qos video max bandwidth = 0,
dtmf-relay = sip-notify,
dtmf-relay = rtp-nte,
RTP dynamic payload type values: NTE = 101
Cisco: NSE=100, fax=96, fax-ack=97, dtmf=121, fax-relay=122
CAS=123, TTY=119, ClearChan=125, PCM switch over u-law=0,
A-law=8, GSMAMR-NB=117 iLBC=116
h263+=118, h264=119
G726r16 using static payload
G726r24 using static payload
RTP comfort noise payload type = 19
fax rate = fax, payload size = 20 bytes
fax protocol = system
fax-relay ecm enable
Fax Relay SG3-to-G3 Enabled (by system configuration)
fax NSF = 0xAD0051 (default)
codec = g711ulaw, payload size = 160 bytes,
video codec = None
voice class codec = `'
text relay = disabled
Media Setting = flow-through (global)
Expect factor = 10, Icpif = 20,
Playout Mode is set to adaptive,
Initial 60 ms, Max 1000 ms
Playout-delay Minimum mode is set to default, value 40 ms
Fax nominal 300 ms
Max Redirects = 1, signaling-type = cas,
VAD = enabled, Poor QOV Trap = disabled,
Source Interface = NONE
voice class sip url = system,
voice class sip rel1xx = system,
tvoice class sip outbound-proxy = system,
voice class sip asserted-id = system,
voice class sip privacy = system,
voice class sip e911 = system,
redirect ip2ip = disabled
local peer = false
probe disabled,
Secure RTP: system (use the global setting)
voice class perm tag = `'
Time elapsed since last clearing of voice call statistics never
Connect Time = 0, Charged Units = 0,
Successful Calls = 0, Failed Calls = 0, Incomplete Calls = 0
Accepted Calls = 0, Refused Calls = 0,
Last Disconnect Cause is "",
Last Disconnect Text is "",
Last Setup Time = 0.
Last Disconnect Time = 0.
Matched: +12145551212 Digits: 11
Target: ipv4:4.2.2.2
dial-peer voice 100 voip
huntstop
preference 2
destination-pattern .T
progress_ind setup enable 3
no modem passthrough
voice-class codec 729
session protocol sipv2
session target sip-server
session transport udp
dtmf-relay rtp-nte
no vad
!
dial-peer voice 2 pots
translation-profile outgoing outbound-ld
preference 5
destination-pattern .T
port 0/2/0:23
no sip-register
!
dial-peer voice 4834 voip
preference 1
destination-pattern +12145551212
session protocol sipv2
session target ipv4:4.2.2.2
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
I'm at a loss here, it looks like IOS is converting it to 11 digits, not allowing the number to be matched as the full e.164 or the 11 digit number and forcing it out a less preferred catch all.
-ryan
-----Original Message-----
From: Robert Schuknecht [mailto:rschuknecht at gmx.de]
Sent: Friday, September 19, 2008 6:41 PM
To: cisco-voip at puck.nether.net; Ryan West
Subject: Antw: [cisco-voip] Dealing with + in destination patterns
Do you need the full E.164 Number as destination-pattern or for an incoming Dial-Peer (incoming called-number / answer-address). For an destination-pattern the "+"-Sign should work, as you can see by the "sh dialplan number" output:
sh dialplan number +123555999
Sep 20 00:30:53.675 MESZ: %SYS-5-CONFIG_I: Configured from console by console
Macro Exp.: +123555999
VoiceOverIpPeer1
peer type = voice, information type = voice,
description = `',
tag = 1, destination-pattern = `+123555999',
<SNIP>
For an incoming Dial-Peer i am not sure, it takes the command "answer-address" and "incoming called-number" with the pattern +123555999. But i cant test if the incoming Dial-Peer will be matched, at the moment.
I use IOS Version 12.4(5c)
HTH
/Robert
>>> Ryan West<rwest at zyedge.com> schrieb am Freitag, 19. September 2008 um 23:31 in
Nachricht 566fc6036c142b0987e4292d43446f31:
> What's the best way to deal with a full e.164 number coming from a SIP
> provider. I am receiving +1 with the remaining 10 digits following. The
> only dial-peer that seems to match is the catchall .T. I have tried creating
> a translation-profile to rewrite the number, but the + symbol is not
> permitted.
>
> Thanks guys,
>
> -ryan
More information about the cisco-voip
mailing list