|
|
@ -2898,7 +2898,10 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout)
|
|
|
|
ast_log(LOG_DEBUG, "Outgoing Call for %s\n", p->username);
|
|
|
|
ast_log(LOG_DEBUG, "Outgoing Call for %s\n", p->username);
|
|
|
|
|
|
|
|
|
|
|
|
res = update_call_counter(p, INC_CALL_RINGING);
|
|
|
|
res = update_call_counter(p, INC_CALL_RINGING);
|
|
|
|
if ( res != -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
if (res == -1)
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
|
|
|
|
|
|
|
p->callingpres = ast->cid.cid_pres;
|
|
|
|
p->callingpres = ast->cid.cid_pres;
|
|
|
|
p->jointcapability = ast_translate_available_formats(p->capability, p->prefcodec);
|
|
|
|
p->jointcapability = ast_translate_available_formats(p->capability, p->prefcodec);
|
|
|
|
|
|
|
|
|
|
|
@ -2915,7 +2918,7 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout)
|
|
|
|
/* Initialize auto-congest time */
|
|
|
|
/* Initialize auto-congest time */
|
|
|
|
p->initid = ast_sched_add(sched, SIP_TRANS_TIMEOUT, auto_congest, p);
|
|
|
|
p->initid = ast_sched_add(sched, SIP_TRANS_TIMEOUT, auto_congest, p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|