Commit a33afaef authored by Pekka Pessi's avatar Pekka Pessi

test_basic_call.c: fixed --no-proxy tests

darcs-hash:20071126220835-65a35-b74abd58bb084c8b6b510ab387ddbd28136130cd.gz
parent 7405cbf1
......@@ -463,7 +463,8 @@ int test_basic_call_2(struct context *ctx)
#else
/* sf.net bug #1816647: Outbound contact does not make it to dialogs */
/* Now we use first registered contact if aor does not match */
TEST_S(sip->sip_contact->m_url->url_user, "b");
if (ctx->proxy_tests)
TEST_S(sip->sip_contact->m_url->url_user, "b");
#endif
TEST_1(e = e->next); TEST_E(e->data->e_event, nua_i_state);
TEST(callstate(e->data->e_tags), nua_callstate_ready); /* READY */
......@@ -1043,7 +1044,8 @@ int test_basic_call_5(struct context *ctx)
TEST(e->data->e_status, 200);
TEST_1(sip = sip_object(e->data->e_msg));
TEST_1(sip->sip_contact);
TEST_S(sip->sip_contact->m_url->url_user, "b");
if (ctx->proxy_tests) /* Use Contact from registration? */
TEST_S(sip->sip_contact->m_url->url_user, "b");
TEST_1(e = e->next); TEST_E(e->data->e_event, nua_i_state);
TEST(callstate(e->data->e_tags), nua_callstate_completing); /* COMPLETING */
TEST_1(e = e->next); TEST_E(e->data->e_event, nua_i_state);
......
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