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><meta http-equiv="content-type" content="text/html; charset=utf-8"><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><div><br></div><div><br></div>