[OpenSIPS-Devel] [opensips] rtpproxy module ignores compact contact-type header (c) (#403)

Bogdan Andrei IANCU notifications at github.com
Wed Jan 21 18:53:52 CET 2015


@ionutrazvanionita , the best approach is to actually parse ehdrs in a SIP-wise manner : 
                /* use SIP parser to look at what is in the FIFO request */
		memset( &tmp_msg, 0, sizeof(struct sip_msg));
		tmp_msg.len = hdrs->len;
		tmp_msg.buf = tmp_msg.unparsed = hdrs->s;
		if (parse_headers( &tmp_msg, HDR_EOH_F, 0) == -1 )
			return init_mi_tree( 400, "Bad headers", 11);

(see modules/tm/tm.c +473 )

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/403#issuecomment-70886597
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150121/71912138/attachment.htm>


More information about the Devel mailing list