mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user