Debian Codegraph @

res/res_pjsip_stir_shaken.c

raw symbols SCIP
1 /*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2020, Sangoma Technologies Corporation
5 *
6 * Ben Ford <[email protected]>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19 /*** MODULEINFO
20 <depend>pjproject</depend>
21 <depend>res_pjsip</depend>
22 <depend>res_pjsip_session</depend>
23 <depend>res_stir_shaken</depend>
24 <support_level>core</support_level>
25 ***/
26
27 #include "asterisk.h"
28
29 #define _TRACE_PREFIX_ "pjss",__LINE__, ""
30
31 #include "asterisk/callerid.h"
32 #include "asterisk/res_pjsip.h"
33 #include "asterisk/res_pjsip_session.h"
34 #include "asterisk/module.h"
35 #include "asterisk/rtp_engine.h"
36 #include "asterisk/datastore.h"
37
38 #include "res_stir_shaken/stir_shaken.h"
39
40 static const pj_str_t identity_hdr_str = { "Identity", 8 };
41 static const pj_str_t date_hdr_str = { "Date", 4 };
42
43 /* Response codes from RFC8224 */
44 enum sip_response_code {
45 SIP_RESPONSE_CODE_OK = 200,
46 SIP_RESPONSE_CODE_STALE_DATE = 403,
47 SIP_RESPONSE_CODE_USE_IDENTITY_HEADER = 428,
48 SIP_RESPONSE_CODE_ANONYMITY_DISALLOWED = 433,
49 SIP_RESPONSE_CODE_BAD_IDENTITY_INFO = 436,
50 SIP_RESPONSE_CODE_UNSUPPORTED_CREDENTIAL = 437,
51 SIP_RESPONSE_CODE_INVALID_IDENTITY_HEADER = 438,
52 SIP_RESPONSE_CODE_INTERNAL_ERROR = 500,
53 };
54
55 #define SIP_RESPONSE_CODE_OK_STR "OK"
56 /* Response strings from RFC8224 */
57 #define SIP_RESPONSE_CODE_STALE_DATE_STR "Stale Date"
58 #define SIP_RESPONSE_CODE_USE_IDENTITY_HEADER_STR "Use Identity Header"
59 #define SIP_RESPONSE_CODE_ANONYMITY_DISALLOWED_STR "Anonymity Disallowed"
60 #define SIP_RESPONSE_CODE_BAD_IDENTITY_INFO_STR "Bad Identity Info"
61 #define SIP_RESPONSE_CODE_UNSUPPORTED_CREDENTIAL_STR "Unsupported Credential"
62 #define SIP_RESPONSE_CODE_INVALID_IDENTITY_HEADER_STR "Invalid Identity Header"
63 #define SIP_RESPONSE_CODE_INTERNAL_ERROR_STR "Internal Error"
64
65 #define response_to_str(_code) \
66 case _code: \
67 return _code ## _STR;
68
69 static const char *sip_response_code_to_str(enum sip_response_code code)
70 {
71 switch (code) {
72 response_to_str(SIP_RESPONSE_CODE_OK)
73 response_to_str(SIP_RESPONSE_CODE_STALE_DATE)
74 response_to_str(SIP_RESPONSE_CODE_USE_IDENTITY_HEADER)
75 response_to_str(SIP_RESPONSE_CODE_ANONYMITY_DISALLOWED)
76 response_to_str(SIP_RESPONSE_CODE_BAD_IDENTITY_INFO)
77 response_to_str(SIP_RESPONSE_CODE_UNSUPPORTED_CREDENTIAL)
78 response_to_str(SIP_RESPONSE_CODE_INVALID_IDENTITY_HEADER)
79 default:
80 break;
81 }
82 return "";
83 }
84
85 #define translate_code(_vs_rc, _sip_rc) \
86 case AST_STIR_SHAKEN_VS_ ## _vs_rc: \
87 return SIP_RESPONSE_CODE_ ## _sip_rc;
88
89 static enum sip_response_code vs_code_to_sip_code(
90 enum ast_stir_shaken_vs_response_code vs_rc)
91 {
92 /*
93 * We want to use a switch/case statement here because
94 * it'll spit out an error if VS codes are added to the
95 * enum but aren't present here.
96 */
97 switch (vs_rc) {
98 translate_code(SUCCESS, OK)
99 translate_code(DISABLED, OK)
100 translate_code(INVALID_ARGUMENTS, INTERNAL_ERROR)
101 translate_code(INTERNAL_ERROR, INTERNAL_ERROR)
102 translate_code(NO_IDENTITY_HDR, USE_IDENTITY_HEADER)
103 translate_code(NO_DATE_HDR, STALE_DATE)
104 translate_code(DATE_HDR_PARSE_FAILURE, STALE_DATE)
105 translate_code(DATE_HDR_EXPIRED, STALE_DATE)
106 translate_code(NO_JWT_HDR, INVALID_IDENTITY_HEADER)
107 translate_code(INVALID_OR_NO_X5U, INVALID_IDENTITY_HEADER)
108 translate_code(CERT_CACHE_MISS, INVALID_IDENTITY_HEADER)
109 translate_code(CERT_CACHE_INVALID, INVALID_IDENTITY_HEADER)
110 translate_code(CERT_CACHE_EXPIRED, INVALID_IDENTITY_HEADER)
111 translate_code(CERT_RETRIEVAL_FAILURE, BAD_IDENTITY_INFO)
112 translate_code(CERT_CONTENTS_INVALID, UNSUPPORTED_CREDENTIAL)
113 translate_code(CERT_NOT_TRUSTED, UNSUPPORTED_CREDENTIAL)
114 translate_code(CERT_DATE_INVALID, UNSUPPORTED_CREDENTIAL)
115 translate_code(CERT_NO_TN_AUTH_EXT, UNSUPPORTED_CREDENTIAL)
116 translate_code(CERT_NO_SPC_IN_TN_AUTH_EXT, UNSUPPORTED_CREDENTIAL)
117 translate_code(NO_RAW_KEY, UNSUPPORTED_CREDENTIAL)
118 translate_code(SIGNATURE_VALIDATION, INVALID_IDENTITY_HEADER)
119 translate_code(NO_IAT, INVALID_IDENTITY_HEADER)
120 translate_code(IAT_EXPIRED, STALE_DATE)
121 translate_code(INVALID_OR_NO_PPT, INVALID_IDENTITY_HEADER)
122 translate_code(INVALID_OR_NO_ALG, INVALID_IDENTITY_HEADER)
123 translate_code(INVALID_OR_NO_TYP, INVALID_IDENTITY_HEADER)
124 translate_code(INVALID_OR_NO_ATTEST, INVALID_IDENTITY_HEADER)
125 translate_code(NO_ORIGID, INVALID_IDENTITY_HEADER)
126 translate_code(NO_ORIG_TN, INVALID_IDENTITY_HEADER)
127 translate_code(NO_DEST_TN, INVALID_IDENTITY_HEADER)
128 translate_code(INVALID_HEADER, INVALID_IDENTITY_HEADER)
129 translate_code(INVALID_GRANT, INVALID_IDENTITY_HEADER)
130 translate_code(INVALID_OR_NO_GRANTS, INVALID_IDENTITY_HEADER)
131 translate_code(CID_ORIG_TN_MISMATCH, INVALID_IDENTITY_HEADER)
132 translate_code(INVALID_OR_NO_CID, ANONYMITY_DISALLOWED)
133 translate_code(RESPONSE_CODE_MAX, INVALID_IDENTITY_HEADER)
134 }
135
136 return 500;
137 }
138
139 enum process_failure_rc {
140 PROCESS_FAILURE_CONTINUE = 0,
141 PROCESS_FAILURE_REJECT,
142 PROCESS_FAILURE_SYSTEM_FAILURE,
143 };
144
145 static void reject_incoming_call(struct ast_sip_session *session,
146 enum sip_response_code response_code)
147 {
148 ast_sip_session_terminate(session, response_code);
149 ast_hangup(session->channel);
150 }
151
152 static enum process_failure_rc process_failure(struct ast_stir_shaken_vs_ctx *ctx,
153 const char *caller_id, struct ast_sip_session *session,
154 pjsip_rx_data *rdata, enum ast_stir_shaken_vs_response_code vs_rc)
155 {
156 enum sip_response_code response_code = vs_code_to_sip_code(vs_rc);
157 pj_str_t response_str;
158 const char *response_string =
159 sip_response_code_to_str(response_code);
160 enum stir_shaken_failure_action_enum failure_action =
161 ast_stir_shaken_vs_get_failure_action(ctx);
162 const char *tag = ast_sip_session_get_name(session);
163 SCOPE_ENTER(1, "%s: FA: %d RC: %d\n", tag,
164 failure_action, response_code);
165
166 pj_cstr(&response_str, response_string);
167
168 if (failure_action == stir_shaken_failure_action_REJECT_REQUEST) {
169 reject_incoming_call(session, response_code);
170 SCOPE_EXIT_RTN_VALUE(PROCESS_FAILURE_REJECT,
171 "%s: Rejecting request and terminating session\n",
172 tag);
173 }
174
175 ast_stir_shaken_vs_ctx_set_response_code(ctx, vs_rc);
176 ast_stir_shaken_add_result_to_channel(ctx);
177
178 if (failure_action == stir_shaken_failure_action_CONTINUE_RETURN_REASON) {
179 int rc = ast_sip_session_add_reason_header(session,
180 ast_stir_shaken_vs_get_use_rfc9410_responses(ctx) ? "STIR" : "SIP",
181 response_code, response_str.ptr);
182 if (rc != 0) {
183 SCOPE_EXIT_RTN_VALUE(PROCESS_FAILURE_SYSTEM_FAILURE,
184 "%s: Failed to add Reason header\n", tag);
185 }
186 SCOPE_EXIT_RTN_VALUE(PROCESS_FAILURE_CONTINUE,
187 "%s: Attaching reason code to session\n", tag);
188 }
189 SCOPE_EXIT_RTN_VALUE(PROCESS_FAILURE_CONTINUE,
190 "%s: Continuing\n", tag);
191 }
192
193 /*!
194 * \internal
195 * \brief Session supplement callback on an incoming INVITE request
196 *
197 * When we receive an INVITE, check it for STIR/SHAKEN information and
198 * decide what to do from there
199 *
200 * \param session The session that has received an INVITE
201 * \param rdata The incoming INVITE
202 */
203 static int stir_shaken_incoming_request(struct ast_sip_session *session, pjsip_rx_data *rdata)
204 {
205 RAII_VAR(struct ast_stir_shaken_vs_ctx *, ctx, NULL, ao2_cleanup);
206 RAII_VAR(char *, header, NULL, ast_free);
207 RAII_VAR(char *, payload, NULL, ast_free);
208 char *identity_hdr_val;
209 char *date_hdr_val;
210 char *caller_id = session->id.number.str;
211 const char *session_name = ast_sip_session_get_name(session);
212 struct ast_channel *chan = session->channel;
213 enum ast_stir_shaken_vs_response_code vs_rc;
214 enum process_failure_rc p_rc;
215 SCOPE_ENTER(1, "%s: Enter\n", session_name);
216
217 if (!session) {
218 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "No session\n");
219 }
220 if (!session->channel) {
221 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: No channel\n", session_name);
222 }
223 if (!rdata) {
224 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: No rdata\n", session_name);
225 }
226
227 /* Check if this is a reinvite. If it is, we don't need to do anything */
228 if (rdata->msg_info.to->tag.slen) {
229 SCOPE_EXIT_RTN_VALUE(0, "%s: Reinvite. No action needed\n", session_name);
230 }
231
232 /*
233 * Shortcut: If there's no profile name just bail now.
234 */
235 if (ast_strlen_zero(session->endpoint->stir_shaken_profile)) {
236 SCOPE_EXIT_RTN_VALUE(0, "%s: No profile name on endpoint. No action needed\n", session_name);
237 }
238
239 vs_rc = ast_stir_shaken_vs_ctx_create(caller_id, chan,
240 session->endpoint->stir_shaken_profile,
241 session_name, &ctx);
242 if (vs_rc == AST_STIR_SHAKEN_VS_DISABLED) {
243 SCOPE_EXIT_RTN_VALUE(0, "%s: VS Disabled\n", session_name);
244 } else if (vs_rc != AST_STIR_SHAKEN_VS_SUCCESS) {
245 reject_incoming_call(session, 500);
246 SCOPE_EXIT_RTN_VALUE(1, "%s: Unable to create context. Call terminated\n",
247 session_name);
248 }
249
250 if (ast_strlen_zero(ast_stir_shaken_vs_get_caller_id(ctx))) {
251 p_rc = process_failure(ctx, caller_id, session, rdata,
252 AST_STIR_SHAKEN_VS_INVALID_OR_NO_CID);
253 if (p_rc == PROCESS_FAILURE_CONTINUE) {
254 SCOPE_EXIT_RTN_VALUE(0, "%s: Invalid or no callerid found. Call continuing\n",
255 session_name);
256 }
257 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: Invalid or no callerid found. Call terminated\n",
258 session_name);
259 }
260
261 identity_hdr_val = ast_sip_rdata_get_header_value(rdata, identity_hdr_str);
262 if (ast_strlen_zero(identity_hdr_val)) {
263 p_rc = process_failure(ctx, caller_id, session, rdata,
264 AST_STIR_SHAKEN_VS_NO_IDENTITY_HDR);
265 if (p_rc == PROCESS_FAILURE_CONTINUE) {
266 SCOPE_EXIT_RTN_VALUE(0, "%s: No Identity header found. Call continuing\n",
267 session_name);
268 }
269 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: No Identity header found. Call terminated\n",
270 session_name);
271 }
272
273 vs_rc = ast_stir_shaken_vs_ctx_add_identity_hdr(ctx, identity_hdr_val);
274 if (vs_rc != AST_STIR_SHAKEN_VS_SUCCESS) {
275 reject_incoming_call(session, 500);
276 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: Unable to add Identity header. Call terminated.\n",
277 session_name);
278 }
279
280 date_hdr_val = ast_sip_rdata_get_header_value(rdata, date_hdr_str);
281 if (!ast_strlen_zero(date_hdr_val)) {
282 vs_rc = ast_stir_shaken_vs_ctx_add_date_hdr(ctx, date_hdr_val);
283 if (vs_rc != AST_STIR_SHAKEN_VS_SUCCESS) {
284 reject_incoming_call(session, 500);
285 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: Unable to add Date header. Call terminated.\n",
286 session_name);
287 }
288 }
289
290 vs_rc = ast_stir_shaken_vs_verify(ctx);
291 if (vs_rc != AST_STIR_SHAKEN_VS_SUCCESS) {
292 p_rc = process_failure(ctx, caller_id, session, rdata, vs_rc);
293 if (p_rc == PROCESS_FAILURE_CONTINUE) {
294 SCOPE_EXIT_RTN_VALUE(0, "%s: Verification failed. Call continuing\n",
295 session_name);
296 }
297 SCOPE_EXIT_LOG_RTN_VALUE(1, LOG_ERROR, "%s: Verification failed. Call terminated\n",
298 session_name);
299
300 }
301
302 ast_stir_shaken_add_result_to_channel(ctx);
303
304 SCOPE_EXIT_RTN_VALUE(0, "Passed\n");
305 }
306
307 static void add_fingerprints_if_present(struct ast_sip_session *session,
308 struct ast_stir_shaken_as_ctx *ctx)
309 {
310 struct ast_sip_session_media_state *ms = session->pending_media_state;
311 struct ast_sip_session_media *m = NULL;
312 struct ast_rtp_engine_dtls *d = NULL;
313 enum ast_rtp_dtls_hash h;
314 int i;
315 const char *tag = ast_sip_session_get_name(session);
316 size_t count = AST_VECTOR_SIZE(&ms->sessions);
317 SCOPE_ENTER(4, "%s: Check %zu media sessions for fingerprints\n",
318 tag, count);
319
320 if (!ast_stir_shaken_as_ctx_wants_fingerprints(ctx)) {
321 SCOPE_EXIT_RTN("%s: Fingerprints not needed\n", tag);
322 }
323
324 for (i = 0; i < count; i++) {
325 const char *f;
326
327 m = AST_VECTOR_GET(&ms->sessions, i);
328 if (!m|| !m->rtp) {
329 ast_trace(1, "Session: %d: No session or rtp instance\n", i);
330 continue;
331 }
332 d = ast_rtp_instance_get_dtls(m->rtp);
333 h = d->get_fingerprint_hash(m->rtp);
334 f = d->get_fingerprint(m->rtp);
335
336 ast_stir_shaken_as_ctx_add_fingerprint(ctx,
337 h == AST_RTP_DTLS_HASH_SHA256 ? "sha-256" : "sha-1", f);
338 }
339 SCOPE_EXIT_RTN("%s: Done\n", tag);
340 }
341
342 static char *get_dest_tn(pjsip_tx_data *tdata, const char *tag)
343 {
344 pjsip_fromto_hdr *to;
345 pjsip_sip_uri *uri;
346 char *dest_tn = NULL;
347 SCOPE_ENTER(4, "%s: Enter\n", tag);
348
349 to = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_TO, NULL);
350 if (!to) {
351 SCOPE_EXIT_RTN_VALUE(NULL, "%s: Failed to find To header\n", tag);
352 }
353
354 uri = pjsip_uri_get_uri(to->uri);
355 if (!uri) {
356 SCOPE_EXIT_RTN_VALUE(NULL,
357 "%s: Failed to retrieve URI from To header\n", tag);
358 }
359
360 dest_tn = ast_malloc(uri->user.slen + 1);
361 if (!dest_tn) {
362 SCOPE_EXIT_RTN_VALUE(NULL,
363 "%s: Failed to allocate memory for dest_tn\n", tag);
364 }
365
366 ast_copy_pj_str(dest_tn, &uri->user, uri->user.slen + 1);
367
368 SCOPE_EXIT_RTN_VALUE(dest_tn, "%s: Done\n", tag);
369 }
370
371 static void add_date_header(const struct ast_sip_session *session, pjsip_tx_data *tdata)
372 {
373 pjsip_fromto_hdr *old_date;
374 const char *session_name = ast_sip_session_get_name(session);
375 SCOPE_ENTER(1, "%s: Enter\n", session_name);
376
377 old_date = pjsip_msg_find_hdr_by_name(tdata->msg, &date_hdr_str, NULL);
378 if (old_date) {
379 SCOPE_EXIT_RTN("Found existing Date header, no need to add one\n");
380 }
381
382 ast_sip_add_date_header(tdata);
383 SCOPE_EXIT_RTN("Done\n");
384 }
385
386 static void stir_shaken_outgoing_request(struct ast_sip_session *session,
387 pjsip_tx_data *tdata)
388 {
389 struct ast_party_id effective_id;
390 struct ast_party_id connected_id;
391 pjsip_generic_string_hdr *old_identity;
392 pjsip_generic_string_hdr *identity_hdr;
393 pj_str_t identity_val;
394 char *dest_tn;
395 char *identity_str;
396 struct ast_stir_shaken_as_ctx *ctx = NULL;
397 enum ast_stir_shaken_as_response_code as_rc;
398 const char *session_name = ast_sip_session_get_name(session);
399 struct stir_shaken_attestation_ds *attestation_ds;
400
401 SCOPE_ENTER(1, "%s: Enter\n", session_name);
402
403 if (!session) {
404 SCOPE_EXIT_LOG_RTN(LOG_ERROR, "No session\n");
405 }
406 if (!session->channel) {
407 SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: No channel\n", session_name);
408 }
409 if (!tdata) {
410 SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: No tdata\n", session_name);
411 }
412
413 ast_channel_lock(session->channel);
414 attestation_ds = ast_stir_shaken_get_attestation_datastore(session->channel);
415 if (attestation_ds && attestation_ds->suppress) {
416 ast_channel_unlock(session->channel);
417 SCOPE_EXIT_RTN("Attestation suppressed by dialplan\n");
418 }
419 ast_channel_unlock(session->channel);
420
421 old_identity = pjsip_msg_find_hdr_by_name(tdata->msg, &identity_hdr_str, NULL);
422 if (old_identity) {
423 SCOPE_EXIT_RTN("Found an existing Identity header\n");
424 }
425
426 dest_tn = get_dest_tn(tdata, session_name);
427 if (!dest_tn) {
428 SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: Unable to find destination tn\n",
429 session_name);
430 }
431
432 ast_party_id_init(&connected_id);
433 ast_channel_lock(session->channel);
434 effective_id = ast_channel_connected_effective_id(session->channel);
435 ast_party_id_copy(&connected_id, &effective_id);
436 ast_channel_unlock(session->channel);
437
438 if (!ast_sip_can_present_connected_id(session, &connected_id)) {
439 ast_free(dest_tn);
440 ast_party_id_free(&connected_id);
441 SCOPE_EXIT_RTN("Unable to get caller id\n");
442 }
443
444 as_rc = ast_stir_shaken_as_ctx_create(connected_id.number.str,
445 dest_tn, session->channel,
446 session->endpoint->stir_shaken_profile,
447 session_name, &ctx);
448
449 ast_free(dest_tn);
450 ast_party_id_free(&connected_id);
451
452 if (as_rc == AST_STIR_SHAKEN_AS_DISABLED) {
453 SCOPE_EXIT_RTN("%s: AS Disabled\n", session_name);
454 } else if (as_rc != AST_STIR_SHAKEN_AS_SUCCESS) {
455 SCOPE_EXIT_RTN("%s: Unable to create context\n",
456 session_name);
457 }
458
459 add_date_header(session, tdata);
460 add_fingerprints_if_present(session, ctx);
461
462 as_rc = ast_stir_shaken_attest(ctx, &identity_str);
463 if (as_rc != AST_STIR_SHAKEN_AS_SUCCESS) {
464 ao2_cleanup(ctx);
465 SCOPE_EXIT_LOG(LOG_ERROR,
466 "%s: Failed to create attestation\n", session_name);
467 }
468
469 ast_trace(1, "%s: Identity header: %s\n", session_name, identity_str);
470 identity_val = pj_str(identity_str);
471 identity_hdr = pjsip_generic_string_hdr_create(tdata->pool, &identity_hdr_str, &identity_val);
472 ast_free(identity_str);
473 if (!identity_hdr) {
474 ao2_cleanup(ctx);
475 SCOPE_EXIT_LOG_RTN(LOG_ERROR,
476 "%s: Unable to create Identity header\n", session_name);
477 }
478
479 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr *)identity_hdr);
480
481 ao2_cleanup(ctx);
482 SCOPE_EXIT_RTN("Done\n");
483 }
484
485 static struct ast_sip_session_supplement stir_shaken_supplement = {
486 .method = "INVITE",
487 .priority = AST_SIP_SUPPLEMENT_PRIORITY_CHANNEL + 1, /* Run AFTER channel creation */
488 .incoming_request = stir_shaken_incoming_request,
489 .outgoing_request = stir_shaken_outgoing_request,
490 };
491
492 static int unload_module(void)
493 {
494 ast_sip_session_unregister_supplement(&stir_shaken_supplement);
495 return 0;
496 }
497
498 static int load_module(void)
499 {
500 ast_sip_session_register_supplement(&stir_shaken_supplement);
501 return AST_MODULE_LOAD_SUCCESS;
502 }
503
504 #undef AST_BUILDOPT_SUM
505 #define AST_BUILDOPT_SUM ""
506
507 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "PJSIP STIR/SHAKEN Module for Asterisk",
508 .support_level = AST_MODULE_SUPPORT_CORE,
509 .load = load_module,
510 .unload = unload_module,
511 .load_pri = AST_MODPRI_DEFAULT,
512 .requires = "res_pjsip,res_pjsip_session,res_stir_shaken",
513 );