Editing Asterisk from source

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 26: Line 26:
  
 
If you do not plan to use analog telephone lines, hence don't like in install the hardware, nothing is lost provided you run your HN with 2.6.XX kernel. You just need to play a little trick with Asterisk make system: download zaptel tarball from the same location as Asterisk itself, and copy it's header zaptel.h to location /usr/include/zaptel/zaptel.h in CT where you plan to build Asterisk. This tweaks MeetMe for installation.
 
If you do not plan to use analog telephone lines, hence don't like in install the hardware, nothing is lost provided you run your HN with 2.6.XX kernel. You just need to play a little trick with Asterisk make system: download zaptel tarball from the same location as Asterisk itself, and copy it's header zaptel.h to location /usr/include/zaptel/zaptel.h in CT where you plan to build Asterisk. This tweaks MeetMe for installation.
 
Since Digium is retiring Zaptel with the use of Dahdi, the header you will use to build meetme module to work with Dahdi is called user.h. Just copy this file to /usr/include/dahdi/user.h in CT then build your Asterisk , you should get the MeetMe working.
 
 
===TTY Problem===
 
 
After I have installed asterisk, the service wouldn't start and give me the following error:
 
 
Starting asterisk: Cannot find your TTY
 
 
The solution is to edit /usr/sbin/safe_asterisk , comment out the TTY=  line. I found my at the very top of the file, about the 5th line. Now I am able to start, stop, restart the asterisk service all I want.
 
  
 
== HN configuration ==
 
== HN configuration ==
Line 42: Line 32:
 
modprobe ztdummy
 
modprobe ztdummy
 
vzctl set 240 --devnodes zap/pseudo:rw --save
 
vzctl set 240 --devnodes zap/pseudo:rw --save
</pre>
 
 
This will create /dev/zap/pseudo and /lib/udev/devices/zap/pseudo in your container.  The group/owner will be root/root and the permissions will be 644.  If you're running Asterisk under the asterisk user in your container, you will need to set the proper ownership for these devices in your VE.  The /dev/zap devices are recreated whenever the container is restarted.  The /lib/udev/devices/zap files are persistent.  The key to only doing this once is to make sure you change the ownership in the VE of the /lib/udev/devices/zap files in addition to the /dev/zap files.
 
 
To set the necessary ownership in the VE:
 
<pre>
 
vzctl exec 240 chown -R asterisk /dev/zap /lib/udev/devices/zap
 
vzctl exec 240 chgrp -R asterisk /dev/zap /lib/udev/devices/zap
 
 
</pre>
 
</pre>
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)