summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-01-31 20:37:37 +0200
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-01-31 20:37:37 +0200
commitdf7937078faa3211a8eaae0342cd7bf297b4fc20 (patch)
treee241fb3c6416b0e88b1903ef25724d6418f15805
parent776194c93cc447aede374f011dff5b1d49b2b0ed (diff)
parentf69dc4be0e713eef64ecb65c84ded2fa357b39b9 (diff)
Merge branch 'invite-from-self'
-rw-r--r--src/media-factory.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/media-factory.c b/src/media-factory.c
index f4573c5..1e941fe 100644
--- a/src/media-factory.c
+++ b/src/media-factory.c
@@ -357,6 +357,13 @@ tpsip_nua_i_invite_cb (TpBaseConnection *conn,
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);