cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1783
Views
0
Helpful
2
Replies
Beginner

Dial-Peer: show dialplan number

Hello everyone,

R1#sh dial-peer voice summary
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
20001  pots  up   up             30022$             0                           50/0/1
20002  pots  up   up             3002$              0                           50/0/2
5      voip  up   up             2T                 0  syst ipv4:192.168.2.2    
15     voip  up   up             2...               0  syst ipv4:192.168.2.2    
R1#
!
dial-peer voice 5 voip
 destination-pattern 2T
 session protocol sipv2
 session target ipv4:192.168.2.2
!
dial-peer voice 15 voip
 destination-pattern 2...
 session protocol sipv2
 session target ipv4:192.168.2.2
!
R1#show dialplan number 2001 | in tag
    tag = 15, destination-pattern = `2...',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'
R1#
R1#show dialplan number 2001# | in tag
    tag = 5, destination-pattern = `2T',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'
    tag = 15, destination-pattern = `2...',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'
R1#
!
R1#sh call active voice | in PeerId    
PeerId=20002
PeerId=15
R1#
!
Dial 2001 from 3002(sccp) - digit-by-digit or enblock(with #, call) - same result: always dial-peer 15.
It is logical to me: 1000 variants better than T, but... For enblock it knows the length, so both dial-peers looks the same.
1) Does the command "show dialplan number" work as enblock?
2) Why my case the active call is used dial-peer 15, but by the command the preferable is dial-peer 5?


Please clarify a little bit the situation, thank you in advance.
P.S. dial-peer hunt 0
--
Have a nice day,
Dmitry

2 REPLIES 2

Dmitry,

Dmitry,

Dial peer matching will choose the longest explicit match. In each case dial peer 15 is the longest match. The "show dialplan number" command is showing you a list of possible dial peers, not necessarily in order of preference.

Brandon

Highlighted
Beginner

Hello Brandon, everyone,

Hello Brandon, everyone,

Thank you very much for your comment.

I have checked the situation again and I was wrong - both dial-peers are used.

Now I have other questions, but it will be not correct to keep it under this discussion.

So I am going to open a new discussion about the selection of outgoing dial-peer. Anyway thank you for you message.

R1#show voice call status                       
CallID     CID  ccVdb      Port        Slot/DSP:Ch  Called #   Codec    MLPP Dial-peers
0x3        11EE 0x31DB8858 50/0/2.0                 2002       g729r8   20002/5
1 active call found

R1#show voice call status
CallID     CID  ccVdb      Port        Slot/DSP:Ch  Called #   Codec    MLPP Dial-peers
0x9        1200 0x31DB8858 50/0/2.0                 2001       g729r8   20002/15
1 active call found

R1#show dialplan number 2001 timeout | in tag =
    tag = 15, destination-pattern = `2...',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'
    tag = 5, destination-pattern = `2T',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'

R1#show dialplan number 2001 timeout | in tag   
    tag = 5, destination-pattern = `2T',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'
    tag = 15, destination-pattern = `2...',
    voice reg type = 0, corresponding tag = 0,
    voice class perm tag = `'

--

Have a nice day,

Dmitry

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards