@ -1607,28 +1607,30 @@ static int send_packet(struct iax_frame *f)
{
intres;
chariabuf[INET_ADDRSTRLEN];
intcallno=f->callno;
/* Called with iaxsl held */
if(option_debug>2&&iaxdebug)
ast_log(LOG_DEBUG,"Sending %d on %d/%d to %s:%d\n",f->ts,f->callno,iaxs[f->callno]->peercallno,ast_inet_ntoa(iabuf,sizeof(iabuf),iaxs[f->callno]->addr.sin_addr),ntohs(iaxs[f->callno]->addr.sin_port));
ast_log(LOG_DEBUG,"Sending %d on %d/%d to %s:%d\n",f->ts, callno,iaxs[callno]->peercallno,ast_inet_ntoa(iabuf,sizeof(iabuf),iaxs[callno]->addr.sin_addr),ntohs(iaxs[callno]->addr.sin_port));
/* Don't send if there was an error, but return error instead */
if(!f->callno){
ast_log(LOG_WARNING,"Call number = %d\n",f->callno);
if(!callno){
ast_log(LOG_WARNING,"Call number = %d\n", callno);