Browse Source

mohqueue: remove call from queue if caller does not exist

Robert Boisvert 11 years ago
parent
commit
ae0e9eef52
1 changed files with 7 additions and 2 deletions
  1. 7 2
      modules/mohqueue/mohq_funcs.c

+ 7 - 2
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;
 }