mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
answer 481 in case of CANCEL received for an establshed dialog
This commit is contained in:
parent
5fb5c55eb0
commit
e316b02b88
2 changed files with 7 additions and 2 deletions
|
|
@ -475,6 +475,11 @@ static void process_request_event(void *op_base, const belle_sip_request_event_t
|
|||
} else if (strcmp("OPTIONS",belle_sip_request_get_method(req))==0) {
|
||||
resp=sal_op_create_response_from_request(op,req,200);
|
||||
belle_sip_server_transaction_send_response(server_transaction,resp);
|
||||
} else if (strcmp("CANCEL",belle_sip_request_get_method(req))==0) {
|
||||
/*call leg does not exist because 200ok already sent*/
|
||||
belle_sip_server_transaction_send_response( server_transaction
|
||||
,sal_op_create_response_from_request(op,req,481));
|
||||
|
||||
} else{
|
||||
ms_error("unexpected method [%s] for dialog [%p]",belle_sip_request_get_method(req),op->dialog);
|
||||
unsupported_method(server_transaction,req);
|
||||
|
|
|
|||
|
|
@ -235,8 +235,8 @@ static void call_with_presence(void) {
|
|||
CU_ASSERT_TRUE(subscribe_to_callee_presence(pauline,marie));
|
||||
|
||||
CU_ASSERT_TRUE(call(marie,pauline));
|
||||
CU_ASSERT_EQUAL(marie->stat.number_of_LinphonePresenceActivityOnThePhone,1);
|
||||
CU_ASSERT_EQUAL(pauline->stat.number_of_LinphonePresenceActivityOnThePhone,1);
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&marie->stat.number_of_LinphonePresenceActivityOnThePhone,1));
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&pauline->stat.number_of_LinphonePresenceActivityOnThePhone,1));
|
||||
|
||||
reset_counters(&marie->stat);
|
||||
reset_counters(&pauline->stat);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue