Hi,<br><br>at the end of chan_sip.c's initreqprep() function all the headers are added to the sip message:<br><br> add_header(req, "To", to);<br> ast_string_field_set(p, exten, l);<br> build_contact(p);
<br> add_header(req, "Contact", p->our_contact);<br> add_header(req, "Call-ID", p->callid);<br> add_header(req, "CSeq", tmp);<br> add_header(req, "User-Agent", global_useragent);
<br> add_header(req, "Max-Forwards", DEFAULT_MAX_FORWARDS);<br><br>But when I try to get one of these values with a call to <br> get_header(req, "Contact") 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>