CUCM Asterisk SIP Trunk Integration

CUCM Asterisk SIP Trunk Integration
Today, lets configure a Trunk between CUCM and Asterisk. I was pretty much happier when i got this configured and working, hope you would also be happy as well. Lets start.
CUCM CONFIGURATION
1. Login to Cisco Unified Communication Manager.
2. Create a Trunk between CUCM and Asterisk. To do this follow the below shared steps.
- Go to Device -> Trunk -> Add a New Trunk -> Trunk Type = SIP Trunk
- Device Protocol -> SIP Trunk
- Trunk Service Type -> None (Default)
- Click on Next
- Device Name – Trunk-to-Asterisk
- Description – Trunk configured for Asterisk
- Device Pool – Select appropriate Device Pool
- MRGL – Select appropriate MRGL
- Location – Select appropriate Location
- Check Mark – Media Termination Point Required
- Check Mark – Retry Video Call as Audio
- Inbound Calls – Select appropriate Calling Search Space
- Check Mark – Redirecting Diversion Header Delivery – Inbound
- SIP Information – Enter Asterisk IP Address under Destination Address X.X.X.X
- Enter the Port as 5060
- Select SIP Trunk Security Profile – Non Secure SIP Trunk Security Profile
- SIP Profile – Standard SIP Profile
- Click on Save
- Click on Apply
- Click on Reset
3. Create Route Pattern which points to Asterisk. To do this follow the below shared steps.
- Go to Call Routing -> Route/Hunt -> Route Pattern
- Click on Add New
- Route Pattern -> Enter appropriate Route Pattern which will be routed to Asterisk
- Route Partition -> Enter appropriate Route Partition which a caller can call
- Gateway/Route List -> Select the trunk which was created in Point 2.
3. Change Outgoing Transport Type as UDP. To do this follow the below shared steps.
- Go to System -> Security -> Non Secure SIP Trunk Security Profile
- Select Outgoing Transport Type as UDP
- Click on Save
- Click on Apply
- Click on Reset
CONFIGURATION ON ASTERISK
1. Login to Asterisk.
2. Create a New Trunk. To do this, follow the below step.
- Trunk Name – Enter a Trunk Name
- Outgoing Settings – Trunk Name – Enter a Name of the Trunk
- Under peer details enter the following
type=peer
host=X.X.X.X {IP Address of the CUCM}
port=5060
insecure=port,invite
nat=no
disallow=all
allow=ulaw,alaw
qualify=yes
- Click on Save
3. Create Outbound Routes which will be pointing to CUCM. To do this, follow the below step
- Add New Route
- Route Name – Enter a Route Name
- Match Pattern – 8101XXXX
- Trunk Sequence for Matched Pattern – Select The Trunk from Drop Down Menu which was created in Step 2
- Click on Save
Note – Configure NAT Settings, IP Address Settings and Anonymous calls settings before or after you create the Trunks on Asterisk and CUCM. The settings has to be done on Asterisk PBX. Please follow the link – https://www.uccollabing.com/2016/06/30/cucm-asterisk-sip-settings-basic/ if you haven’t already configured NAT Settings, IP Address Settings and Anonymous call settings.
Now you are done and you are ready to received and make calls via Asterisk – CUCM and vice-versa.
Originally posted 2014-05-16 18:45:22. Published by Team UC Collabing

I am working in an IT company and having 10+ years of experience into Cisco IP Telephony and Contact Center. I have worked on products like CUCM, CUC, UCCX, CME/CUE, IM&P, Voice Gateways, VG224, Gatekeepers, Attendant Console, Expressway, Mediasense, Asterisk etc. I am not an expert but i keep exploring whenever and wherever i can and share whatever i know. You can visit my LinkedIn profile by clicking on the icon below.
“Everyone you will ever meet knows something you don’t.” ― Bill Nye
31 thoughts on “CUCM Asterisk SIP Trunk Integration”