MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / req_outside

Function req_outside

modules/tm/uac.c:697–716  ·  view source on GitHub ↗

* Send an initial request that will start a dialog */

Source from the content-addressed store, hash-verified

695 * Send an initial request that will start a dialog
696 */
697int req_outside(str* method, str* to, str* from,
698 str* headers, str* body, dlg_t** dialog,
699 transaction_cb cb, void* cbp,release_tmcb_param release_func)
700{
701 str callid, fromtag;
702
703 if (check_params(method, to, from, dialog) < 0) goto err;
704
705 generate_callid(&callid);
706 generate_fromtag(&fromtag, &callid);
707
708 if (new_dlg_uac(&callid, &fromtag, DEFAULT_CSEQ, from, to, NULL, dialog) < 0) {
709 LM_ERR("failed to create new dialog\n");
710 goto err;
711 }
712
713 return t_uac(method, headers, body, *dialog, cb, cbp, release_func);
714err:
715 return -1;
716}
717
718
719/*

Callers

nothing calls this directly

Calls 5

check_paramsFunction · 0.85
generate_callidFunction · 0.85
generate_fromtagFunction · 0.85
new_dlg_uacFunction · 0.85
t_uacFunction · 0.85

Tested by

no test coverage detected