@ -12114,16 +12114,22 @@ static struct ast_channel *sip_request_call(const char *type, int format, void *
char*dest=data;
oldformat=format;
format&=((AST_FORMAT_MAX_AUDIO<<1)-1);
if(!format){
if((format&=((AST_FORMAT_MAX_AUDIO<<1)-1))){
ast_log(LOG_NOTICE,"Asked to get a channel of unsupported format %s while capability is %s\n",ast_getformatname(oldformat),ast_getformatname(global_capability));
returnNULL;
}
if(!(p=sip_alloc(NULL,NULL,0,SIP_INVITE)))
if(!(p=sip_alloc(NULL,NULL,0,SIP_INVITE))){
ast_log(LOG_ERROR,"Unable to build sip pvt data for '%s' (Out of memory)\n",(char*)data);