Skip to content
Snippets Groups Projects
  • Matt Jordan's avatar
    0ded269b
    funcs/func_devstate: Remove new line in Device field of during module load · 0ded269b
    Matt Jordan authored
    During module loading of func_devstate, Asterisk emits the current
    device state of all Custom device states currently stored in the AstDB.
    This was erroneously including a new line character ('\n') to the end of
    the device state, causing two new lines to be emitted in
    DeviceStateChange AMI events.
    
    Note that this only happened for those device state changes that
    occurred during startup. Regular device state changes for Custom device
    states are handled elsewhere, and did not have the newline.
    
    ASTERISK-26643 #close
    Reported by: Roman Bedros
    Tested by: Matt Jordan
    patches:
      ami_devstate.diff uploaded by Roman Bedros (License 6842)
    
    Change-Id: I1f4c02fc79c448d43bf725f5039c83d9611d7d93
    0ded269b
    History
    funcs/func_devstate: Remove new line in Device field of during module load
    Matt Jordan authored
    During module loading of func_devstate, Asterisk emits the current
    device state of all Custom device states currently stored in the AstDB.
    This was erroneously including a new line character ('\n') to the end of
    the device state, causing two new lines to be emitted in
    DeviceStateChange AMI events.
    
    Note that this only happened for those device state changes that
    occurred during startup. Regular device state changes for Custom device
    states are handled elsewhere, and did not have the newline.
    
    ASTERISK-26643 #close
    Reported by: Roman Bedros
    Tested by: Matt Jordan
    patches:
      ami_devstate.diff uploaded by Roman Bedros (License 6842)
    
    Change-Id: I1f4c02fc79c448d43bf725f5039c83d9611d7d93