cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
420
Views
5
Helpful
1
Replies

How to identify Phone Call Destination?

rais
Level 7
Level 7

I have two analog phone lines (line-A and line-B), each going to FXO port on a routerA. Then I have another routerB with 2 FXS ports and two phones (A and B) connected to it. Both routers are connected over IP.

Requirements are:

1. phone-line-A should ring phone-A. Phone-line-B should ring phone-B.

2. phone-A should dial-out only using phone-line-A, phone-B should dial-out only using phone-line-B.

If there is a call on phone-line-A, how do I route it to phone-A (voice-port 1/0/0) on routerB? Do I have to use connection trunks?

Thanks in advance.

1 Reply 1

amitgami
Level 1
Level 1

Hi

Please use the following config

-----------------------------------

router A configuration

voice-port lineA

connection plar 4000

!

voice-port lineB

connection plar 4001

!

dial-peer voice 4000 voip

destination 400.

session-target ipv4:routerB

!

dial-peer voice 9 pots

destination 9T

port lineA

!

dial-peer voice 8 pots

destination 8T

port lineB

!

-------------------------------

router B configuration

translation rule 1

rule 1 ^.% 9

!

translation rule 2

rule 2 ^.% 8

!

voice-port PhoneA

translate-called 1

!

voice-port PhoneB

translate-called 2

!

dial-peer voice 4000 pots

destination 4000

port PhoneA

!

dial-peer voice 4001 pots

destination 4001

port PhoneB

!

dial-peer voice 9 voip

destination 9T

session-target ipv4:routerA

!

dial-peer voice 8 voip

destinatio 8T

session-target ipv4:routerA

!

----------------------------------------

I hope this helps.

regards,

Amit.