[Freeswitch-svn] [commit] r8693 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nta libsofia-sip-ua/nta/sofia-sip
Freeswitch SVN
mikej at freeswitch.org
Tue May 27 11:33:04 EDT 2008
Author: mikej
Date: Tue May 27 11:33:03 2008
New Revision: 8693
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sofia-sip/nta_tag.h
Log:
fix NUTAG_SERVER_RPORT
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Tue May 27 11:33:03 2008
@@ -1 +1 @@
-Mon May 26 20:18:27 EDT 2008
+Tue May 27 11:32:48 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c Tue May 27 11:33:03 2008
@@ -1176,6 +1176,10 @@
progress = 60 * 1000;
agent->sa_progress = progress;
+ if (server_rport > 2)
+ server_rport = 1;
+ agent->sa_server_rport = server_rport;
+
agent->sa_bad_req_mask = bad_req_mask;
agent->sa_bad_resp_mask = bad_resp_mask;
@@ -1197,7 +1201,6 @@
agent->sa_smime = smime;
agent->sa_flags = flags & MSG_FLG_USERMASK;
agent->sa_rport = rport != 0;
- agent->sa_server_rport = server_rport != 0;
agent->sa_tcp_rport = tcp_rport != 0;
agent->sa_preload = preload;
agent->sa_tport_threadpool = threadpool;
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sofia-sip/nta_tag.h
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sofia-sip/nta_tag.h (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sofia-sip/nta_tag.h Tue May 27 11:33:03 2008
@@ -358,10 +358,10 @@
#define NTATAG_RPORT_REF(x) ntatag_client_rport_ref, tag_bool_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_server_rport;
-#define NTATAG_SERVER_RPORT(x) ntatag_server_rport, tag_bool_v((x))
+#define NTATAG_SERVER_RPORT(x) ntatag_server_rport, tag_uint_v((x))
NTA_DLL extern tag_typedef_t ntatag_server_rport_ref;
-#define NTATAG_SERVER_RPORT_REF(x) ntatag_server_rport_ref, tag_bool_vr(&(x))
+#define NTATAG_SERVER_RPORT_REF(x) ntatag_server_rport_ref, tag_uint_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_tcp_rport;
#define NTATAG_TCP_RPORT(x) ntatag_tcp_rport, tag_bool_v((x))
More information about the Freeswitch-svn
mailing list