Route incoming DID from Asterisk to CUCM

Hi,

I want to route incoming DID from Asterisk to CUCM.
On Asterisk I have 100Did’s, two of them need to be routed to CUCM.
SIP trunk btw asterisk and cucm is UP.

On asterisk inound route for DID 5101586 I have set destination (SIP trunk to CUCM).
How can I configure additonal?
Please advice.

Thanks
Regards.

“Inbound route” is almost certainly a FreePBX term. I think DID is also a FreePBX term, as used here. Peer support for FreePBX is provided at https://community.freepbx.org.

In general terms, you use however you identify a call a belonging to a particular “DID”, maybe reading and parsing the To header, to direct the call to an extension. That extension then dials CUCM, presumably using PJSIP, passing dialed digits appropriate to your application.