/* This frame can't be from the current native formats -- drop it on the
floor*/
ast_log(LOG_NOTICE,"Dropping incompatible voice frame on %s of format %d since our native format has changed to %d\n",chan->name,f->subclass, chan->nativeformats);
ast_log(LOG_NOTICE,"Dropping incompatible voice frame on %s of format %s since our native format has changed to %s\n",chan->name,ast_getformatname(f->subclass), ast_getformatname(chan->nativeformats));
ast_frfree(f);
f=&null_frame;
}else{
@ -1403,7 +1403,8 @@ int ast_set_write_format(struct ast_channel *chan, int fmts)
res=ast_translator_best_choice(&native,&fmt);
if(res<0){
ast_log(LOG_NOTICE,"Unable to find a path from %d to %d\n",fmts,chan->nativeformats);
ast_log(LOG_NOTICE,"Unable to find a path from %s to %s\n",
send_command_final(iaxs[fr.callno],AST_FRAME_IAX,AST_IAX_COMMAND_REJECT,0,"Unable to negotiate codec",strlen("Unable to negotiate codec"),-1);
ast_log(LOG_NOTICE,"Rejected call to %s, format 0x%x incompatible with our capability 0x%x.\n",inet_ntoa(sin.sin_addr),iaxs[fr.callno]->peerformat,iaxs[fr.callno]->capability);
@ -3737,7 +3737,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
ast_log(LOG_DEBUG,"We don't do requested format %d, falling back to peer capability %d\n",iaxs[fr.callno]->peerformat,iaxs[fr.callno]->peercapability);
ast_log(LOG_DEBUG,"We don't do requested format %s, falling back to peer capability %d\n",ast_getformatname(iaxs[fr.callno]->peerformat),iaxs[fr.callno]->peercapability);
ast_log(LOG_DEBUG,"We don't do requested format %d, falling back to peer capability %d\n",iaxs[fr.callno]->peerformat,iaxs[fr.callno]->peercapability);
ast_log(LOG_DEBUG,"We don't do requested format %s, falling back to peer capability %d\n",ast_getformatname(iaxs[fr.callno]->peerformat),iaxs[fr.callno]->peercapability);
@ -5223,7 +5223,7 @@ static struct ast_channel *sip_request(char *type, int format, void *data)
oldformat=format;
format&=capability;
if(!format){
ast_log(LOG_NOTICE,"Asked to get a channel of unsupported format %d while capability is %d\n",oldformat,capability);
ast_log(LOG_NOTICE,"Asked to get a channel of unsupported format %s while capability is %s\n",ast_getformatname(oldformat),ast_getformatname(capability));
ast_log(LOG_WARNING,"Format %d is larger than MAX_FORMAT\n",t->srcfmt);
ast_log(LOG_WARNING,"Format %s is larger than MAX_FORMAT\n",ast_getformatname(t->srcfmt));
return-1;
}
calc_cost(t);
if(option_verbose>1)
ast_verbose(VERBOSE_PREFIX_2"Registered translator '%s' from format %d to %d, cost %d\n",term_color(tmp,t->name,COLOR_MAGENTA,COLOR_BLACK,sizeof(tmp)),t->srcfmt,t->dstfmt,t->cost);
ast_verbose(VERBOSE_PREFIX_2"Registered translator '%s' from format %s to %s, cost %d\n",term_color(tmp,t->name,COLOR_MAGENTA,COLOR_BLACK,sizeof(tmp)),ast_getformatname(t->srcfmt),ast_getformatname(t->dstfmt),t->cost);