[Pkg-voip-commits] r6880 - in /yxa/trunk/debian: changelog patches/00list patches/loop_fix_orig_uri.dpatch
mikma-guest at alioth.debian.org
mikma-guest at alioth.debian.org
Wed Mar 18 19:31:35 UTC 2009
Author: mikma-guest
Date: Wed Mar 18 19:31:35 2009
New Revision: 6880
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6880
Log:
Fixed loop detection.
Added:
yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch (with props)
Modified:
yxa/trunk/debian/changelog
yxa/trunk/debian/patches/00list
Modified: yxa/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/yxa/trunk/debian/changelog?rev=6880&op=diff
==============================================================================
--- yxa/trunk/debian/changelog (original)
+++ yxa/trunk/debian/changelog Wed Mar 18 19:31:35 2009
@@ -12,5 +12,6 @@
* Fix bug in presence update.
* Updated to policy version 3.7.3. No changes required.
* Fixed lintian warning: debian-rules-ignores-make-clean-error.
+ * Fixed loop detection.
-- Mikael Magnusson <mikma at users.sourceforge.net> Sat, 29 Mar 2008 21:03:52 +0100
Modified: yxa/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-voip/yxa/trunk/debian/patches/00list?rev=6880&op=diff
==============================================================================
--- yxa/trunk/debian/patches/00list (original)
+++ yxa/trunk/debian/patches/00list Wed Mar 18 19:31:35 2009
@@ -12,3 +12,4 @@
ipv6_v6only
init_start
presence_update
+loop_fix_orig_uri
Added: yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch
URL: http://svn.debian.org/wsvn/pkg-voip/yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch?rev=6880&op=file
==============================================================================
--- yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch (added)
+++ yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch Wed Mar 18 19:31:35 2009
@@ -1,0 +1,41 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## loop_fix_orig_uri.dpatch by <mikma at users.sourceforge.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix orig URI used for loop detection in
+## DP: transportlayer:send_proxy_request/4.
+
+ at DPATCH@
+diff -urNad yxa-1.0+20080221svn~/src/sippipe.erl yxa-1.0+20080221svn/src/sippipe.erl
+--- yxa-1.0+20080221svn~/src/sippipe.erl 2008-02-20 09:39:12.000000000 +0100
++++ yxa-1.0+20080221svn/src/sippipe.erl 2009-03-15 11:47:44.000000000 +0100
+@@ -124,7 +124,7 @@
+ transactionlayer:send_response_handler(ServerHandler, 500, "Destination unreachable"),
+ error;
+ [FirstDst | _] = DstList when is_record(FirstDst, sipdst) ->
+- NewRequest = Request#request{uri = FirstDst#sipdst.uri},
++ NewRequest = Request,
+ case local:start_client_transaction(NewRequest, FirstDst, Branch, Timeout) of
+ BranchPid when is_pid(BranchPid) ->
+ final_start(Branch, ServerHandler, BranchPid, Request, DstList, Timeout, ApproxMsgSize);
+@@ -388,7 +388,7 @@
+ [FirstDst | _] = NewDstList when is_record(FirstDst, sipdst) ->
+ NewBranch = get_next_target_branch(State#state.branch),
+ Request = State#state.request,
+- NewRequest = Request#request{uri = FirstDst#sipdst.uri},
++ NewRequest = Request,
+ %% Figure out what timeout to use. To not get stuck on a single destination, we divide the
+ %% total ammount of time we have at our disposal with the number of remaining destinations
+ %% that we might try. This might not be the ideal algorithm for this, but it is better than
+diff -urNad yxa-1.0+20080221svn~/src/sipproxy.erl yxa-1.0+20080221svn/src/sipproxy.erl
+--- yxa-1.0+20080221svn~/src/sipproxy.erl 2007-10-17 16:30:33.000000000 +0200
++++ yxa-1.0+20080221svn/src/sipproxy.erl 2009-03-15 11:47:44.000000000 +0100
+@@ -404,7 +404,7 @@
+ DstList = sipdst:url_to_dstlist(DstURI, ApproxMsgSize, URI),
+
+ NewRequest =
+- Request#request{uri = URI,
++ Request#request{
+ header = NewHeader
+ },
+
Propchange: yxa/trunk/debian/patches/loop_fix_orig_uri.dpatch
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-voip-commits
mailing list