[OpenSIPS-Devel] SF.net SVN: opensips:[4846] branches/1.4

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Oct 28 13:16:51 CET 2008


Revision: 4846
          http://opensips.svn.sourceforge.net/opensips/?rev=4846&view=rev
Author:   bogdan_iancu
Date:     2008-10-28 12:16:51 +0000 (Tue, 28 Oct 2008)

Log Message:
-----------
backport from trunk (rev #4844, #4834, #4835):

- added two new helper functions for searching for non standard headers:
	get_header_by_name( msg, name, len)
 	get_header_by_static_name( msg, static_name)

Second function is actually a macro over the first one - it is useful when the header name is a static string (and uses sizeof to get the len).

The new functions are to replace the local implementations form the modules and to fix the following bugs:
	1) header names are case insensitive 
	2) check also len (otherwise hdr ABCDE will match while looking for ABC)
	3) do string comp only if hdr type (OTHER) and name len match - more efficient

Partial fix for bug #2202134.


- small typo fixed in the newly added macro get_header_by_static_name()


- for searching non standard headers, use get_header_by_static_name() function
Closes bug #2202134.

Revision Links:
--------------
    http://opensips.svn.sourceforge.net/opensips/?rev=4844&view=rev

Modified Paths:
--------------
    branches/1.4/modules/peering/verify.c
    branches/1.4/modules/presence/publish.c
    branches/1.4/modules/pua/send_publish.c
    branches/1.4/modules/pua_bla/notify.c
    branches/1.4/modules/pua_mi/mi_func.c
    branches/1.4/modules/pua_xmpp/simple2xmpp.c
    branches/1.4/modules/rls/resource_notify.c
    branches/1.4/modules/rls/subscribe.c
    branches/1.4/parser/msg_parser.h


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list