Asterisk and Xen

One of the things we need to build for the OVSD project is a voice over IP (VoIP) tool for teachers and students to communicate with each other. Being familiar with Asterisk already, I immediately thought of it when this project came along. Mostly we plan on using it for conference calls and the like, but there are all sorts of interesting things we can do with it for podcasting and faxing as well. Regardless how we end up using Asterisk in the OVSD project, it’s an interesting use of the product.

Except for one slight problem. In order to use the MeetMe conferencing features within Asterisk, you need to install the zapel module for the clock. OK, that’s no problem, except that my development box is a Xen virtual machine. Xen virtual machines do not have access to the hardware clock. Zaptel appears to be rather unhappy about that lack of access to the hardware clock and tends to kernel panic.

Ouch. So now I need to either use a separate conference bridge application within Asterisk, or find a way to get Zaptel and Xen to play nice.

Share this:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Furl
  • Print
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • Fark
  • LinkedIn
  • Ma.gnolia
  • NewsVine
  • Ping.fm
  • Pownce
  • Tumblr

12 Responses to “Asterisk and Xen”


  1. 1 William

    App_conference doesn’t use zaptel timing for it’s conference implimentation in Asterisk. Also a fork of Asterisk has been working on using POSIX system timing vs Zaptel. Heard some people have success with either option. Voip-info.org has some info on app_conference which is kept in the iaxclient src tree on SF.

  2. 2 Greg

    Yeah. I was just working with the built-in conferences because I was more familiar with them and too lazy to look at other implementations. I´m debating on how much work I´m going to put into it, since only the dev server is on a Xen slice (the production system will be on dedicated hardware).

  3. 3 Richard Hamnett

    Hi there, search for ztxen… it’s a clone of the ztdummy module that uses the kernel 2.6 tick timer (1000Hz) instead of RTP

    This means you can run a pseudo zap chan for meetme inside a domU (i am doing so successfully!)

  4. 4 Greg

    Aha! That’s good to know. I have since migrated onto dedicated hardware so I can install a PRI card, so the issue is academic at this point. But it is useful to know should I ever decide to migrate to a cluster environment.

  5. 5 Innatech

    This is good stuff. I’ve known that this was possible for a while now, but I’ve never had a specific answer for people when it comes up in FreeNode #asterisk . I do now. Cheers!

  6. 6 Matt

    Greg, I am using app_conference in my xen voip servers since last year with really good results, i did even change 2 lines in the freepbx code to make it work with it, being able of create/remove conferences from the admin site.

    Nevertheless, i did not test it under asterisk 1.4.

    cheers!

  7. 7 Greg

    Matt,

    That’s good to know. Thanks for sharing!

  8. 8 Tobias

    Matt, how did you enable app_conference from within freepbx? I used the CONFIG_HZ=1000 + disabled RTC trick for my xen VMs in the past, but it doesn’t seem to work with asterisk 1.4. Thanks!

  9. 9 Johan

    Greg,
    Can you please, please, please expain how you setup app_conference in freepbx?

    Regards,

    Johan

  10. 10 Greg

    Hi Johan,

    I’m not using app_conference nor freepbx (I think that was Matt who posted above). I’m using meetme conferences on a dedicated Asterisk box with a Digium 410 card.

  11. 11 bobby

    app_confrenrece sucks when its under heavy load.. other then that its ok i guess for low volume.. it tends to crash asterisk once in a while so i dont use it. I used 1000hz kernel with ztdummy but again once the volume goes up the conf calls become choppy. My guess is when the cpu usage goes up on high volume traffic the kernel timer doesn’t get as much preference in resources which causes choppy calls in the meetme rooms. OpenVZ apprently makes use of the hot kernel.. but they dont have a nice gui like xen citrix

  1. 1 SIPFree - Las Comunicaciones del futuro » Blog Archive » Virtualizacion: XEN y Asterisk

Leave a Reply