Hi,
I have successfully got asterisk PBX (Elastix, PiAF) working in proxmox environment with dahdi timing module working to allow conference call on the vps. To get conference calls working on the vps it requires access to the master where dahdi is running. This is achieved by running the following script on the master after creating vps:
clear
echo "This script enables call conferencing in Elastix on Proxmox"
echo "please enter the VE number"
read VENUMBER
vzctl set $VENUMBER --devnodes dahdi/channel:rw --save
vzctl set $VENUMBER --devnodes dahdi/ctl:rw --save
vzctl set $VENUMBER --devnodes dahdi/timer:rw --save
vzctl set $VENUMBER --devnodes dahdi/pseudo:rw --save
vzctl set $VENUMBER --devnodes null:rw --save
echo "Job Done - Now reload asterisk in VE-"$VENUMBER
I have a problem being that every time the vps is reloaded this script requires running again. Can anyone point me in the right direction to get Proxmox running the script automatically when vps is rebooted? This would also require the script to identify the $VENUMBER and insert it automatically prior to running.
Thanks
Bob
I have successfully got asterisk PBX (Elastix, PiAF) working in proxmox environment with dahdi timing module working to allow conference call on the vps. To get conference calls working on the vps it requires access to the master where dahdi is running. This is achieved by running the following script on the master after creating vps:
clear
echo "This script enables call conferencing in Elastix on Proxmox"
echo "please enter the VE number"
read VENUMBER
vzctl set $VENUMBER --devnodes dahdi/channel:rw --save
vzctl set $VENUMBER --devnodes dahdi/ctl:rw --save
vzctl set $VENUMBER --devnodes dahdi/timer:rw --save
vzctl set $VENUMBER --devnodes dahdi/pseudo:rw --save
vzctl set $VENUMBER --devnodes null:rw --save
echo "Job Done - Now reload asterisk in VE-"$VENUMBER
I have a problem being that every time the vps is reloaded this script requires running again. Can anyone point me in the right direction to get Proxmox running the script automatically when vps is rebooted? This would also require the script to identify the $VENUMBER and insert it automatically prior to running.
Thanks
Bob