Using an Cisco router as FXO and FXS - ALMOST DONE!

Hi there!
Finally and with a lot of help from this forum I get my FreePBX and cisco running together.
In fact I get a FXO trunk from this cisco and other from an external SIP provider running together.
Both trunks have like destination an extension, this is a FXS port from the same router. Caller ID functions at trunks and phones works great!

The incoming calls from the trunks works great but when I want to place a call from the same extension (the extension that is the trunk destination) I get some problems with the dial-pattern from the cisco.

dial-peer voice 10 pots
description "FXO 1 Trunk outbound 1"
preference 1
destination-pattern 9…
port 0/1/3

!extension to extension inside PBX
dial-peer voice 2 voip
destination-pattern …
session protocol sipv2
session target sip-server
dtmf-relay sip-notify
codec g711ulaw
no vad

Form some reason the first dial-peer extends the dial-pattern to the second one, I mean it forward to the PBX 9xxxx digits…

I’m needing a little bit of reading about dial-patterns :wink:

I’m trying to perform this deployment:

  • 8 and 10 digits for outbound route
  • 8 or 9 dialed prefix digit to select cisco trunk or SIP-IP trunk
  • all the FXS port from the router are extensions and must follow the first to rules.

So what dial-patters are correct to perform this? (at cisco)

Best Regards!

The SIP IP provider is Netelip