<div dir="ltr">Thanks for volunteering to clean out for us Olle ;)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 2:39 PM, Richard Good <span dir="ltr">&lt;<a href="mailto:richard.good@smilecoms.com" target="_blank">richard.good@smilecoms.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br><br>Agreed on this - historically large parts of the IMS module code comes from the FOKUS Open Source IMS Core which I think started as an IMS specific SER branch.<br>
<br>The purpose of these new modules is to enable this same IMS functionality but take advantage of Kamailio&#39;s proven reliability and core functionality.  Some functions, like the one you mentioned, still need to be reworked.<br>

<br>Regards<br>Richard.<div><div class="h5"><br><br><br><div class="gmail_quote">On 12 March 2013 14:18, Olle E. Johansson <span dir="ltr">&lt;<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
12 mar 2013 kl. 12:31 skrev Jason Penton &lt;<a href="mailto:jason.penton@gmail.com" target="_blank">jason.penton@gmail.com</a>&gt;:<br>
<div><br>
&gt; +/**<br>
&gt; + * Returns the first header structure for a given header name.<br>
&gt; + * @param msg - the SIP message to look into<br>
&gt; + * @param header_name - the name of the header to search for<br>
&gt; + * @returns the hdr_field on success or NULL if not found<br>
&gt; + */<br>
&gt; +struct hdr_field* cscf_get_header(struct sip_msg * msg, str header_name) {<br>
&gt; +     struct hdr_field *h;<br>
&gt; +     if (parse_headers(msg, HDR_EOH_F, 0) &lt; 0) {<br>
&gt; +             LM_ERR(&quot;cscf_get_path: error parsing headers\n&quot;);<br>
&gt; +             return NULL ;<br>
&gt; +     }<br>
&gt; +     h = msg-&gt;headers;<br>
&gt; +     while (h) {<br>
&gt; +             if (h-&gt;name.len == header_name.len<br>
&gt; +                             &amp;&amp; strncasecmp(h-&gt;name.s, header_name.s, header_name.len) == 0)<br>
&gt; +                     break;<br>
&gt; +             h = h-&gt;next;<br>
&gt; +     }<br>
&gt; +     return h;<br>
&gt; +}<br>
&gt; +<br>
<br>
</div>Just a small philosophical note. I think we should be careful not to rebuild Kamailio in a specific &quot;IMS&quot; version.<br>
<br>
Generic functions like this one doesn&#39;t belong in the IMS library, it should exist (and maybe does) in the<br>
core libraries.<br>
<br>
Let&#39;s try to merge functionality where we can and not complicate things.<br>
<span><font color="#888888"><br>
/O<br>
</font></span><div><div>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br><table style="width:450.0pt" border="0" cellpadding="0" cellspacing="0" width="600"><tbody><tr style="min-height:10.5pt"><td rowspan="3" style="width:173.25pt;padding:0cm 0cm 0cm 0cm;min-height:10.5pt" valign="top" width="231">

<br></td><td style="padding:0cm 0cm 0cm 0cm;min-height:10.5pt" valign="top"><br></td></tr><tr style="min-height:42.75pt"><td style="padding:0cm 0cm 0cm 0cm;min-height:42.75pt" valign="top"><br></td></tr></tbody></table><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span>

</div></div><pre>This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at <a href="http://www.smilecoms.com/disclaimer" target="_blank">http://www.smilecoms.com/disclaimer</a>

</pre><br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>