|
|
@ -2594,7 +2594,7 @@ static int update_call_counter(struct sip_pvt *fup, int event)
|
|
|
|
ast_copy_string(name, fup->peername, sizeof(name));
|
|
|
|
ast_copy_string(name, fup->peername, sizeof(name));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (option_debug > 1)
|
|
|
|
if (option_debug > 1)
|
|
|
|
ast_log(LOG_DEBUG, "%s is not a local user, no call limit\n", name);
|
|
|
|
ast_log(LOG_DEBUG, "%s is not a local device, no call limit\n", name);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2651,12 +2651,11 @@ static int update_call_counter(struct sip_pvt *fup, int event)
|
|
|
|
if (*inringing > 0)
|
|
|
|
if (*inringing > 0)
|
|
|
|
(*inringing)--;
|
|
|
|
(*inringing)--;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
ast_log(LOG_WARNING, "Inringing for peer '%s' < 0?\n", fup->peername);
|
|
|
|
ast_log(LOG_WARNING, "Inringing for peer '%s' < 0?\n", p->name);
|
|
|
|
ast_clear_flag(&fup->flags[1], SIP_PAGE2_INC_RINGING);
|
|
|
|
ast_clear_flag(&fup->flags[1], SIP_PAGE2_INC_RINGING);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
ast_log(LOG_ERROR, "update_call_counter(%s, %d) called with no event!\n", name, event);
|
|
|
|
ast_log(LOG_ERROR, "update_call_counter(%s, %d) called with no event!\n", name, event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|