<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi kamailio dev:<br>I am writing a module to implement some features, my version is 4.1.2, I am not sure if it is a known issue, I found:<br>1. When I get a INVITE request with from/to like from:"display"<aaa@sip.com>, then I call tm's new_dlg_uas with the sip req, now the dlg's rem_uri set as value: "display"<aaa@sip.com>;<br>2. After that, when I need use the dlg to send BYE with tm's req_within with the above saved dlg, the print_to function will check the rem_uri's first value if "<" or not, now my uri has display name, so the outgoing BYE's to header becomes to:<"display"<aaa@sip.com>>, is it wrong? Should we check the last char in the rem_uri as ">"?<br><br>The detail code is :<br>static inline char* print_to(char* w, dlg_t* dialog, struct cell* t)<br>{<br>    t->to.s = w;<br>    t->to.len = TO_LEN + dialog->rem_uri.len + CRLF_LEN<br>        + ((dialog->rem_uri.s[0]!='<')?2:0);<br><br>    memapp(w, TO, TO_LEN);<br><span style="color: rgb(255, 0, 0);">    if(dialog->rem_uri.s[0]!='<') memapp(w, "<", 1);<br>    memapp(w, dialog->rem_uri.s, dialog->rem_uri.len);<br>    if(dialog->rem_uri.s[0]!='<') memapp(w, ">", 1);</span><br>....<br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>