[Freeswitch-svn] [commit] r8465 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua
Freeswitch SVN
mikej at freeswitch.org
Mon May 19 12:55:15 EDT 2008
Author: mikej
Date: Mon May 19 12:55:15 2008
New Revision: 8465
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c
Log:
Fri May 16 10:44:06 EDT 2008 Pekka Pessi <first.last at nokia.com>
* test_s2.c: cope if test nua uses default port
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Mon May 19 12:55:15 2008
@@ -1 +1 @@
-Mon May 19 12:54:40 EDT 2008
+Mon May 19 12:55:08 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c Mon May 19 12:55:15 2008
@@ -583,8 +583,12 @@
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 @@
_s2case = number;
}
-
/* ---------------------------------------------------------------------- */
/* tport interface */
static void
More information about the Freeswitch-svn
mailing list