<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1474282463333_5903">Hi,</div><div id="yui_3_16_0_1_1474282463333_5903"><br></div><div id="yui_3_16_0_1_1474282463333_5903" dir="ltr">I have a registered handset which replies to an INVITE message from Kamailio with a "302 Moved Temporarily" message. The reason for this is because the user has set their handset to forward the call to another telephone number. </div><div id="yui_3_16_0_1_1474282463333_5903" dir="ltr"><br></div><div id="yui_3_16_0_1_1474282463333_5903" dir="ltr">In a wireshark trace I can see the forwarded telephone number in the Contact header of the SIP message but I can't find a way to access this header via any variables. In the config file I have tried this:</div><div id="yui_3_16_0_1_1474282463333_5903" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9893"># Manage incoming replies</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">onreply_route[MANAGE_REPLY] {</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">    ...<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">    if(t_check_status("3[0-9][0-9]")) {<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">        xlog("L_INFO", "test1: $hdr(Contact)");<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">        xlog("L_INFO", "test2: $ct");<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">    }<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">    ...<br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">}</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894"><br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">, but in both cases the value returned is the Contact header of the original INVITE message and not the Contact shown in the "302 Moved Temporarily" reply message.</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894"><br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">How do I access the Contact header in the reply message?</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894"><br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">Regards,</div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894"><br></div><div dir="ltr" id="yui_3_16_0_1_1474282463333_9894">Mark.</div></div></body></html>