Author Topic: Asterisk - chan_zap support missing ???  (Read 1965 times)

pixelator

  • Veteran
  • ***
  • Posts: 70
    • View Profile
Asterisk - chan_zap support missing ???
« on: October 18, 2007, 12:09:54 am »
I have built the zaptel modules myself for use with asterisk in LMCE. However, zap commands and support appear to be missing from LMCE asterisk.

after installing zaptel modules, zttools, ztcfg all work fine and display the zap channel information as expected. However, when I access the asterisk CLI and try to execute any zap command, I get a message that states zap .... is not recognized. Asterisk also will not detect calls received or initiated on the zap channel. Zap command also do not appear in the asterisk help list of commands.

reload chan_zap.so generates the message "No such module 'chan_zap.so"

This is usually a sign that the chan_zap module was not built with/into asterisk.
Is there a way to rebuild LMCE asterisk with support for the chan_zap module?
« Last Edit: October 18, 2007, 12:40:13 am by pixelator »

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Zaptel - chan_zap support missing ???
« Reply #1 on: October 18, 2007, 12:36:53 am »
an idea,

 recompille asterisk and use configure --prefix=/usr so you will relace the existing binaries,
i think this will be transparent to pluto since it wraps asterix and will call the new binaries.

 if you plan to use this frequently you can make your own .deb packages.

 hope this helps,

Rafik

pixelator

  • Veteran
  • ***
  • Posts: 70
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #2 on: October 18, 2007, 12:45:56 am »
Rafik
Thanks for the suggestion. I would prefer to avoid any hacks and wish to stay with the actual LMCE packages. I have already invested to much time into getting this set up to bork it with a hack. I also worry that a hack that significant might come back and bite me at a later time.

If there is a way to recompile/configure the lmce asterisk and include the chan_zap module, then I would consider that.

pixelator

  • Veteran
  • ***
  • Posts: 70
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #3 on: October 18, 2007, 09:48:42 pm »
Quote from: rafik24
an idea,

 recompille asterisk and use configure --prefix=/usr so you will relace the existing binaries,
i think this will be transparent to pluto since it wraps asterix and will call the new binaries.

Ok...the more I thought about it, maybe this is something that would work. The only thing I am concerned with is
Quote
i think this will be transparent to pluto since it wraps asterix and will call the new binaries.

Can anyone [developers] confirm that it's that simple.
I read in the wiki that LMCE uses the stock Ubuntu asterisk package with some add-ons and custom AMP package.
Will recompiling the ubuntu asterisk to include chan_zap break the add-ons and / or custom AMP package?
« Last Edit: October 18, 2007, 09:50:13 pm by pixelator »

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #4 on: October 20, 2007, 12:28:35 pm »
 You can download the sources from svn so you are sure to run the right code.

 

pixelator

  • Veteran
  • ***
  • Posts: 70
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #5 on: October 22, 2007, 07:07:02 pm »
You can download the sources from svn so you are sure to run the right code.

 

Do I need asterisk from the src/ branch or from the ubuntu/ branch?

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #6 on: October 22, 2007, 11:30:29 pm »
 Check if it is in linuxmce svn tree otherwise from unbuntu i guess

pixelator

  • Veteran
  • ***
  • Posts: 70
    • View Profile
Re: Asterisk - chan_zap support missing ???
« Reply #7 on: October 23, 2007, 12:28:01 am »
Check if it is in linuxmce svn tree otherwise from unbuntu i guess

Sorry, what I meant was that I went into the LMCE SVN trunk but there is an asterisk dir in both the /ubuntu and the /src brances.

I'm not sure which one I need, or if I need both.
It looks like the /ubuntu branch contains patch files?  ???