commit 4ec24025dd75e823c65e6406cb74834081bf3a01
Author: Brian Pepple <bpepple(a)fedoraproject.org>
Date: Mon Jan 31 18:21:33 2011 -0500
- Add patch to prevent crash when receiving a call from user's own URI.
- Remove buildroot and clean section. No longer needed.
- Update url and source url.
reject-local-user-call.patch | 17 +++++++++++++++++
telepathy-sofiasip.spec | 18 ++++++++++--------
2 files changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/reject-local-user-call.patch b/reject-local-user-call.patch
new file mode 100644
index 0000000..8f679b4
--- /dev/null
+++ b/reject-local-user-call.patch
@@ -0,0 +1,17 @@
+diff -urp telepathy-sofiasip-0.7.0.OLD/src/media-factory.c
telepathy-sofiasip-0.7.0/src/media-factory.c
+--- telepathy-sofiasip-0.7.0.OLD/src/media-factory.c 2010-11-23 11:19:48.000000000 -0500
++++ telepathy-sofiasip-0.7.0/src/media-factory.c 2011-01-31 18:14:36.565213002 -0500
+@@ -357,6 +357,13 @@ tpsip_nua_i_invite_cb (TpBaseConnection
+ DEBUG("Got incoming invite from <%s>",
+ tp_handle_inspect (contact_repo, handle));
+
++ if (handle == conn->self_handle)
++ {
++ DEBUG("cannot handle calls from self");
++ nua_respond (ev->nua_handle, 501, "Calls from self are not
supported", TAG_END());
++ return TRUE;
++ }
++
+ channel = new_media_channel (fac, handle, handle, channel_flags);
+
+ tp_handle_unref (contact_repo, handle);
diff --git a/telepathy-sofiasip.spec b/telepathy-sofiasip.spec
index 4be38ce..5f8a198 100644
--- a/telepathy-sofiasip.spec
+++ b/telepathy-sofiasip.spec
@@ -1,13 +1,13 @@
Name: telepathy-sofiasip
Version: 0.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: SIP connection manager for Telepathy
Group: Applications/Communications
License: LGPLv2+
-URL:
http://sourceforge.net/projects/tp-sofiasip
-Source0:
http://downloads.sourceforge.net/tp-sofiasip/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+URL:
http://telepathy.freedesktop.org/wiki/Components
+Source0:
http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
+Patch0: reject-local-user-call.patch
BuildRequires: dbus-devel
BuildRequires: dbus-glib-devel
@@ -27,6 +27,7 @@ framework based on the SofiaSIP-stack.
%prep
%setup -q
+%patch0 -p1 -b .rejectcall
%build
@@ -43,10 +44,6 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
%defattr(-,root,root,-)
%doc COPYING README NEWS TODO
@@ -58,6 +55,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Jan 31 2011 Brian Pepple <bpepple(a)fedoraproject.org> - 0.7.0-2
+- Add patch to prevent crash when receiving a call from user's own URI.
+- Remove buildroot and clean section. No longer needed.
+- Update url and source url.
+
* Tue Nov 23 2010 Brian Pepple <bpepple(a)fedoraproject.org> - 0.7.0-1
- Update to 0.7.0.