diff --git a/src/scripts/device/find-voice-call-profile.lua b/src/scripts/device/find-voice-call-profile.lua index eb6910f0..09e30d8e 100644 --- a/src/scripts/device/find-voice-call-profile.lua +++ b/src/scripts/device/find-voice-call-profile.lua @@ -61,10 +61,13 @@ SimpleEventHook { for p in device:iterate_params ("EnumProfile") do local profile = cutils.parseParam (p, "EnumProfile") + log:debug (device, string.format ( + "Checking profile '%s': available == %s, priority == %d", + profile.name, profile.available, profile.priority)) local found = string.find (profile.name, "^Voice Call") - if profile.available == "yes" and found ~= nil then + if profile.available ~= "no" and found ~= nil then if (not selected_profile) or selected_profile.priority < profile.priority then - selected_profile = profile + selected_profile = profile end end end