nerdexam
Cisco

300-070 · Question #335

An IP phone user has dialed "15152421234". Which route pattern will be used?

The correct answer is D. 1515[^0-1]421[1-4]+. The dialed string '15152421234' must be matched against each pattern's wildcard syntax to find the one that fully accounts for all 11 digits.

Gateway and Dial Plan

Question

An IP phone user has dialed "15152421234". Which route pattern will be used?

Options

  • A1515[^0-1]4[123]+
  • B1515[^0-2]4[01234]
  • C1515[^0-1]42[1234]
  • D1515[^0-1]421[1-4]+

How the community answered

(57 responses)
  • A
    7% (4)
  • B
    23% (13)
  • C
    11% (6)
  • D
    60% (34)

Why each option

The dialed string '15152421234' must be matched against each pattern's wildcard syntax to find the one that fully accounts for all 11 digits.

A1515[^0-1]4[123]+

Pattern 1515[^0-1]4[123]+ fails because the trailing portion of the dialed string includes '4', which is outside the [123] character class, preventing a full match.

B1515[^0-2]4[01234]

Pattern 1515[^0-2]4[01234] fails at the fifth digit because [^0-2] excludes 0, 1, and 2, but the fifth dialed digit is '2'.

C1515[^0-1]42[1234]

Pattern 1515[^0-1]42[1234] covers only 8 digits and has no trailing wildcard, so it cannot match the full 11-digit dialed string.

D1515[^0-1]421[1-4]+Correct

Pattern 1515[^0-1]421[1-4]+ breaks down as: '1515' matches the first four digits; [^0-1] matches '2' (any digit except 0 or 1); '4' matches '4'; '2' matches '2'; '1' matches '1'; and [1-4]+ matches the remaining digits '2', '3', '4' (one or more digits in range 1-4), covering the full 11-digit string exactly.

Concept tested: CUCM route pattern wildcard and character class digit matching

Source: https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/12_5_1/systemConfig/cucm_b_system-configuration-guide-1251/cucm_b_system-configuration-guide-1251_chapter_0100001.html

Topics

#route patterns#wildcards#pattern matching#digit analysis

Community Discussion

No community discussion yet for this question.

Full 300-070 Practice