Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 88153) +++ channels/chan_sip.c (working copy) @@ -5239,14 +5239,20 @@ /* Check which device/devices we are watching and if they are registered */ if (ast_get_hint(hint, sizeof(hint), NULL, 0, NULL, p->context, p->exten)) { char *hint2 = hint, *individual_hint = NULL; + int hint_count = 0, unavailable_count = 0; + while ((individual_hint = strsep(&hint2, "&"))) { - /* If they are not registered, we will override notification and show no availability */ - if (ast_device_state(individual_hint) == AST_DEVICE_UNAVAILABLE) { - local_state = NOTIFY_CLOSED; - pidfstate = "away"; - pidfnote = "Not online"; - } + hint_count++; + + if (ast_device_state(individual_hint) == AST_DEVICE_UNAVAILABLE) + unavailable_count++; } + /* If none of the hinted devices are registered, we will override notification and show no availability */ + if (hint_count > 0 && hint_count == unavailable_count) { + local_state = NOTIFY_CLOSED; + pidfstate = "away"; + pidfnote = "Not online"; + } } ast_copy_string(from, get_header(&p->initreq, "From"), sizeof(from));