Ticket #6255: asterisk_6255.diff

File asterisk_6255.diff, 1.6 KB (added by swalker, 8 years ago)

Fix the first two issues

  • packages/net/asterisk-1.6.x/Makefile

     
    250250/etc/asterisk/sip.conf 
    251251/etc/asterisk/sip_notify.conf 
    252252/etc/asterisk/features.conf 
     253/etc/asterisk/indications.conf 
    253254/etc/asterisk/logger.conf 
    254255/etc/asterisk/manager.conf 
    255256/etc/asterisk/rtp.conf 
     
    260261define Package/asterisk16/install 
    261262        $(INSTALL_DIR) $(1)/etc/asterisk 
    262263        for f in asterisk extensions features \ 
    263                 logger manager modules \ 
     264                indications logger manager modules \ 
    264265                sip sip_notify rtp; do \ 
    265266                $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \ 
    266267        done 
  • packages/net/asterisk-1.6.x/files/asterisk.init

     
    88 
    99start() { 
    1010        [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $DEST/var/run ] || mkdir -p $DEST/var/run 
     11        [ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk 
    1212        [ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk 
    1313        [ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk 
    1414        [ -d /var/spool/asterisk ] || mkdir -p /var/spool/asterisk 
     
    1717} 
    1818 
    1919stop() { 
    20         [ -f $DEST/var/run/asterisk.pid ] && kill $(cat $DEST/var/run/asterisk.pid) >/dev/null 2>&1 
     20        [ -f $DEST/var/run/asterisk/asterisk.pid ] && kill $(cat $DEST/var/run/asterisk/asterisk.pid) >/dev/null 2>&1 
    2121}