forked from Mirrors/freeswitch
Fri May 16 10:44:06 EDT 2008 Pekka Pessi <first.last@nokia.com>
* test_s2.c: cope if test nua uses default port git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8465 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
614ca565ae
commit
4795234198
@ -1 +1 @@
|
||||
Mon May 19 12:54:40 EDT 2008
|
||||
Mon May 19 12:55:08 EDT 2008
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user