FreePBX and Callmanager 2800 cucme 7.1

Hi,

im running a sip trunk between freepbx vm (10.0.0.168) and a call manager cisco (192.168.4.254).

The cisco call manager manages 20 cisco phones and 20 numbers like this 0662290XXX

I installed a vm with freepbx on my site and i created a sip trunk to the remote call manager on the remote site.

So freepbx manages site A with extension numbers 100x, instead the call manager manages extension numbers XXX on remote (site B)

freepbx sip trunk config:

host=192.168.4.254
type=friend
port=5060
insecure=port,invite
nat=no
disallow=all
allow=alaw,ulaw
qualify=yes
context=from-internal
dtmf=rfc2833
canreinvite=no

Call manager sip:

dial-peer voice 101 voip
destination-pattern 10[0-9][0-9]
session protocol sipv2
session target ipv4:10.0.0.168
session transport udp
dtmf-relay rtp-nte
codec g711ulaw

Here is the problem:
i can call from 100x number to XXX numbers without problems and viceversa.
i can assign a "public number (0662290XXX) to a cisco phone XXX on the call manager… but how do i assign a number like 0662290XXX to an asterisk phone on site A 10XX?

Is it possible?

Thank you in advance

Where does the public phone number terminate to? A port on the Cisco gateway?

the cisco call manager has 2 gbit ports
1: 192.168.4.254 which connects to our voip provider… (public phone numbers)
2: 192.168.0.254 with dhcp to phones

Asterisk ------------- Cisco Callmanager------------Voip Provider
10XX XXX

Id like to assign a phone number 0662290XXX to 10XX numbers… is it possible to route the calls to asterisk over the call manager?

Thank you

I think you can put a DID on an incoming route on FreePBX directing this DID to a 1XXX phone.