Module: kamailio Branch: master Commit: de4ad807334c2b74cafec733a0029e3e2ef4996c URL: https://github.com/kamailio/kamailio/commit/de4ad807334c2b74cafec733a0029e3e...
Author: Kristian Høgh kfh@uni-tel.dk Committer: Kristian Høgh kfh@uni-tel.dk Date: 2015-12-01T15:22:54+01:00
modules/dialog: Add RR parameter on sequential requests
---
Modified: modules/dialog/dlg_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/de4ad807334c2b74cafec733a0029e3e... Patch: https://github.com/kamailio/kamailio/commit/de4ad807334c2b74cafec733a0029e3e...
---
diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c index 617502e..b14fcfd 100644 --- a/modules/dialog/dlg_handlers.c +++ b/modules/dialog/dlg_handlers.c @@ -1398,6 +1398,10 @@ void dlg_onroute(struct sip_msg* req, str *route_params, void *param)
/* within dialog request */ run_dlg_callbacks( DLGCB_REQ_WITHIN, dlg, req, NULL, dir, 0); + if (add_dlg_rr_param( req, dlg->h_entry, dlg->h_id)<0 ) { + LM_ERR("failed to add RR param\n"); + goto error; + }
if ( (event!=DLG_EVENT_REQACK) && (dlg->cbs.types)&DLGCB_RESPONSE_WITHIN ) {