Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libosip2 for openSUSE:Factory 
checked in at 2022-02-13 19:51:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libosip2 (Old)
 and      /work/SRC/openSUSE:Factory/.libosip2.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libosip2"

Sun Feb 13 19:51:03 2022 rev:30 rq:954072 version:5.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libosip2/libosip2.changes        2021-06-19 
23:05:06.615862872 +0200
+++ /work/SRC/openSUSE:Factory/.libosip2.new.1956/libosip2.changes      
2022-02-13 19:51:46.602330012 +0100
@@ -1,0 +2,12 @@
+Mon Nov 22 22:22:15 UTC 2021 - Andreas Stieger <[email protected]>
+
+- update to 5.3.0:
+  * STRUCTURE change: struct osip_transaction
+  * CHANGE: if out_socket contains -999 and timer_b or timer_f
+    fires, the transaction will report a transport-error
+  * improve TIMER_E to avoid high interval after DNS or socket
+    events
+  * when port number starts with 0, just put 0 and discard other
+    char [no op in practice]
+
+-------------------------------------------------------------------

Old:
----
  libosip2-5.2.1.tar.gz
  libosip2-5.2.1.tar.gz.sig

New:
----
  libosip2-5.3.0.tar.gz
  libosip2-5.3.0.tar.gz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libosip2.spec ++++++
--- /var/tmp/diff_new_pack.XnRJJ4/_old  2022-02-13 19:51:47.058331226 +0100
+++ /var/tmp/diff_new_pack.XnRJJ4/_new  2022-02-13 19:51:47.062331236 +0100
@@ -16,9 +16,9 @@
 #
 
 
-%define soname libosip2-12
+%define sover 15
 Name:           libosip2
-Version:        5.2.1
+Version:        5.3.0
 Release:        0
 Summary:        Implementation of SIP (RFC 3261)
 License:        LGPL-2.1-or-later
@@ -37,11 +37,11 @@
 Protocol. SIP is described in the RFC 3261, which is available at
 http://www.ietf.org/rfc/rfc3261.txt.
 
-%package -n %{soname}
+%package -n %{name}-%{sover}
 Summary:        Implementation of SIP (RFC 3261)
 Group:          System/Libraries
 
-%description -n %{soname}
+%description -n %{name}-%{sover}
 This is the GNU oSIP library. It has been designed to provide the
 Internet community with a simple way to support the Session Initiation
 Protocol. SIP is described in the RFC 3261, which is available at
@@ -50,7 +50,7 @@
 %package devel
 Summary:        Header files for the GNU SIP implementation
 Group:          Development/Libraries/C and C++
-Requires:       %{soname} = %{version}
+Requires:       %{name}-%{sover} = %{version}
 Requires:       glibc-devel
 Provides:       libosip2:%{_includedir}/osip2/osip.h
 
@@ -78,12 +78,12 @@
 %check
 %make_build check
 
-%post -n %{soname} -p /sbin/ldconfig
-%postun -n %{soname} -p /sbin/ldconfig
+%post -n %{name}-%{sover} -p /sbin/ldconfig
+%postun -n %{name}-%{sover} -p /sbin/ldconfig
 
-%files -n %{soname}
+%files -n %{name}-%{sover}
 %license COPYING
-%{_libdir}/lib*.so.*
+%{_libdir}/lib*.so.%{sover}{,.*}
 
 %files devel
 %license COPYING

++++++ libosip2-5.2.1.tar.gz -> libosip2-5.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/ChangeLog new/libosip2-5.3.0/ChangeLog
--- old/libosip2-5.2.1/ChangeLog        2021-05-25 11:51:04.000000000 +0200
+++ new/libosip2-5.3.0/ChangeLog        2021-11-22 16:14:49.000000000 +0100
@@ -1,3 +1,11 @@
+libosip2 (5.3.0) - 2021-11-22
+        * STRUCTURE change: struct osip_transaction
+
+       * CHANGE: if out_socket contains -999 and timer_b or timer_f fires, the 
transaction will report a transport-error
+
+        * improve TIMER_E to avoid high interval after DNS or socket events
+       * when port number starts with 0, just put 0 and discard other char [no 
op in practice]
+
 libosip2 (5.2.1) - 2021-05-25
        * fix compilation warning on ANDROID
        * add OSIP_RETRY_LIMIT which may be useful to exosip
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/configure new/libosip2-5.3.0/configure
--- old/libosip2-5.2.1/configure        2021-05-25 12:01:40.000000000 +0200
+++ new/libosip2-5.3.0/configure        2021-11-22 16:15:03.000000000 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libosip2 5.2.1.
+# Generated by GNU Autoconf 2.69 for libosip2 5.3.0.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@
 # Identity of this package.
 PACKAGE_NAME='libosip2'
 PACKAGE_TARNAME='libosip2'
-PACKAGE_VERSION='5.2.1'
-PACKAGE_STRING='libosip2 5.2.1'
+PACKAGE_VERSION='5.3.0'
+PACKAGE_STRING='libosip2 5.3.0'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1350,7 +1350,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libosip2 5.2.1 to adapt to many kinds of systems.
+\`configure' configures libosip2 5.3.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1421,7 +1421,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libosip2 5.2.1:";;
+     short | recursive ) echo "Configuration of libosip2 5.3.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1547,7 +1547,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libosip2 configure 5.2.1
+libosip2 configure 5.3.0
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1966,7 +1966,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libosip2 $as_me 5.2.1, which was
+It was created by libosip2 $as_me 5.3.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2325,7 +2325,7 @@
 # 1/ increase revision for every source code change [release]
 # 2/ increase current for every API/ABI change and revert revision to 0
 # 3/ always set age to 0 (for public release)
-LIBOSIP_SO_VERSION=14:1:0
+LIBOSIP_SO_VERSION=15:0:0
 
 OSIP_VERSION=$VERSION
 
@@ -2854,7 +2854,7 @@
 
 # Define the identity of the package.
  PACKAGE='libosip2'
- VERSION='5.2.1'
+ VERSION='5.3.0'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -14304,7 +14304,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libosip2 $as_me 5.2.1, which was
+This file was extended by libosip2 $as_me 5.3.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -14370,7 +14370,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-libosip2 config.status 5.2.1
+libosip2 config.status 5.3.0
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/configure.ac 
new/libosip2-5.3.0/configure.ac
--- old/libosip2-5.2.1/configure.ac     2021-05-25 11:53:39.000000000 +0200
+++ new/libosip2-5.3.0/configure.ac     2021-11-22 16:14:49.000000000 +0100
@@ -1,5 +1,5 @@
 AC_PREREQ([2.69])
-AC_INIT([libosip2],[5.2.1])
+AC_INIT([libosip2],[5.3.0])
 AC_CONFIG_SRCDIR([include/osip2/osip.h])
 
 AC_MSG_NOTICE([libosip2                The GNU Open SIP library.])
@@ -9,7 +9,7 @@
 # 1/ increase revision for every source code change [release]
 # 2/ increase current for every API/ABI change and revert revision to 0
 # 3/ always set age to 0 (for public release)
-AC_SUBST(LIBOSIP_SO_VERSION, 14:1:0)
+AC_SUBST(LIBOSIP_SO_VERSION, 15:0:0)
 AC_SUBST(OSIP_VERSION, $VERSION)
 
 AC_MSG_RESULT([Configuring ${PACKAGE} ${VERSION}])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/help/doxygen/DoxyFile 
new/libosip2-5.3.0/help/doxygen/DoxyFile
--- old/libosip2-5.2.1/help/doxygen/DoxyFile    2021-05-25 11:56:34.000000000 
+0200
+++ new/libosip2-5.3.0/help/doxygen/DoxyFile    2021-11-22 16:14:49.000000000 
+0100
@@ -38,7 +38,7 @@
 # could be handy for archiving the generated documentation or if some version
 # control system is used.
 
-PROJECT_NUMBER         = 5.2.1
+PROJECT_NUMBER         = 5.3.0
 
 # Using the PROJECT_BRIEF tag one can provide an optional one line description
 # for a project that appears at the top of each page and should give viewer a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/include/osip2/osip.h 
new/libosip2-5.3.0/include/osip2/osip.h
--- old/libosip2-5.2.1/include/osip2/osip.h     2020-07-23 20:32:53.000000000 
+0200
+++ new/libosip2-5.3.0/include/osip2/osip.h     2021-11-22 16:14:49.000000000 
+0100
@@ -169,14 +169,15 @@
 #endif
 #ifndef DEFAULT_T1_TCP_PROGRESS
 /**
+ * [OBSOLETE]
  * You can re-define the default value for T1_TCP_PROGRESS.
  * This is a trick to use non blocking socke for reliable protocol
  * On first attempt, the connection is not ready and the next
  * osip retransmission are used to check the progress of the connection
  * in order to send the message.
- * The default value is 50ms.
+ * The default value is 500ms.
  */
-#define DEFAULT_T1_TCP_PROGRESS 50 /* 50ms */
+#define DEFAULT_T1_TCP_PROGRESS 500 /* 500ms */
 #endif
 #ifndef DEFAULT_T2
 /**
@@ -379,6 +380,8 @@
 
   time_t birth_time;     /**< birth date of transaction        */
   time_t completed_time; /**< end   date of transaction        */
+  struct timeval created_time;   /**< created time of transaction */
+  struct timeval destroyed_time; /**< destroyed time of transaction */
 
   int in_socket;  /**< Optional socket for incoming message */
   int out_socket; /**< Optional place for outgoing message */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/src/osip2/ict_fsm.c 
new/libosip2-5.3.0/src/osip2/ict_fsm.c
--- old/libosip2-5.2.1/src/osip2/ict_fsm.c      2020-07-23 20:32:53.000000000 
+0200
+++ new/libosip2-5.3.0/src/osip2/ict_fsm.c      2021-11-22 16:14:49.000000000 
+0100
@@ -153,9 +153,13 @@
   ict->ict_context->timer_b_length = -1;
   ict->ict_context->timer_b_start.tv_sec = -1;
 
-  __osip_message_callback(OSIP_ICT_STATUS_TIMEOUT, ict, evt->sip);
-  __osip_transaction_set_state(ict, ICT_TERMINATED);
-  __osip_kill_transaction_callback(OSIP_ICT_KILL_TRANSACTION, ict);
+  if (ict->out_socket == -999) {
+    ict_handle_transport_error(ict, -1);
+  } else {
+    __osip_message_callback(OSIP_ICT_STATUS_TIMEOUT, ict, evt->sip);
+    __osip_transaction_set_state(ict, ICT_TERMINATED);
+    __osip_kill_transaction_callback(OSIP_ICT_KILL_TRANSACTION, ict);
+  }
 }
 
 void ict_rcv_1xx(osip_transaction_t *ict, osip_event_t *evt) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/src/osip2/nict_fsm.c 
new/libosip2-5.3.0/src/osip2/nict_fsm.c
--- old/libosip2-5.2.1/src/osip2/nict_fsm.c     2020-07-23 20:32:53.000000000 
+0200
+++ new/libosip2-5.3.0/src/osip2/nict_fsm.c     2021-11-22 16:14:49.000000000 
+0100
@@ -132,9 +132,20 @@
 
   /* reset timer */
   if (nict->state == NICT_TRYING) {
-    if (nict->nict_context->timer_e_length < DEFAULT_T1)
-      nict->nict_context->timer_e_length = nict->nict_context->timer_e_length 
+ DEFAULT_T1_TCP_PROGRESS;
-
+    struct timeval now;
+    struct timeval duration;
+    long elapsed;
+
+    osip_gettimeofday(&now, NULL);
+    osip_timersub(&now, &nict->created_time,  &duration);
+    elapsed = duration.tv_sec * 1000 + duration.tv_usec / 1000;
+
+    if (elapsed < DEFAULT_T1)
+      nict->nict_context->timer_e_length = DEFAULT_T1;
+    else if (elapsed < 2 * DEFAULT_T1)
+      nict->nict_context->timer_e_length = 2 * DEFAULT_T1;
+    else if (elapsed < 4 * DEFAULT_T1)
+      nict->nict_context->timer_e_length = 4 * DEFAULT_T1;
     else
       nict->nict_context->timer_e_length = nict->nict_context->timer_e_length 
* 2;
 
@@ -196,9 +207,13 @@
   nict->nict_context->timer_f_length = -1;
   nict->nict_context->timer_f_start.tv_sec = -1;
 
-  __osip_message_callback(OSIP_NICT_STATUS_TIMEOUT, nict, evt->sip);
-  __osip_transaction_set_state(nict, NICT_TERMINATED);
-  __osip_kill_transaction_callback(OSIP_NICT_KILL_TRANSACTION, nict);
+  if (nict->out_socket == -999) {
+    nict_handle_transport_error(nict, -1);
+  } else {
+    __osip_message_callback(OSIP_NICT_STATUS_TIMEOUT, nict, evt->sip);
+    __osip_transaction_set_state(nict, NICT_TERMINATED);
+    __osip_kill_transaction_callback(OSIP_NICT_KILL_TRANSACTION, nict);
+  }
 }
 
 void osip_nict_timeout_k_event(osip_transaction_t *nict, osip_event_t *evt) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/src/osip2/osip.c 
new/libosip2-5.3.0/src/osip2/osip.c
--- old/libosip2-5.2.1/src/osip2/osip.c 2020-07-23 20:32:53.000000000 +0200
+++ new/libosip2-5.3.0/src/osip2/osip.c 2021-11-22 16:14:49.000000000 +0100
@@ -1663,6 +1663,7 @@
   }
 
   tr->completed_time = osip_getsystemtime(NULL);
+  osip_gettimeofday(&tr->destroyed_time, NULL);
 
   if (config->kill_callbacks[type] == NULL)
     return;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/src/osip2/osip_transaction.c 
new/libosip2-5.3.0/src/osip2/osip_transaction.c
--- old/libosip2-5.2.1/src/osip2/osip_transaction.c     2020-07-23 
20:32:53.000000000 +0200
+++ new/libosip2-5.3.0/src/osip2/osip_transaction.c     2021-11-22 
16:14:49.000000000 +0100
@@ -136,7 +136,7 @@
   memset(*transaction, 0, sizeof(osip_transaction_t));
 
   (*transaction)->birth_time = osip_getsystemtime(NULL);
-
+  osip_gettimeofday(&((*transaction)->created_time), NULL);
   osip_id_mutex_lock(osip);
   (*transaction)->transactionid = osip->transactionid++;
   osip_id_mutex_unlock(osip);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libosip2-5.2.1/src/osipparser2/sdp_message.c 
new/libosip2-5.3.0/src/osipparser2/sdp_message.c
--- old/libosip2-5.2.1/src/osipparser2/sdp_message.c    2020-12-04 
18:03:48.000000000 +0100
+++ new/libosip2-5.3.0/src/osipparser2/sdp_message.c    2021-11-22 
16:14:49.000000000 +0100
@@ -2039,7 +2039,10 @@
   tmp = __osip_sdp_append_string(string, size, tmp, "m=");
   tmp = __osip_sdp_append_string(string, size, tmp, media->m_media);
   tmp = __osip_sdp_append_string(string, size, tmp, " ");
-  tmp = __osip_sdp_append_string(string, size, tmp, media->m_port);
+  if (media->m_port[0] == '0')
+    tmp = __osip_sdp_append_string(string, size, tmp, "0");
+  else
+    tmp = __osip_sdp_append_string(string, size, tmp, media->m_port);
 
   if (media->m_number_of_port != NULL) {
     tmp = __osip_sdp_append_string(string, size, tmp, "/");

Reply via email to