Changeset 8036
- Timestamp:
- 12/01/11 23:14:14 (18 months ago)
- Location:
- luci/trunk/applications/luci-pbx
- Files:
-
- 5 added
- 1 modified
-
CREDITS-SOUNDS (added)
-
LICENSE-SOUNDS (added)
-
root/etc/init.d/pbx-asterisk (modified) (4 diffs)
-
root/etc/pbx-asterisk/sounds (added)
-
root/etc/pbx-asterisk/sounds/agent-alreadyon.gsm (added)
-
root/etc/pbx-asterisk/sounds/auth-thankyou.gsm (added)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/applications/luci-pbx/root/etc/init.d/pbx-asterisk
r7979 r8036 32 32 ASTDIRSRECURSIVE="/var/run/asterisk /var/log/asterisk /var/spool/asterisk" 33 33 ASTDIRS="/usr/lib/asterisk" 34 ASTSOUNDSDIR="/usr/lib/asterisk/sounds" 34 35 35 36 TEMPLATEDIR=/etc/${MODULENAME}-asterisk 37 PBXSOUNDSDIR=$TEMPLATEDIR/sounds 36 38 VMTEMPLATEDIR=/etc/${MODULENAME}-voicemail 39 VMSOUNDSDIR=$VMTEMPLATEDIR/sounds 37 40 ASTERISKDIR=/etc/asterisk 38 41 WORKDIR=/tmp/$MODULENAME.$$ … … 576 579 } 577 580 581 # Links any sound files found in $PBXSOUNDSDIR and $VMSOUNDSDIR 582 # into $ASTSOUNDSDIR for use by Asterisk. Does not overwrite files. 583 pbx_link_sounds() 584 { 585 mkdir -p $ASTSOUNDSDIR 586 587 for dir in $PBXSOUNDSDIR $VMSOUNDSDIR ; do 588 if [ -d $dir ] ; then 589 for f in $dir/* ; do 590 ln -s $f $ASTSOUNDSDIR 2>/dev/null 591 done 592 fi 593 done 594 } 595 596 578 597 # Makes sure the ownership of specified directories is proper. 579 598 pbx_fix_ownership() … … 668 687 config_unset 669 688 config_load ${MODULENAME}-voicemail 670 pbx_configure_voicemail 689 pbx_configure_voicemail 671 690 672 691 # Assemble the configuration, and copy changed files over. … … 675 694 pbx_assemble_and_copy_config 676 695 696 # Link sound files 697 pbx_link_sounds 698 677 699 # Enforce ownership of specified files and directories. 678 700 pbx_fix_ownership
