Commit dbb30345 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix stupid "no response" message when call are released after errors

parent 906262c0
...@@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "private.h" #include "private.h"
#include "offeranswer.h" #include "offeranswer.h"
static bool_t call_failure(Sal *sal, eXosip_event_t *ev);
static void text_received(Sal *sal, eXosip_event_t *ev); static void text_received(Sal *sal, eXosip_event_t *ev);
void _osip_list_set_empty(osip_list_t *l, void (*freefunc)(void*)){ void _osip_list_set_empty(osip_list_t *l, void (*freefunc)(void*)){
...@@ -1085,8 +1087,9 @@ static void call_released(Sal *sal, eXosip_event_t *ev){ ...@@ -1085,8 +1087,9 @@ static void call_released(Sal *sal, eXosip_event_t *ev){
ms_warning("No op associated to this call_released()"); ms_warning("No op associated to this call_released()");
return; return;
} }
if (op->did==-1) { if (ev->response==NULL){
sal->callbacks.call_failure(op,SalErrorNoResponse,SalReasonUnknown,NULL, 487); /* no response received so far */
call_failure(sal,ev);
} }
sal->callbacks.call_released(op); sal->callbacks.call_released(op);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment