Asterisk with CME integration

I’m using cisco router 2901. What is the configuration to be done on the router for the CME and also for the asterisk. I’ve installed asterisk on linux ubuntu 64-bit on oracle virtualbox.

Please can anybody give me the configurations to be done on both in order to make calls by connecting each other via sip trunk. For the softphones I’m using X-lite and zoiper.