Skip to content

Commit

Permalink
dialog: add get_dlg_by_callid in API
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Feb 6, 2020
1 parent 05270f0 commit 7cfedb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dialog/dialog.c
Expand Up @@ -594,6 +594,8 @@ int load_dlg( struct dlg_binds *dlgb )
dlgb->dlg_ref = _ref_dlg;
dlgb->dlg_unref = unref_dlg_destroy_safe;

dlgb->get_dlg_by_callid = get_dlg_by_callid;

dlgb->get_rr_param = get_rr_param;

/* dlg context functions */
Expand Down
3 changes: 3 additions & 0 deletions modules/dialog/dlg_load.h
Expand Up @@ -35,6 +35,7 @@
#include "../../sr_module.h"

typedef struct dlg_cell *(*get_dlg_f) (void);
typedef struct dlg_cell *(*get_dlg_by_callid_f) (str *, int);
typedef int (*match_dialog_f) (struct sip_msg *msg, int _seq_match_mode);

struct dlg_binds {
Expand All @@ -60,6 +61,8 @@ struct dlg_binds {
ref_dlg_f dlg_ref;
unref_dlg_f dlg_unref;

get_dlg_by_callid_f get_dlg_by_callid;

get_rr_param_f get_rr_param;

dlg_ctx_register_int_f dlg_ctx_register_int;
Expand Down

0 comments on commit 7cfedb3

Please sign in to comment.