cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1338
Views
20
Helpful
9
Replies

Voice Translation Rule to create a Pass Code for 1 IP Phone in a Network

Kaushik Ray
Level 1
Level 1

Hello

I am trying to create a passcode for 1 IP Phone in a Network and have the following configuration in place as shown below:

The plan is that when this IP Phone wants to dial out they will have to dial out the a 4 digit number 5798 followed by the number they want to dial out.

Can you please let me know if this configuration will help setup according to the above description? Or can you please suggest any changes that i need to implement to make this work..

!

voice translation-rule 1

rule 1 /^5798\(.*\)/ /195\1/

!

voice translation-profile PHONE1

translate called 1

!

dial-peer voice 195 pots

huntstop

destination-pattern 195

port 0/1/1

!

ephone-dn  8

number 195

label IPPhone # 8

description 195

  translation-profile incoming PHONE1

!

Any advice will be most grateful.

Many Thanks in advance

Regards

Kaushik

9 Replies 9

Chris Deren
Hall of Fame
Hall of Fame

Would it not be easier to use FAC?

Either way,  your configuration has ephone-dn with extension 195, but then you have dial-peer 195 pointing to what appears to be either an analog port or pots line with the same destination, which is not going to work.

What would the caller be dialing, any number? Do you have standard existing dial peers used by other phones?

Either use FAC or cor-lists with different dial-peers built the same as other dial-peers as essentially what you are doing is creating different off-net access code for this one phone, so there is really no need to build translations.

HTH,

Chris

HI Chris

Thanks for you reply

Yes the callers can call any number

There is only 1 dial peer being used for all the 8 IP Phones in the network:

!

dial-peer voice 3000 voip

destination-pattern .T

session target ipv4:xxx.xxx.xxx.xxx

voice-class codec 10

voice-class h323 1

dtmf-relay h245-signal h245-alphanumeric

fax-relay ecm disable

fax nsf 000000

ip qos dscp cs3 signaling

no vad

!

Will it help if I create the dial peer in the following way for the 1 IP Phone which needs the code?

voice translation-rule 1

rule 1 /^5798\(.*\)/ /195\1/

voice translation-profile PHONE1

translate called 1

dial-peer voice 4000 voip

translation-profile outgoing PHONE1

destination-pattern 5798T

session target ipv4:xxx.xxx.xxx.xxx

voice-class codec 10

voice-class h323 1

dtmf-relay h245-signal h245-alphanumeric

fax-relay ecm disable

fax nsf 000000

ip qos dscp cs3 signaling

no vad

Sure, but you are not restricting the user of that phone from dialing anything he wants.  Is the idea to only allow calls from this phone when they are dialed with 5798 prefix? If so you should be using cor-lists.

HTH, please rate all useful posts!

Chris

The aim will not be restricting him from calling anything as long as he dials the prefix 5798; this code will be shared only among a couple of people and when they put the prefix in, they can dial out to any number; will the last config i sent be fine for this or will i still need to use COR Lists?

Thanks again!

Assuming you have SIP trunk or some other voip connection to PSTN (hence your voip dial-peer)

change the tranlation to:

voice translation-rule 1

rule 1 /^5798\(.*\)/ /\1/

this way you will simply strip 5798 and forward the rest to PSTN.

Chris

Chris Thanks again

But in that case how will the dial peer 4000 associate itself only for the extension 195 or will this apply this code to all the other extensions as well?

It will not, that's when you need cor-lists.

Chris

Thanks

I have created this with cor lists can you please let me know if this is fine?

!

voice translation-rule 1

rule 1 /5798\(.*\)/ /\1/

!

voice translation-profile PHONE1

translate called 1

!

dial-peer cor custom

name phone_call1

!

dial-peer cor list callPIN1

member phone_call1

!

ephone  8

corlist incoming PHONE1

!

dial-peer voice 4000 voip

translation-profile outgoing PHONE1

destination-pattern 5798T

session target ipv4:xxx.xxx.xxx.xxx

voice-class codec 10

voice-class h323 1

dtmf-relay h245-signal h245-alphanumeric

fax-relay ecm disable

fax nsf 000000

ip qos dscp cs3 signaling

no vad

!

Here is a good doc on COR-LISTS:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a008019d649.shtml

You need to add the following:

dial-peer voice 4000 voip

corlist outgoing phone_call1

Chris