Hi guys,
After having a look on several PSTN simulator configs it seemed to me that I configured controllers and voice interfaces the same as others did. So, I assume the reason of my problems with PSTN simulator is incorrectly configured translation rules. I took the config here
http://blog.ine.com/2009/01/18/configuring-a-pstn-dialplan/ and just changed according to the numbers in my lab. However, I've got some other versions of translation rules on PSTN simulator. For instance, this one is from the INE article.
! BR1 translation rule
!
voice translation-rule 10
rule 1 /^1[2-9]..[2-9]....../ /\0/
rule 2 /^011\(.*\)/ /\1/
rule 3 /^[2-9]....../ /1312\0/
!
! BR2 translation rule
!
voice translation-rule 20
rule 1 /^0\([1-8].........\)/ /44\1/
rule 2 /^00\(.*\)/ /\1/
rule 3 /^[1-8]......./ /4423\0/
!
! HQ translation rule
!
voice translation-rule 30
rule 1 /^1[2-9]..[2-9]....../ /\0/
rule 2 /^011\(.*\)/ /\1/
rule 3 /^[2-9]....../ /1775\0/
!
voice translation-profile FROM_BR1
translate called 10
!
voice translation-profile FROM_BR2
translate called 20
!
voice translation-profile FROM_HQ
translate called 30
!
voice-port 0/0/0:23
translation-profile incoming FROM_BR1
!
voice-port 0/1/0:15
translation-profile incoming FROM_BR2
!
voice-port 0/3/0:23
translation-profile incoming FROM_HQ
And this is from CCBOOTCAMP.
voice translation-rule 1
rule 1 /\(^011\)\(.*\)/ /\2/
rule 2 /\(^1\)\(.*\)/ /\2/
rule 3 /\(^0\)\([^0].*\)/ /\2/
rule 4 /\(^001\)\(.*\)/ /\2/
!
voice translation-rule 2
rule 1 /^702/ /1&/ type any international
rule 2 /^4420\(.*\)/ /\1/ type any subscriber
rule 3 /^44\(.*\)/ /\1/ type any national
rule 4 /^801/ /1&/ type any international
!
voice translation-rule 3
rule 1 /^801\(.*\)/ /\1/ type any subscriber
rule 2 /^702/ /&/ type any national
rule 3 /^44/ /&/ type any international
!
voice translation-rule 4
rule 1 /^702\(.*\)/ /\1/ type any subscriber
rule 2 /^801/ /&/ type any national
rule 3 /^44/ /&/ type any international
!
voice translation-profile BR1
translate calling 3
!
voice translation-profile BR2
translate calling 2
!
voice translation-profile HQ
translate calling 4
!
voice translation-profile PSTN
translate called 1
!
voice-port 0/0/0:23
translation-profile incoming PSTN
translation-profile outgoing HQ
!
voice-port 0/1/0:15
translation-profile incoming PSTN
translation-profile outgoing BR2
!
voice-port 0/0/1:23
translation-profile incoming PSTN
translation-profile outgoing BR1
!
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
!
dial-peer voice 10 pots
destination-pattern 7029461...
port 0/0/0:23
forward-digits all
!
dial-peer voice 11 pots
destination-pattern 8013332...
port 0/0/1:23
forward-digits all
!
dial-peer voice 12 pots
destination-pattern 442076303...
port 0/1/0:15
forward-digits all
Could you guys, please, clarify a couple of questions.
1. Why in 1st config its translate called and in 2nd config translate calling?
2. In 2nd config in every rule the number type and plan are specified (type any international, type any subscriber, type any national) - does those parameters have any practical meaning?
3. Why in 1st config only incoming translation rules are specified on voice port and in 2nd config both incoming and outgoing translation rules are specified on voice port.
Thank you.