From 3fc55e0eae01514e7330b633327f9027760a0cf6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 30 May 2012 15:35:04 +0000 Subject: [PATCH] we need to use the to-tag for sems --- daemon/call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 51fae81b8..6fefbf8c7 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -515,8 +515,10 @@ static void xmlrpc_kill_calls(GList *list, const char *url) { for (csl = ca->callstreams->head; csl; csl = csl->next) { cs = csl->data; + if (!cs->peers[1].tag || !*cs->peers[1].tag) + continue; xmlrpc_client_call2f(&e, c, url, "di", &r, "(ssss)", - "sbc", "postControlCmd", cs->peers[0].tag, "teardown"); + "sbc", "postControlCmd", cs->peers[1].tag, "teardown"); xmlrpc_DECREF(r); }