Skip to content

Commit

Permalink
dialog: add macro for getting dlg out buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Feb 11, 2020
1 parent cd5aed3 commit 8d81eb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/dialog/dlg_hash.h
Expand Up @@ -206,6 +206,10 @@ extern int dlg_enable_stats;
#define other_leg(dlg, l) \
(l == DLG_CALLER_LEG? callee_idx(dlg): DLG_CALLER_LEG)

#define dlg_get_out_sdp(_dlg, _dst) \
((_dlg)->legs[(_dst)].out_sdp.s? \
(_dlg)->legs[(_dst)].out_sdp:(_dlg)->legs[other_leg(_dlg, _dst)].in_sdp)


#define ctx_dialog_get() \
((struct dlg_cell*)context_get_ptr(CONTEXT_GLOBAL,current_processing_ctx,ctx_dlg_idx) )
Expand Down

0 comments on commit 8d81eb0

Please sign in to comment.