Voice translation patterns!!

So I figured because there hasn't been alot of activity lately I would start posting stuff and see who is the first to answer the question..
Q1.
What does this voice translation pattern do??
!
voice translation-rule 3
rule 1 /^\(\*66\)\(.*\)$/ /\2/ type any international plan any isdn
rule 2 /^\(\*55\)\(.*\)$/ /\2/ type any unknown plan isdn isdn
!
Q.2
What is the debug command is this the output for??
!
eb 6 17:08:11: ISDN Se0/2/1:23 Q931: RX <- SETUP pd = 8 callref = 0x00B9
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Progress Ind i = 0x8583 - Origination address is non-ISDN
Display i = 'HQ PSTN'
Calling Party Number i = 0x2180, '2123942123'
Plan:ISDN, Type:National
Called Party Number i = 0x91, '2123945001'
Plan:ISDN, Type:International
Feb 6 17:08:11: ISDN Se0/2/1:23 Q931: TX -> CALL_PROC pd = 8 callref = 0x80B9
Channel ID i = 0xA98381
Exclusive, Channel 1
Feb 6 17:08:11: ISDN Se0/2/1:23 Q931: TX -> ALERTING pd = 8 callref = 0x80B9
Progress Ind i = 0x8088 - In-band info or appropriate now available
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: RX <- DISCONNECT pd = 8 callref = 0x00B9
Cause i = 0x8290 - Normal call clearing
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: TX -> RELEASE pd = 8 callref = 0x80B9
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x00B9
Good Luck!
Q1.
What does this voice translation pattern do??
!
voice translation-rule 3
rule 1 /^\(\*66\)\(.*\)$/ /\2/ type any international plan any isdn
rule 2 /^\(\*55\)\(.*\)$/ /\2/ type any unknown plan isdn isdn
!
Q.2
What is the debug command is this the output for??
!
eb 6 17:08:11: ISDN Se0/2/1:23 Q931: RX <- SETUP pd = 8 callref = 0x00B9
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Progress Ind i = 0x8583 - Origination address is non-ISDN
Display i = 'HQ PSTN'
Calling Party Number i = 0x2180, '2123942123'
Plan:ISDN, Type:National
Called Party Number i = 0x91, '2123945001'
Plan:ISDN, Type:International
Feb 6 17:08:11: ISDN Se0/2/1:23 Q931: TX -> CALL_PROC pd = 8 callref = 0x80B9
Channel ID i = 0xA98381
Exclusive, Channel 1
Feb 6 17:08:11: ISDN Se0/2/1:23 Q931: TX -> ALERTING pd = 8 callref = 0x80B9
Progress Ind i = 0x8088 - In-band info or appropriate now available
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: RX <- DISCONNECT pd = 8 callref = 0x00B9
Cause i = 0x8290 - Normal call clearing
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: TX -> RELEASE pd = 8 callref = 0x80B9
Feb 6 17:08:14: ISDN Se0/2/1:23 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x00B9
Good Luck!
The quality of a book is never equated to the number of words it contains. -- And neither should be a man by the number of certifications or degree's he has earned.
Comments
Q2 is "debug isdn q931" fo-sho
Not sure on Q1 - I would guess that it's setting the outgoing ISDN type & plan attributes. All of the PRIs that I setup are happy with "unknown"
Q2. - pitviper your are correct .. ( debug isdn q931 )
Do share - You've peaked my interested
Rule 1:
Match pattern: ^\(\*66\)\(.*\)$
Replace pattern: \2
Match type: any Replace type: international
Match plan: any Replace plan: isdn
Rule 2:
Match pattern: ^\(\*55\)\(.*\)$
Replace pattern: \2
Match type: any Replace type: unknown
Match plan: isdn Replace plan: isdn
Q2.
rule 1 /^\(\*66\)\(.*\)$/ /\2/ type any international plan any isdn
rule 1 = first rule in the rule set
/ = starting match delimiter
^ = Beginning of String
\( = Beginning of Set 1
\* = hyphen is used to escape the mean of * and allows it to be considered a dialed digit
66 = dialed digits
\) = Ending of Set 1
\( = Beginning of Set 2
.* = Any digit followed by none or more occurrences. This is effectively anything, including null.
\) = Ending of Set 2
$ = End of String
/ = Ending match delimiter
/ = starting delimiter
\2 = Set 2
/ = Ending delimiter
type = match number type
any = match any number type
international = set number type to international
plan = match plan type
any = match any plan type
isdn = set plan type to isdn
So when I dial = *66-555-555-5555 - I end up with 555-555-5555 plan isdn type international
Good reading :
Voice Translation Rules [Call Routing / Dial Plans] - Cisco Systems
Not to hijack this thread but to the guys above who have some nice labs are they work suppled or purchaed. I have a buget of about 6-7K to put together a lab. I can't do rack rentals for VOIP I tried in the past.
CUCM SRND 9x/10, UCCX SRND 10x, QOS SRND, SIP Trunking Guide, anything contact center related
I get reimbursed for test fees and some training material but that’s it. I look at the lab as a sort of college tuition with better ROI
CUCM SRND 9x/10, UCCX SRND 10x, QOS SRND, SIP Trunking Guide, anything contact center related
I paid for my own home lab out of my pocket (R&S, Voice, Security, etc) and it's more than paid for itself -- I'm an overpaid contractor who still has a job.
CUCM SRND 9x/10, UCCX SRND 10x, QOS SRND, SIP Trunking Guide, anything contact center related
On your translation explanation you mentioend:
.* = Any digit followed by none or more occurrences. This is effectively anything, including null.
The fact that you have "." followed by "*" means that you have to at least have one digit doesn't it, or am I missing something?
EDIT: Oh footBALLS, sorry just re-thunk it and realised that the * indicates a match to the left 0 or more times. Consider this pointless post retracted