Hi,<br><br>at the end of chan_sip.c&#39;s initreqprep() function all the headers are added to the sip message:<br><br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;To&quot;, to);<br>&nbsp;&nbsp;&nbsp; ast_string_field_set(p, exten, l);<br>&nbsp;&nbsp;&nbsp; build_contact(p);
<br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;Contact&quot;, p-&gt;our_contact);<br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;Call-ID&quot;, p-&gt;callid);<br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;CSeq&quot;, tmp);<br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;User-Agent&quot;, global_useragent);
<br>&nbsp;&nbsp;&nbsp; add_header(req, &quot;Max-Forwards&quot;, DEFAULT_MAX_FORWARDS);<br><br>But when I try to get one of these values with a call to <br>&nbsp;&nbsp;&nbsp; get_header(req, &quot;Contact&quot;) subsequent to the add_headers I get a segmentation fault.
<br><br>Anybody has an Idea why?<br><br>Thank you very much!<br>Thomas Hecker<br>