* is *two* devices in Asterisk, not one.
*
* Thought: For realtime, we should propably update storage with inuse counter...
+ *
+ * \return 0 if call is ok (no call limit, below treshold)
+ * -1 on rejection of call
+ *
*/
static int update_call_counter(struct sip_pvt *fup, int event)
{
if (!p->lastinvite) {
char mailboxbuf[256]="";
- int found = 0;
char *mailbox = NULL;
int mailboxsize = 0;
*/
if (!ast_strlen_zero(mailbox)) {
- found++;
- }
-
- if (found){
transmit_response(p, "200 OK", req);
ast_set_flag(p, SIP_NEEDDESTROY);
} else {