@ -1486,6 +1486,8 @@ static int send_packet(struct iax_frame *f)
intres;
intres;
chariabuf[INET_ADDRSTRLEN];
chariabuf[INET_ADDRSTRLEN];
/* Called with iaxsl held */
/* Called with iaxsl held */
if(!iaxs[f->callno])
return-1;
if(option_debug>2&&iaxdebug)
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,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));
/* Don't send if there was an error, but return error instead */
/* Don't send if there was an error, but return error instead */
@ -1493,8 +1495,6 @@ static int send_packet(struct iax_frame *f)
ast_log(LOG_WARNING,"Call number = %d\n",f->callno);
ast_log(LOG_WARNING,"Call number = %d\n",f->callno);