Skip to content

Commit

Permalink
dialog: indicate the leg to send the request to
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Mar 6, 2020
1 parent 337d4ef commit 8447abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/dialog/dlg_handlers.h
Expand Up @@ -129,9 +129,9 @@ typedef int (*terminate_dlg_f)(str *callid, unsigned int h_entry, unsigned int h

typedef int (*indialog_reply_f) (struct sip_msg *msg, int statuscode, void *param);
typedef int (*send_indialog_req_f)(struct dlg_cell *dlg, str *method,
int caller, str *body, str *ct, indialog_reply_f func, void *param);
int leg, str *body, str *ct, indialog_reply_f func, void *param);
int send_indialog_request(struct dlg_cell *dlg, str *method,
int caller, str *body, str *ct, indialog_reply_f func, void *param);
int leg, str *body, str *ct, indialog_reply_f func, void *param);

void unreference_dialog(void *dialog);

Expand Down
4 changes: 1 addition & 3 deletions modules/dialog/dlg_req_within.c
Expand Up @@ -1052,13 +1052,11 @@ static void dlg_indialog_reply(struct cell* t, int type, struct tmcb_params* ps)
}

int send_indialog_request(struct dlg_cell *dlg, str *method,
int caller, str *body, str *ct, indialog_reply_f func, void *param)
int dstleg, str *body, str *ct, indialog_reply_f func, void *param)
{
int dstleg;
str extra_headers;
struct dlg_indialog_req_param *p;

dstleg = (caller?DLG_CALLER_LEG:callee_idx(dlg));
if (!dlg_get_leg_hdrs(dlg, other_leg(dlg, dstleg), dstleg, ct, &extra_headers)) {
LM_ERR("could not build extra headers!\n");
return -1;
Expand Down

0 comments on commit 8447abc

Please sign in to comment.