Commit 8c1356a6 authored by Pekka Pessi's avatar Pekka Pessi

Always having NTATAG_SIGCOMP_OPTIONS() and storing its value.

darcs-hash:20060411215222-65a35-8890a2c1e6d86b405b3d97a58a906a01a41808ba.gz
parent 3d48a094
......@@ -472,6 +472,7 @@ int api_test_params(agent_t *ag)
int use_naptr = -1;
int use_srv = -1;
unsigned preload = (unsigned)-1;
int have_sigcomp = sofia_sip_has_sigcomp != NULL;
char const *s = NONE;
TEST_1(nta = nta_agent_create(ag->ag_root, (url_string_t *)"sip:*:*",
......@@ -536,18 +537,21 @@ int api_test_params(agent_t *ag)
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS("sip"),
TAG_END()), 1);
TAG_END()), have_sigcomp);
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS(","),
TAG_END()), -1);
TAG_END()), -have_sigcomp);
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS("sip;dms=16384"),
TAG_END()), 1);
TAG_END()), have_sigcomp);
s = NONE;
TEST(nta_agent_get_params(nta,
NTATAG_SIGCOMP_OPTIONS_REF(s),
TAG_END()), 1);
TEST_S(s, "sip;dms=16384");
if (have_sigcomp)
TEST_S(s, "sip;dms=16384");
else
TEST(s, NULL);
TEST_VOID(nta_agent_destroy(nta));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment