12-14-2023 09:39 AM
I've followed this https://community.cisco.com/t5/ip-telephony-and-phones/configuring-vic2-2fxs-and-vic2-2fxo-to-make-call-thru-them/td-p/2207237 to get my fxs ports talking to each other, config below. How do i route calls coming in from voip, or a fxo port. What I want is for an incoming call from an fxo port or voip, to route to ideally two or more extensions. This way, i can have a fxo port take incoming calls and route them to extensions 10 and 11, then the switch over to voip and remove the POTS land line. I'm not sure about the capabilities of the 2901. Can it route to TWO extensions, then whoever picks up first connects the call? Or do i need an Asterisk PBX or something? If two are not possible, how to route to one extension? Can someone give me a config sample? As i understand it my voip provider is just giving me one number, not sure if it has did, thanks.
slot0:VIC2-4FXO
slot1:VIC3-4FXS/DID
dial-peer voice 1 pots
destination-pattern 10
port 0/1/0
dial-peer voice 2 pots
destination-pattern 11
port 0/1/1
dial-peer voice 3 pots
destination-pattern 12
port 0/1/2
dial-peer voice 4 pots
destination-pattern 13
port 0/1/3
dial-peer voice 3 voip
destination-pattern 9.T
session target target ipv4:[ip address]
12-15-2023 12:36 AM
Configure connection plar on the required FXO port to ring an extension number and configure the same extension as a hunt pilot number. In the hunt list add the required extensions to ring (10 &11) so that the call received on the FXO port rings both the extensions and any one can pick that.
HTH
Rajan
Please mark all useful posts as helpful and solutions as accepted wherever applicable
12-15-2023 10:30 AM
so i did a:
voice-port 0/0/0
connection plar 10
Then created the hunt group:
voice hunt-group 1 parallel
pilot 10
list 10, 11
this caused AFW_application_ to eat 100% CPU! So changed it to list 11, 0
0 leads nowhere, but put 10 there and there's a loop, it has to have 2 numbers. So,
voice hunt-group 1 parallel
pilot 10
list 11, 0
timeout 20
added a timeout too.
I managed to test the fxo port by connecting it to extension 12 and ringing it from extension 13. extension 12 was picked up by the fxo, it dialed 10, rang 11 in the hunt group! thanks.
Could you explain the incoming dial peer setup for voip? or give a config example?
12-19-2023 02:10 AM
Use a pilot number which is different from the used extensions. This will avoid the loop.
May I know what call flow you are trying to achieve in order to suggest the dial-peer setup.
HTH
Rajan
Please mark all useful posts as helpful and solutions as accepted wherever applicable
12-21-2023 09:04 AM
Thanks. I've been reading this document https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube/ios-xe/config/ios-xe-book/m_voi-inbnd-dp-match-uri.html . As I understand it i would need to add something along these lines. There is only one sip so matching on the domain/ip is sufficient.
voice class uri 202 sip
host dns:sample.com
dial-peer voice 101 voip
session protocol sipv2
incoming uri via 202
Assuming I'm in the right direction, how would i set the above dial peer to ring extension 10, and hence trigger the hunt-group?
01-03-2024 07:53 AM
Dont suppose someone could assist? I think I'm 50% there. Also how would you route calls to an FXO? I'm assuming you would edit the dial peer with the destination-pattern 9.T declaration, but how to route to FXO?
The documentation on cisco stuff is exhaustive...but sometimes lacking basic examples. It may be that the reading level is for qualified Cisco engineers, and I'm at the top of the Dunning-Kruger curve though.
01-03-2024 08:09 AM
Hi,
Just creating a dialpeer pots and pointing to your FXO port
Eg.
dial-peer voice 10 pots
destination-pattern 9T (Remember that all explicit Digit will be strippped out from dialing by default)
port X/X/X <--- Your FXO Port
HTH
Regards
Carlo
01-15-2024 02:47 PM
Thanks everyone. As I understand it i would need to add something along these lines.
voice class uri 202 sip
host dns:sample.com
dial-peer voice 101 voip
session protocol sipv2
incoming uri via 202
How would i set the above dial peer to ring extension 10, and hence trigger the hunt-group? This is the final bit i'm missing.
01-15-2024 08:43 PM
Hi,
To send voip incoming call to a destination you need to adapt the dialed number to the destination number, in this case 10 and this could be accomplished through a voice translation rule and a translation profile.
Let’s say the incoming called number is 012345 and you want to translate it to 10:
First create a translation rule with an id eg. 10
voice translation-rule 10
rule 1 /^012345$/ /10/ “this rule says if a number beings (^) with 012345 and it’s exactly that number (with $ you say that no more digits should be matched in that rule) , than transform it into “10”
Than we need to associate this translation rule to a translation profile:
voice translation-profile IN-CALLS (this is a generic name )
translate called 10 <— this is the translation rule ID
Finally apply the profile to a dialpeer
dial-peer voice 101 voip
translation-profile incoming IN-CALLS (incoming is the direction of the call)
Here a reference doc about translation rules
HTH
Regards
Carlo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide