CUCM Asterisk SIP Trunk Integration

28 thoughts on “CUCM Asterisk SIP Trunk Integration”

  1. Namth says:

    Thanks you so much. It’s work.

    1. avinashkarnani11 says:

      Appreciate your confirmation.
      Cheers!!

  2. Namth says:

    Thank you. It works.

  3. Baris Gulten says:

    Thank you. Well done. It works. So question 🙂 It possible to dial call manager extension in asterisk ivr ?

  4. avinashkarnani11 says:

    Hello Baris,

    Thank You for confirmation. Yes, that’s possible to dial call manager extension in asterisk. The above steps guides how to create an outbound dial pattern which routes the call from Asterisk to CUCM and vice-versa. Let me know if you still have questions.

    1. Barış Gülten says:

      Hello Avinash,
      I couldn’t figured out how dial CCM extension on IVR menu. Because Asterisk/elastix only allow to dial asterisk extension on IVR. I believe i need to do some custom thing to dial it. right ? But it is OK to dial between CCM extension and Elastix extension.

      1. avinashkarnani11 says:

        Hello Baris,

        It’s been a long time since i worked on Elastix and unable to recall the interface if there is an option to do so. I am also unable to work on the lab due to hectic schedule. As of now i can think of one option, you create a DN on Elastix and Forward all the calls to CUCM

        For Example – You have a IVR created and for Call Option Number “3”. If someone press 3 while listening to IVR Menu, you would like to forward the call to CUCM extension number 2000.

        Now, create 1000 as a DN in Elastix and Forward calls to the extension 2000.
        In the IVR Menu, you can select “Extension” from Drop Down Menu and Point it to 1000 and thereafter all the calls will be forwarded to 2000 when they select Option 3 while hearing the IVR Option Menu.

        Hope the above solution makes sense. If you would like me to think of a different solution, probably i would have to work on your network taking control of your Elastix using Team Viewer. Let me know whatever is feasible.

        1. Balasenthil Rajasehar says:

          Hello

          Thanks for the explanation. Would you be able to share the version of Asterisk that can be integrated with CUCM 7 and later? I have downloaded the Asterisk from asterisk site, but do you suggest any specific site to download the whole package and the patches. Thanks

          1. Administrator says:

            Hi Balasenthil,

            I did integrated CUCM 7.X and CUCM 8.X with Elastix v2.X and it worked fine. You may download a stable release of pbx software from http://www.elastix.com/en/downloads/

            Regards,
            Avinash

  5. amjad says:

    dears, whats the css that i assigned in trunk? is this to route coming call from asterisk to pstn gw?
    and the route pattern that should be configured in step tow, this is to forward the call that comes to extension on asterisk to sip trunk? please advice.
    regards,
    Amjad

    1. Administrator says:

      Hello Amjad,

      The Calling Search Space assigned to the Trunk is for Inbound calls from Asterisk to Cisco Unified Communication Manager (CUCM). You need to ensure that this CSS can also route inbound calls to the extensions in CUCM. A Route Pattern is created in order to route Outbound Calls from CUCM to Asterisk. The Route Pattern points to SIP Trunk.

      Hope this helps!

  6. sophorn says:

    I already follow your guide, but not working yet, so what shoud i do next?

    1. Administrator says:

      Hello Sophorn,

      What error are you getting while setting up the trunk? Are you facing issue with inbound or outbound call from CUCM? Please check the parameters thoroughly once again as this configuration has worked for most of the people who followed this blog.

  7. Adeel Ahmed says:

    i also followed your post from exactly but it didnt worked ,
    i have 1 router ,
    2 vms, 1 cucm,1 astrisks, that use network bridge and DHCP to get ip adress from my router ,
    i pinged from VM of astrisks i can ping to cucm , so they both are locally connected ,
    not working i think you are missing something

    1. Administrator says:

      Hi Adeel,

      Have you deployed asterisk newly in your environment? Are you facing issues with inbound calls or outbound calls?

      1. Adeel Ahmed says:

        i can call from astrisk to cisco , but can not call from cisco to astrisk , i think its the problem of cisco outbound calls , yes i have deployed astrisk newly

        1. Administrator says:

          Please check your Asterisk General SIP Settings and configure you NAT Settings, IP Configuration and Allow Anonymous Inbound SIP Calls. This should resolve your issue. Please reply back once the issue is resolved so that it would be helpful for other people.

          1. Adeel Ahmed says:

            please explain Nat settings its been weeks i can not still call from Cisco to Astrisk , but i can call form Astrisk to Cisco
            i saw in general settings there was option Allow Anonymous Inbound SIP Calls set to NO ,
            so i set it to yes , but same problem ,
            please can u explain a bit more about what you said regarding Configuring Nat settings , IP configurations,
            i understand both terms ,but i dnt know what you are trying to say

          2. Adeel Ahmed says:

            hy i just want you and other to know that my problem was the PORT NUMBER as well be sure that in cucm trunk settings where we give ip of Astrisk server we also give the port number which is set on astrisk
            sip settings chan settings advance gerneral setttings
            BIND PORT and
            should be same thanks for the help admin
            i really appreciate your help

          3. Administrator says:

            By default, if you don’t configure Bind Address and Bind Port, Asterisk will listen to all the IP Address (0.0.0.0) with Port Number 5060. So, all calls should have been accepted by Asterisk when these parameters were blank. However, appreciate your response on the solution that helped you. I am sure, it will help others as well.

            Cheers!

  8. azax says:

    Hello everybody first of all thank you for the information. I make the configuration as you wrote but hte trunk remain unreachable.Any suggestions?

    1. Administrator says:

      Hello Azax,

      Just ensure that there are no firewalls in between Asterisk and CUCM which is denying the connection/communication between these two. You can login to Asterisk using SSH and ping CUCM IP Address and see if it is reaching CUCM IP Address. Also login to CUCM CLI and try to ping Asterisk and ensure that it is reaching Asterisk IP Address.Ensure that Ping replies are received.

      From Asterisk type > asterisk -vr on the CLI and hit enter
      Type sip show peers and see the status of your trunk if it is reaching the CUCM? Output will be similar to this (OutGoing_Trunk 10.99.44.12 No No 5060 OK (1 ms))

      If you have followed my post correctly and no firewalls stopping the connection, the configuration should work as expected.

  9. Rohit Gupta says:

    Hi,

    Quick question — Will this configuration work if our CUCM is SCCM based and asterisk is SIP based? please confirm. thanks

    1. Administrator says:

      Hi Rohit,

      Yes, it should work. All you need is SIP Trunk between CUCM and Asterisk Server.

      HTH

  10. Rohit Gupta says:

    HI, Thanks for the confirmation. I tried the above, but unable to make the calls between CUCM and Asterisk and vice versa. We are using CCM version 10.5.1.10000-7 and Asterisk (PBX Manager 6.1.1.13) would appreciate if you can suggest next step for us. thanks in advance

    1. Administrator says:

      Hi Rohit,

      You need to ensure that there are no firewall stopping the connection between CUCM and Asterisk esp ports like 5060, 5061 and RTP Ports..

      Adding to the above, refer to the post shared below which will help you as well.

      http://www.uccollabing.com/2016/06/30/cucm-asterisk-sip-settings-basic/

      Let me know if this helps.

  11. deepakcucm says:

    My PSTN Line (PRI getaway) are connected on Asterisk can i do PSTN call from CUCM —-> Asterisk —-> PRI gateway with above config ??

    1. Administrator says:

      Hi Deepak,

      I have not tried this scenario but I think you should be able to route your call from your CUCM > Asterisk > PRI GW. All you need is valid route patterns and trunks directing from CUCM to Asterisk and then Asterisk to PRI GW ++ required media resources in your scenario.

Leave a Reply

Show Buttons
Hide Buttons