Commit f489a6e8 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_session.c: do not restart CANCEL requests

Ignore-this: 2c9d51bbafca2256630a0ea73982abea

Fixes FreesWitch bug SFSIP-134, reported by vile, initial patch by Mike
Jerris.

darcs-hash:20090408213743-db55f-6c7d2e89aba8c87815a7cfc7702aeaff20a3037c.gz
parent 122b3092
......@@ -1436,6 +1436,10 @@ static int nua_invite_client_complete(nua_client_request_t *cr)
static int nua_cancel_client_request(nua_client_request_t *cr,
msg_t *msg, sip_t *sip,
tagi_t const *tags);
static int nua_cancel_client_check_restart(nua_client_request_t *cr,
int status,
char const *phrase,
sip_t const *sip);
nua_client_methods_t const nua_cancel_client_methods = {
SIP_METHOD_CANCEL, /* crm_method, crm_method_name */
......@@ -1447,8 +1451,8 @@ nua_client_methods_t const nua_cancel_client_methods = {
},
NULL, /* crm_template */
NULL, /* crm_init */
nua_cancel_client_request, /* crm_send */
NULL, /* crm_check_restart */
nua_cancel_client_request, /* .. not really crm_send */
nua_cancel_client_check_restart, /* crm_check_restart */
NULL, /* crm_recv */
NULL, /* crm_preliminary */
NULL, /* crm_report */
......@@ -1488,6 +1492,16 @@ static int nua_cancel_client_request(nua_client_request_t *cr,
return 0;
}
static int
nua_cancel_client_check_restart(nua_client_request_t *cr,
int status,
char const *phrase,
sip_t const *sip)
{
/* We cannot really restart CANCEL */
return 0;
}
/** @NUA_EVENT nua_r_cancel
*
* Answer to outgoing CANCEL.
......
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