Commit 0eee6627 authored by Pekka Pessi's avatar Pekka Pessi

test_s2.c: cope if test nua uses default port

darcs-hash:20080516144406-db55f-5eb5034b3f6f6e35915a2f0f9e61377e15be815b.gz
parent ba1cfde7
......@@ -583,8 +583,12 @@ s2_request_to(struct dialog *d,
assert(tport);
*tpn = *tport_name(tport);
tpn->tpn_host = d->target->m_url->url_host;
tpn->tpn_port = d->target->m_url->url_port;
if (tport_is_udp(tport)) {
tpn->tpn_host = d->target->m_url->url_host;
tpn->tpn_port = url_port(d->target->m_url);
if (!tpn->tpn_port || !tpn->tpn_port[0])
tpn->tpn_port = url_port_default(d->target->m_url->url_type);
}
magic = tport_magic(tport);
assert(magic != NULL);
......@@ -778,7 +782,6 @@ void s2_case(char const *number,
_s2case = number;
}
/* ---------------------------------------------------------------------- */
/* tport interface */
static void
......
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