[OpenSIPS-Devel] [OpenSIPS/opensips] 32ff4e: Migrated msg branches to a more structured format
Bogdan Andrei IANCU
noreply at github.com
Mon May 19 11:59:42 UTC 2025
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 32ff4ece9e6fa8389034b6fb6c8c653f678c233e
https://github.com/OpenSIPS/opensips/commit/32ff4ece9e6fa8389034b6fb6c8c653f678c233e
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M core_cmds.c
M dset.c
M dset.h
M lib/reg/lookup.c
M modules/alias_db/alookup.c
M modules/b2b_logic/logic.c
M modules/enum/enum.c
M modules/permissions/permissions.c
M modules/tm/t_fwd.c
M modules/uac_redirect/rd_funcs.c
M pvar.c
M receive.c
M serialize.c
Log Message:
-----------
Migrated msg branches to a more structured format
This is step one to allow easier expansion and correlation with TM branches
Commit: 31092f1666f37fd1cf438b7b14d303a3cb648464
https://github.com/OpenSIPS/opensips/commit/31092f1666f37fd1cf438b7b14d303a3cb648464
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M core_cmds.c
Log Message:
-----------
New append_msg_branch() added to replace append_branch()
Commit: 3e735f09299953fdbaa8fd1f3a27491bcf0394d2
https://github.com/OpenSIPS/opensips/commit/3e735f09299953fdbaa8fd1f3a27491bcf0394d2
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-13 (Tue, 13 May 2025)
Changed paths:
M dset.c
M dset.h
M pvar.c
Log Message:
-----------
Added enhanced support for per msg branch variables
The msg branches are the branches created prior to t_relay(), with the set of destinations where the request should be parallel forked.
Available vars:
$msg.branch.uri[br_idx]
$msg.branch.duri[br_idx]
$msg.branch.path[br_idx]
$msg.branch.q[br_idx]
$msg.branch.flags[br_idx]
$msg.branch.flag(name)[br_idx]
$msg.branch.socket[br_idx]
$msg.branch.attr(name)[br_idx]
The indexing of the branches starts from 0 where 0 is the branch corresponding to RURI. The additional branches starts from idx 1.
What is new here is the concept of named attrs attached to each branch. These attrs can be used after the branch is created, all the way to the t_relay() moment.
Commit: 0f5ec3e6fe965c463061b22650dde4388b97bded
https://github.com/OpenSIPS/opensips/commit/0f5ec3e6fe965c463061b22650dde4388b97bded
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-13 (Tue, 13 May 2025)
Changed paths:
M lib/reg/lookup.c
Log Message:
-----------
[registrar] the contact attrs are now pushed back as branch attrs
The attrs are attached to the contact at save() time, as AVP, but restored at lookup() time as branch attribute - in both cases, the name (of AVP and attribute) is the same.
Commit: fa3d5d3811e1ee1234824565bf59d1ec226b40a7
https://github.com/OpenSIPS/opensips/commit/fa3d5d3811e1ee1234824565bf59d1ec226b40a7
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-15 (Thu, 15 May 2025)
Changed paths:
M dset.c
M dset.h
Log Message:
-----------
[msg branch] take care of ATTR lists while manipulating the MSG BRACHES
now that a list of ATTRs is attached to each msg_branch, take are and properly move, swap, clone and free them during the msg_branch oriented operations
Commit: d89acfb1e173c306dbaee5bf72469f9977da56a0
https://github.com/OpenSIPS/opensips/commit/d89acfb1e173c306dbaee5bf72469f9977da56a0
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-15 (Thu, 15 May 2025)
Changed paths:
M pvar.c
M pvar.h
Log Message:
-----------
Expose pv_false/true predefined pv_vals for external usage
Commit: de0a028c0e399b2aa76660ab8ad57555c23368f2
https://github.com/OpenSIPS/opensips/commit/de0a028c0e399b2aa76660ab8ad57555c23368f2
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-15 (Thu, 15 May 2025)
Changed paths:
M pvar.c
Log Message:
-----------
New $msg.branch.last_idx added
returns the index of the last added msg branch
Commit: e5940b10cbe74eee5c113b02893ec7dacdc8cf7f
https://github.com/OpenSIPS/opensips/commit/e5940b10cbe74eee5c113b02893ec7dacdc8cf7f
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-16 (Fri, 16 May 2025)
Changed paths:
M dset.c
M pvar.c
Log Message:
-----------
Fixes on the new $msg.branche.xxx variables
Commit: 4496379f71b980da72ee4facd414e738fc5238a7
https://github.com/OpenSIPS/opensips/commit/4496379f71b980da72ee4facd414e738fc5238a7
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-19 (Mon, 19 May 2025)
Changed paths:
M dset.c
Log Message:
-----------
Fix setting ATTR for RURI branch if no branches are appended
Commit: a914df6f347e7bc2b4101b262c627a4b7a84ed8d
https://github.com/OpenSIPS/opensips/commit/a914df6f347e7bc2b4101b262c627a4b7a84ed8d
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-19 (Mon, 19 May 2025)
Changed paths:
M modules/tm/h_table.h
M modules/tm/t_funcs.h
M modules/tm/t_fwd.c
M modules/tm/tm.c
Log Message:
-----------
[tm] added $tm.branch.xxxx family of variables
Also the t_get_branch_idx_by_attr() script function
Commit: 58f2a6b828991f0cef38479bd43dacda23c50acf
https://github.com/OpenSIPS/opensips/commit/58f2a6b828991f0cef38479bd43dacda23c50acf
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-19 (Mon, 19 May 2025)
Changed paths:
M modules/tm/doc/tm_admin.xml
Log Message:
-----------
[tm] added new vars and functions to docs
Commit: 7bb062cd0fca7cc610ab393c24616e23ff88089b
https://github.com/OpenSIPS/opensips/commit/7bb062cd0fca7cc610ab393c24616e23ff88089b
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-05-19 (Mon, 19 May 2025)
Changed paths:
M core_cmds.c
M dset.c
M dset.h
M lib/reg/lookup.c
M modules/alias_db/alookup.c
M modules/b2b_logic/logic.c
M modules/enum/enum.c
M modules/permissions/permissions.c
M modules/tm/doc/tm_admin.xml
M modules/tm/h_table.h
M modules/tm/t_funcs.h
M modules/tm/t_fwd.c
M modules/tm/tm.c
M modules/uac_redirect/rd_funcs.c
M pvar.c
M pvar.h
M receive.c
M serialize.c
Log Message:
-----------
Merge branch 'feature/branches'
Compare: https://github.com/OpenSIPS/opensips/compare/1cc05a62fdd4...7bb062cd0fca
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list