Skip to content
Snippets Groups Projects
  • Nicholas John Koch's avatar
    fef97a9a
    res_musiconhold: Added check for dot character in path of playlist entries to avoid warnings · fef97a9a
    Nicholas John Koch authored
    A warning was triggered that there may be a problem regarding file
    extension (which is correct and should not be set anyway). The warning
    also appeared if there was dot within the path itself.
    
    E.g.
    [sales-queue-hold]
    mode=playlist
    entry=/var/www/domain.tld/moh/funky_music
    
    The music played correctly but you get a warning message.
    
    Now there will be a check if the position of a potential dot character
    is after the last position of a slash character. This dot charachter
    will be treated as a extension naming. Dots within the path then ignored.
    
    ASTERISK-28892
    Reported-By: Nicholas John Koch
    
    Change-Id: I2ec35a613413affbf5fcc01c8c181eba24865b9e
    fef97a9a
    History
    res_musiconhold: Added check for dot character in path of playlist entries to avoid warnings
    Nicholas John Koch authored
    A warning was triggered that there may be a problem regarding file
    extension (which is correct and should not be set anyway). The warning
    also appeared if there was dot within the path itself.
    
    E.g.
    [sales-queue-hold]
    mode=playlist
    entry=/var/www/domain.tld/moh/funky_music
    
    The music played correctly but you get a warning message.
    
    Now there will be a check if the position of a potential dot character
    is after the last position of a slash character. This dot charachter
    will be treated as a extension naming. Dots within the path then ignored.
    
    ASTERISK-28892
    Reported-By: Nicholas John Koch
    
    Change-Id: I2ec35a613413affbf5fcc01c8c181eba24865b9e