Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

preference not working

Hi,

Hi have this config working with preference:

dial-peer voice 100 pots
translation-profile incoming SIP
preference 1
service session
destination-pattern T
no digit-strip
direct-inward-dial
port 1/0:15
forward-digits all

dial-peer voice 200 pots
translation-profile incoming SIP
preference 3
service session
destination-pattern T
no digit-strip
direct-inward-dial
port 2/0:15
forward-digits all

dial-peer voice 201 pots
translation-profile incoming SIP
preference 4
service session
destination-pattern T
no digit-strip
direct-inward-dial
port 2/1:15
forward-digits all

So when I place a call, the debug shows:

May 17 16:08:12.931: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=0996456750
May 17 16:08:12.931: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
May 17 16:08:12.931: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=100
     2: Dial-peer Tag=200
     3: Dial-peer Tag=201
May 17 16:08:12.931: ISDN Se1/0:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x0, Called num 0996456750

Which is right because it use the preference order.

But if I add,

dial-peer voice 9100 pots
translation-profile incoming SIP
preference 10
service session
destination-pattern 09........
no digit-strip
direct-inward-dial
port 2/1:15
forward-digits all

dial-peer voice 8098 pots
translation-profile incoming SIP
preference 8
service session
destination-pattern 09........
no digit-strip
direct-inward-dial
port 1/0:15
forward-digits all

The same call, doesnt use the preference order, it prefers a dial-peer with higher preference

May 17 16:13:41.187: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=9100
     2: Dial-peer Tag=8098
     3: Dial-peer Tag=200
     4: Dial-peer Tag=100
     5: Dial-peer Tag=201
May 17 16:13:41.187: ISDN Se2/1:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x0, Called num 0996456750

And if dial-peer 8098 is erased and recreated with another tag, like this:

dial-peer voice 9298 pots
translation-profile incoming SIP
preference 8
service session
destination-pattern 09........
no digit-strip
direct-inward-dial
port 1/0:15
forward-digits all

with the same call, it seems is using the tag instead of preference...

May 17 16:16:28.703: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=9298
     2: Dial-peer Tag=9100
     3: Dial-peer Tag=200
     4: Dial-peer Tag=100
     5: Dial-peer Tag=201
May 17 16:16:28.707: ISDN Se1/0:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x0, Called num 0996456750

Should I replace the IOS? it´s c3845-spservicesk9-mz.123-14.T7.bin

Any suggestion will be helpful

TIA

Andres Pasten

Adexus S.A.

4 REPLIES

Re: preference not working

Hi,

Do you get the same order if you do a "show dialplan number 0996456750"

this will list the dial peers in order of best match which includes the preference

also the IOS is a bit old I would at least go to 124-15T8 or later

New Member

Re: preference not working

Hi,

Sorry about the delay, but I have made the requested test, and using show dialplan number shows different order than the real call:

1.- Sh dial-peer voice sum

sh dial-p voice sum
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT
10     voip  up   up             84..               0  syst ipv4:172.17.96.58
100    pots  up   up             T                  1                      up   1/0:15
101    pots  up   up             T                  0                      down 1/1:15
11     voip  up   up             95..               0  syst ipv4:172.17.96.58
20     voip  up   up             35..               0  syst ipv4:172.17.96.58
21     voip  up   up             36..               0  syst ipv4:172.17.96.58
200    pots  up   up             T                  3                      up   2/0:15
201    pots  up   up             T                  4                      up   2/1:15
99     voip  up   up             7777               0  syst ipv4:172.17.96.58
4000   voip  up   up             237048004...       0  syst ipv4:22.170.96.1
9098   pots  up   up             09........         8                      up   1/0:15
9100   pots  up   up             09........        10                      up   2/1:15

2.- show dialplan number

sh dialplan number 0996456750
Macro Exp.: 0996456750

VoiceEncapPeer9098
        peer type = voice, information type = voice,
        description = `',
        tag = 9098, destination-pattern = `09........',
        answer-address = `', preference=8,
        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 = 9098, Admin state is up, Operation state is up,
        Outbound state is up,
        incoming called-number = `', connections/maximum = 0/unlimited,
        DTMF Relay = disabled,
        URI classes:
            Destination =
        huntstop = disabled,
        in bound application associated: 'session'
        out bound application associated: ''
        dnis-map =
        permission :both
        incoming COR list:maximum capability
        outgoing COR list:minimum requirement
        Translation profile (Incoming):SIP
        Translation profile (Outgoing):
        incoming call blocking:
        translation-profile = `'
        disconnect-cause = `no-service'
        advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
        type = pots, prefix = `',
        forward-digits all
        session-target = `', voice-port = `1/0:15',
        direct-inward-dial = enabled,
        digit_strip = disabled,
        register E.164 number with H323 GK and/or SIP Registrar = TRUE
        fax rate = system,   payload size =  20 bytes
        supported-language = ''

        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.
Matched: 0996456750   Digits: 2
Target:

VoiceEncapPeer9100
        peer type = voice, information type = voice,
        description = `',
        tag = 9100, destination-pattern = `09........',
        answer-address = `', preference=10,
        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 = 9100, Admin state is up, Operation state is up,
        Outbound state is up,
        incoming called-number = `', connections/maximum = 0/unlimited,
        DTMF Relay = disabled,
        URI classes:
            Destination =
        huntstop = disabled,
        in bound application associated: 'session'
        out bound application associated: ''
        dnis-map =
        permission :both
        incoming COR list:maximum capability
        outgoing COR list:minimum requirement
        Translation profile (Incoming):SIP
        Translation profile (Outgoing):
        incoming call blocking:
        translation-profile = `'
        disconnect-cause = `no-service'
        advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
        type = pots, prefix = `',
        forward-digits all
        session-target = `', voice-port = `2/1:15',
        direct-inward-dial = enabled,
        digit_strip = disabled,
        register E.164 number with H323 GK and/or SIP Registrar = TRUE
        fax rate = system,   payload size =  20 bytes
        supported-language = ''

        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.
Matched: 0996456750   Digits: 2
Target:

3.- debug isdn q931and csim start 0996456750

csim start 0996456750
csim: called number = 0996456750, loop count = 1 ping count = 0

Jun 17 15:21:30.311: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=0996456750, Peer Info Type=DIALPEER_INFO_SPEECH
Jun 17 15:21:30.311: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=0996456750
Jun 17 15:21:30.311: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jun 17 15:21:30.311: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=9100
     2: Dial-peer Tag=9098
     3: Dial-peer Tag=200
     4: Dial-peer Tag=100
     5: Dial-peer Tag=201
Jun 17 15:21:30.323: ISDN Se2/1:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x0, Called num 0996456750
Jun 17 15:21:30.323: ISDN Se2/1:15 Q931: TX -> SETUP pd = 8  callref = 0x2857
        Bearer Capability i = 0x8090A3
                Standard = CCITT
                Transfer Capability = Speech
                Transfer Mode = Circuit
                Transfer Rate = 64 kbit/s
        Channel ID i = 0xA9839F
                Exclusive, Channel 31
        Called Party Number i = 0x80, '0996456750'
                Plan:Unknown, Type:Unknown
Jun 17 15:21:30.375: ISDN Se2/1:15 Q931: RX <- SETUP_ACK pd = 8  callref = 0xA857
        Channel ID i = 0xA9839F
                Exclusive, Channel 31
Jun 17 15:21:30.375: ISDN Se2/1:15 Q931: RX <- CALL_PROC pd = 8  callref = 0xA857
        Progress Ind i = 0x8288 - In-band info or appropriate now available
Jun 17 15:21:35.775: ISDN Se2/1:15 Q931: RX <- ALERTING pd = 8  callref = 0xA857
        Progress Ind i = 0x8288 - In-band info or appropriate now available

So, do you reccomend upgrade the IOS to 12.4-15T or later. Some specific version of any one?

TIA

Andres Pasten Calzada

Adexus S.A.

New Member

Re: preference not working

Hi,

Finally I´ve made an upgrade to c3845-spservicesk9-mz.124-15.T13, and the issue persists. I´ve checked the config and found nothing strange. Any idea of something I need to check out?

TIA

Andres Pasten C.

Adexus S.A.

New Member

Re: preference not working

Try this:

sip-ua

retry invite 2

timers trying 150

 

If your first preference dial-peer doesn't answer within 1.2 seconds it will try the second preference dial peer. Or you can adjust the above timers to you liking.

The default number of SIP INVITE retries is 6 while the initial TRYING timer is 500 msec. When calls arrive:
    Initial SIP invite request
    1st invite retry (delay to retry: ~500ms)
    2nd invite retry (delay to retry: ~1sec)
    3rd invite retry (delay to retry: ~2sec)
    4th invite retry (delay to retry: ~4sec)
    5th invite retry (delay to retry: ~8sec)
    6th invite retry (delay to retry: ~16sec)
    Failover time to second preference target  (delay to failover: ~32)

323
Views
0
Helpful
4
Replies
CreatePlease to create content