* Send an initial request that will start a dialog */
| 695 | * Send an initial request that will start a dialog |
| 696 | */ |
| 697 | int 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); |
| 714 | err: |
| 715 | return -1; |
| 716 | } |
| 717 | |
| 718 | |
| 719 | /* |
nothing calls this directly
no test coverage detected