@ -11622,34 +11607,6 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
fromtag=strsep(&fromtag,"&");/* trim what ? */
}
}
#else /* original code, buggy */
if((ptr=strchr(replace_id,';'))){
*ptr='\0';
ptr++;
}
start=ptr;
to=strcasestr(ptr,"to-tag=");
if(to){
ptr=to+7;
totag=ptr;
if((to=strchr(ptr,';')))
*to='\0';
/* XXX this code is also wrong as to can be NULL */
to++;
ptr=to;
}
to=strcasestr(ptr,"from-tag=");
if(to){
ptr=to+9;
fromtag=ptr;
if((to=strchr(ptr,'&')))
*to='\0';
if((to=strchr(ptr,';')))
*to='\0';
}
#endif
if(sipdebug&&option_debug>3)
ast_log(LOG_DEBUG,"Invite/replaces: Will use Replace-Call-ID : %s Fromtag: %s Totag: %s\n",replace_id,fromtag?fromtag:"<no from tag>",totag?totag:"<no to tag>");