]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: Commands executed against a dead call should return item-not-found
authorBen Langfeld <ben@langfeld.me>
Tue, 6 Aug 2013 14:03:01 +0000 (11:03 -0300)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 6 Aug 2013 14:26:38 +0000 (10:26 -0400)
src/mod/event_handlers/mod_rayo/mod_rayo.c

index a110cdb703c65c2b57bdd60ad8eaa097a7bbade4..7baaf5f46f0718d4ab3b4b612895e4bf8dfbe3d3 100644 (file)
@@ -1424,7 +1424,7 @@ void rayo_call_send(struct rayo_actor *call, struct rayo_message *msg)
        if (!session) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s, session not found\n", RAYO_JID(call));
                if (!msg->is_reply) {
-                       RAYO_SEND_REPLY(call, msg->from_jid, iks_new_error(iq, STANZA_ERROR_SERVICE_UNAVAILABLE));
+                       RAYO_SEND_REPLY(call, msg->from_jid, iks_new_error(iq, STANZA_ERROR_ITEM_NOT_FOUND));
                }
                return;
        }