Observed Behavior:
With the following configuration: mqtt_basetopic baresip/505
Baresip logs show: mqtt: Publishing on /baresip/505/event, subscribing to /baresip/505/command/+
Expected Behavior:
The leading slash should be omitted if not present in the config, resulting in:
mqtt: Publishing on baresip/505/event, subscribing to baresip/505/command/+
Observed Behavior:
With the following configuration: mqtt_basetopic baresip/505
Baresip logs show: mqtt: Publishing on /baresip/505/event, subscribing to /baresip/505/command/+
Expected Behavior:
The leading slash should be omitted if not present in the config, resulting in:
mqtt: Publishing on baresip/505/event, subscribing to baresip/505/command/+