From 60334f9d213173554dcc8edaa7aa6309039b6c0b Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 16 Jul 2013 22:10:57 +0200 Subject: [PATCH] only repport call error for negative answer to INVITE transaction --- coreapi/bellesip_sal/sal_op_call.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coreapi/bellesip_sal/sal_op_call.c b/coreapi/bellesip_sal/sal_op_call.c index dc3489aca..af40df207 100644 --- a/coreapi/bellesip_sal/sal_op_call.c +++ b/coreapi/bellesip_sal/sal_op_call.c @@ -232,10 +232,10 @@ static void call_response_event(void *op_base, const belle_sip_response_event_t op->base.root->callbacks.call_accepted(op); /*INVITE*/ op->state=SalOpStateActive; - } else { - if (code >= 300){ - call_set_error(op,response); - } + } else if (code >= 300 && strcmp("INVITE",belle_sip_request_get_method(req))==0){ + call_set_error(op,response); + } else { + /*ignoring*/ } break; case SalOpStateTerminating: