replacement (leave the original in case my code does not
do what the function was meant to do).
oej, please check this...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
@ -11641,6 +11660,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
totag=ptr;
if((to=strchr(ptr,';')))
*to='\0';
/* XXX this code is also wrong as to can be NULL */
to++;
ptr=to;
}
@ -11654,6 +11674,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
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>");