[Bristuff-users] bristuff libpri fix [was: tzafrir-guest at alioth.debian.org: [Pkg-voip-commits] r5884 - in /libpri/trunk/debian: changelog patches/bristuff.dpatch]

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jun 22 10:06:30 CEST 2008


Hi

I've just commited a small bug fix to the Debian package.

It manifested mostly in loopback connections when recovering from a
physical disconnect / reconnect. The result was that layer 2 would keep
sending SABME-s and DM (Disconnect Mode) messages and would take long
time (if at all) to gain proper layer 2 connection.

----- Forwarded message from tzafrir-guest at alioth.debian.org -----

Date: Sun, 22 Jun 2008 07:55:41 -0000
To: libpri at packages.qa.debian.org, pkg-voip-commits at lists.alioth.debian.org
From: tzafrir-guest at alioth.debian.org
Subject: [Pkg-voip-commits] r5884 - in /libpri/trunk/debian: changelog
	patches/bristuff.dpatch
Reply-To: pkg-voip-maintainers at lists.alioth.debian.org,
	tzafrir-guest at alioth.debian.org

Author: tzafrir-guest
Date: Sun Jun 22 07:55:39 2008
New Revision: 5884

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5884
Log:
* libpri.dpatch: When getting a SABME/UA after sending one, don't reset 
  state.

Modified:
    libpri/trunk/debian/changelog
    libpri/trunk/debian/patches/bristuff.dpatch

Modified: libpri/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/libpri/trunk/debian/changelog?rev=5884&op=diff
==============================================================================
--- libpri/trunk/debian/changelog (original)
+++ libpri/trunk/debian/changelog Sun Jun 22 07:55:39 2008
@@ -1,3 +1,10 @@
+libpri (1.4.3-3) UNRELEASED; urgency=low
+
+  * libpri.dpatch: When getting a SABME/UA after sending one, don't reset 
+    state.
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 22 Jun 2008 10:53:55 +0300
+
 libpri (1.4.3-2) unstable; urgency=low
 
   [ Faidon Liambotis ]

Modified: libpri/trunk/debian/patches/bristuff.dpatch
URL: http://svn.debian.org/wsvn/pkg-voip/libpri/trunk/debian/patches/bristuff.dpatch?rev=5884&op=diff
==============================================================================
--- libpri/trunk/debian/patches/bristuff.dpatch (original)
+++ libpri/trunk/debian/patches/bristuff.dpatch Sun Jun 22 07:55:39 2008
@@ -3714,14 +3714,15 @@
  			return ev;
  		case 3:
  			if (h->u.m2 == 3) {
-@@ -882,17 +1747,29 @@ static pri_event *__q921_receive_qualifi
+@@ -882,17 +1747,30 @@ static pri_event *__q921_receive_qualifi
  					}
  				}
  				/* Send Unnumbered Acknowledgement */
 -				q921_send_ua(pri, h->u.p_f);
 -				return q921_dchannel_up(pri);
 +				q921_send_ua(pri, h->u.p_f, h->h.tei);
-+				return q921_dchannel_up(pri, h->h.tei);
++				if (pri->q921_state[teio] == Q921_LINK_CONNECTION_RELEASED)
++					return q921_dchannel_up(pri, h->h.tei);
  			} else if (h->u.m2 == 0) {
  					/* It's a UA */
 -				if (pri->q921_state == Q921_AWAITING_ESTABLISH) {


_______________________________________________
Pkg-voip-commits mailing list
Pkg-voip-commits at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-commits

----- End forwarded message -----

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the Bristuff-users mailing list