mod_rayo: Commands executed against a dead call should return item-not-found

This commit is contained in:
Ben Langfeld 2013-08-06 11:03:01 -03:00 committed by Chris Rienzo
parent f53bde459b
commit 9ad14d1d33
1 changed files with 1 additions and 1 deletions

View 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;
}