<div dir="ltr">Hello all<div><br></div><div>we just noticed an issue using this function</div><div>when we call it with 2 params (display and uri) and the SIP INVITE comes with a From uri like</div><div>sip:anonymous@anonymous.invalid; tag=13133439191609, without <> delimiters, then doing the uac replace in the ACK we have<br></div><div><br></div><div> 2(14923) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM direction detected - replacing uri with the new uri<br> 2(14923) DEBUG: uac [replace.c:943]: replace_callback(): Replace [ sip:anonymous@anonymous.invalid] with ["14254350027" <a href="mailto:sip%3A14254350027@1.1.18.171">sip:14254350027@1.1.18.171</a>]<br> 2(14923) DEBUG: uac [replace.c:980]: replace_callback(): inserting display ["14254350027"]<br><br>And this is the From header replaced</div><div>From: <a href="mailto:sip%3A14254350027@1.1.18.171">sip:14254350027@1.1.18.171</a>"14254350027" <>;tag=13133439191609<br><br>But if the call comes with a From header like<br><sip:anonymous@anonymous.invalid>; tag=13133439191609</div><div>Then this is the From header replaced<br> 2(19741) DEBUG: uac [replace.c:922]: replace_callback(): DOWNSTREAM direction detected - replacing uri with the new uri<br> 2(19741) DEBUG: uac [replace.c:943]: replace_callback(): Replace [ <a href="http://sip:1241342@1.1.18.171:5074">sip:1241342@1.1.18.171:5074</a>] with ["14254350027" <a href="mailto:sip%3A14254350027@1.1.18.171">sip:14254350027@1.1.18.171</a>]<br> 2(19741) DEBUG: uac [replace.c:980]: replace_callback(): inserting display ["14254350027"]<br><br><br>From: "14254350027" <<a href="mailto:sip%3A14254350027@1.1.18.171">sip:14254350027@1.1.18.171</a>>;tag=13133439191609<br></div><div><br></div><div><br></div><div>Were you aware of this kind of behaviour? If possible we will look for a patch for this.</div><div><br></div><div>thanks a lot and regards</div><div>david</div></div>