[OpenSIPS-Users] t_new_request and X-headers

Ben Newlin Ben.Newlin at genesys.com
Mon Oct 9 14:11:22 UTC 2023


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 <users-bounces at lists.opensips.org> on behalf of Mickael Hubert <mickael at winlux.fr>
Date: Monday, October 9, 2023 at 10:00 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231009/1df7c41c/attachment-0001.html>


More information about the Users mailing list