<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; ">hello, <div>
<br></div><div>i found that FS doesn't transparently map Diversion header from INVITE to 300|302 message in a case of diversion.</div><div><br></div><div>i have changed mod_sofia.c to adjust this:</div><div><br></div>
<div> char *added_headers = sofia_glue_get_extra_headers(channel, SOFIA_SIP_HEADER_PREFIX);</div><div><br></div><div><br></div><div><div>--- 2026,2037 ----</div><div><br></div><div> if (argc > 1) {</div>
<div> nua_respond(tech_pvt->nh, SIP_300_MULTIPLE_CHOICES, SIPTAG_CONTACT_STR(dest),</div><div>! TAG_IF(!zstr(extra_headers), SIPTAG_HEADER_STR(extra_headers)),</div>
<div>! TAG_IF(!zstr(added_headers), SIPTAG_HEADER_STR(added_headers)), TAG_END());</div><div> } else {</div><div> nua_respond(tech_pvt->nh, SIP_302_MOVED_TEMPORARILY, SIPTAG_CONTACT_STR(dest),</div>
<div>! TAG_IF(!zstr(extra_headers), SIPTAG_HEADER_STR(extra_headers)),</div><div>! TAG_IF(!zstr(added_headers), SIPTAG_HEADER_STR(added_headers)), TAG_END());</div>
<div> }</div><div><br></div></div><div><br></div><div><br></div><div>Now 300|302 message contains the original header that was present in INVITE.</div><div><br></div><div><br></div><div>since i didn't get any response whether this is a "feature" or a bug ... i went into the code and changed it myself.</div>
<div><br></div><div>Please check the patch attached and see if it is possible/feasible/acceptable merge it into FS trunk. </div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Tihomir.</div><div><br></div>
<div><br></div><div>BTW: macros are cool while bringing headache in the same time :=)</div></span></span><br class="Apple-interchange-newline">