Thu Jan 8 15:12:28 CST 2009 Pekka Pessi <first.last@nokia.com>

* sresolv: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11805 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-02-11 16:51:44 +00:00
parent adeaf3cfff
commit d8f68d7a56
4 changed files with 15 additions and 12 deletions

View File

@@ -41,6 +41,7 @@
#define SRES_CONTEXT_T struct context
#include "sofia-sip/sresolv.h"
#include "sofia-sip/su_string.h"
char const name[] = "sip_resolve";
@@ -121,7 +122,7 @@ void answer_to_naptr_query(sres_context_t *sr,
switch (na->na_flags[0]) {
case 's': /* srv */
if (strncasecmp("SIP+", na->na_services, 4))
if (!su_casenmatch("SIP+", na->na_services, 4))
/* Something else but SIP */
break;
query_srv(sr, na->na_replace);
@@ -129,7 +130,7 @@ void answer_to_naptr_query(sres_context_t *sr,
return;
case 'a':
if (strncasecmp("SIP+", na->na_services, 4))
if (!su_casenmatch("SIP+", na->na_services, 4))
/* Something else but SIP */
break;
query_a(sr, na->na_replace);