Module: sip-router
Branch: master
Commit: ae0e9eef521fa39ae306a2c64e4add61d5e8af6f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ae0e9ee…
Author: Robert Boisvert <rdboisvert(a)gmail.com>
Committer: Timo Teräs <timo.teras(a)iki.fi>
Date: Wed Nov 6 14:12:10 2013 -0500
mohqueue: remove call from queue if caller does not exist
---
modules/mohqueue/mohq_funcs.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/mohqueue/mohq_funcs.c b/modules/mohqueue/mohq_funcs.c
index fad357f..0db62bc 100644
--- a/modules/mohqueue/mohq_funcs.c
+++ b/modules/mohqueue/mohq_funcs.c
@@ -1530,8 +1530,13 @@ else
{
LM_ERR ("%sCall (%s) REFER error (%d)", pfncname,
pcall->call_from, nreply);
- pcall->call_state = CLSTA_INQUEUE;
- update_call_rec (pcall);
+ if (nreply == 481)
+ { delete_call (pcall); }
+ else
+ {
+ pcall->call_state = CLSTA_INQUEUE;
+ update_call_rec (pcall);
+ }
}
return;
}