<HTML>
<HEAD>
<TITLE>Retrieve headers from negative reply</TITLE>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Hello,<BR>
<BR>
Is there any way to retrieve headers from a response, rather than the request? &nbsp;I need the Contact header out of a 302 response. &nbsp;Both $hdr(Contact) and $ct give me the contact of the request, not the response.<BR>
<BR>
I tried get_redirects(), but because of the formatting of the contact response it crashes Opensips:<BR>
<BR>
CRITICAL:core:qm_free: freeing already freed pointer, first free: parser/msg_parser.c: set_ruri(712) - aborting <BR>
INFO:core:handle_sigs: child process 3554 exited by a signal 6 <BR>
INFO:core:handle_sigs: core was not generated <BR>
INFO:core:handle_sigs: terminating due to SIGCHLD <BR>
<BR>
Get_redirects() was a last resort anyway because I really just need a value from the Contact, I don&#8217;t want to use it for routing.<BR>
<BR>
<BR>
Thanks,<BR>
Jeff<BR>
</SPAN></FONT>
</BODY>
</HTML>