Commit e292319b authored by jehan's avatar jehan
Browse files

make sure only INVITE answer change dialog state

parent 98818a46
......@@ -334,7 +334,8 @@ int belle_sip_dialog_update(belle_sip_dialog_t *obj,belle_sip_transaction_t* tra
switch (obj->state){
case BELLE_SIP_DIALOG_NULL:
case BELLE_SIP_DIALOG_EARLY:
belle_sip_dialog_establish(obj,req,resp);
if (strcmp(belle_sip_request_get_method(req),"INVITE")==0)
belle_sip_dialog_establish(obj,req,resp);
break;
case BELLE_SIP_DIALOG_CONFIRMED:
code=belle_sip_response_get_status_code(resp);
......
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