From 36413704c1ff24a8e38e0fcf47c9a9c87621e71a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 8 Oct 2006 12:39:34 +0000 Subject: Major addition to support DNS SRV resolution in PJSIP: - added DNS asynchronous/caching resolver engine in PJLIB-UTIL (resolver.[hc]) - modified SIP resolver (sip_resolve.c) to properly perform DNS SRV/A resolution when DNS resolution is enabled. - added dns_test.c in PJSIP-TEST for testing the SIP resolver. - added nameserver configuration in PJSUA-LIB - added "--nameserver" option in PJSUA. - updated project/Makefiles and doxygen documentation. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@753 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/test-pjsip/test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pjsip/src/test-pjsip/test.c') diff --git a/pjsip/src/test-pjsip/test.c b/pjsip/src/test-pjsip/test.c index 502f049b..c7566bb2 100644 --- a/pjsip/src/test-pjsip/test.c +++ b/pjsip/src/test-pjsip/test.c @@ -20,6 +20,7 @@ #include "test.h" #include +#include #include #define THIS_FILE "test.c" @@ -240,6 +241,11 @@ int test_main(void) return rc; } + if ((rc=pjlib_util_init()) != PJ_SUCCESS) { + app_perror("pj_init", rc); + return rc; + } + status = init_report(); if (status != PJ_SUCCESS) return status; @@ -311,6 +317,10 @@ int test_main(void) DO_TEST(transport_tcp_test()); #endif +#if INCLUDE_RESOLVE_TEST + DO_TEST(resolve_test()); +#endif + #if INCLUDE_TSX_TEST status = pjsip_udp_transport_start(endpt, NULL, NULL, 1, &tp); -- cgit v1.2.3