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 */
},
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 */
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.