mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 12:07:06 +00:00
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:
1 parent
614ca565ae
commit
4795234198
2 files changed
+7
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user