Mickael, There are a few functions provided by the dialog module that allow you to get values from a dialog that isn’t already loaded, depending on where is the information you need. I recommend load_dialog_ctx as it is the easiest to use.
https://opensips.org/docs/modules/3.2.x/dialog.html#func_get_dialog_info https://opensips.org/docs/modules/3.2.x/dialog.html#func_get_dialog_vals https://opensips.org/docs/modules/3.2.x/dialog.html#func_get_dialog_by_val https://opensips.org/docs/modules/3.2.x/dialog.html#func_get_dialog_by_profile https://opensips.org/docs/modules/3.2.x/dialog.html#func_load_dialog_ctx Ben Newlin From: Users <[email protected]> on behalf of Mickael Hubert <[email protected]> Date: Monday, October 9, 2023 at 10:00 AM To: OpenSIPS users mailling list <[email protected]> Subject: [OpenSIPS-Users] t_new_request and X-headers EXTERNAL EMAIL - Please use caution with links and attachments ________________________________ Hi all, I need to send an INFO message with X-headers from other dialog. I use t_new_request to send my request (apart from first dialog): OK I use local_route to add fixed X-header: OK But I want to copy some information from the first dialog to the new dialog (created by t_new_request). How can I do that please ? Thanks in advance
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
