<!-- Kamailio Pull Request Template -->
<!-- IMPORTANT: - for detailed contributing guidelines, read: https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md - pull requests must be done to master branch, unless they are backports of fixes from master branch to a stable branch - backports to stable branches must be done with 'git cherry-pick -x ...' - code is contributed under BSD for core and main components (tm, sl, auth, tls) - code is contributed GPLv2 or a compatible license for the other components - GPL code is contributed with OpenSSL licensing exception -->
#### Pre-Submission Checklist - [x] Commit message has the format required by CONTRIBUTING guide - [x] Commits are split per component (core, individual modules, libs, utils, ...) - [x] Each component has a single commit (if not, squash them into one commit) - [x] No commits to README files for modules (changes must be done to docbook files in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change - [x] New feature (non-breaking change which adds new functionality)
#### Checklist: - [x] Tested changes locally
#### Description You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3430
-- Commit Summary --
* registrar: adding tcpconn_id to xavp_cfg
-- File Changes --
M src/modules/registrar/doc/registrar_admin.xml (7) M src/modules/registrar/save.c (24)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3430.patch https://github.com/kamailio/kamailio/pull/3430.diff
@jchavanton pushed 1 commit.
016059f246bd8bfeef3a3538586680d2e577db94 registrar: adding tcpconn_id to xavp_cfg
@jchavanton pushed 1 commit.
f7e618efce07691434af4f7fe3afee153e844056 registrar: adding tcpconn_id to xavp_cfg
@jchavanton pushed 1 commit.
4b70bd819daa5164184741846a97710863199070 registrar: adding tcpconn_id to xavp_cfg
@btriller commented on this pull request.
@@ -71,6 +71,27 @@ extern sruid_t _reg_sruid;
static int q_override_msg_id; static qvalue_t q_override_value;
+int reg_get_cfg_tcpconnid(void) +{ + int n; + sr_xavp_t *vavp=NULL; + str vname = {"tcpconn_id", 10}; + + n = 0; + + if(reg_xavp_cfg.s!=NULL) + { + vavp = xavp_get_child_with_ival(®_xavp_cfg, &vname); + if(vavp!=NULL) + { + n = vavp->val.v.i;
```suggestion n = (int)vavp->val.v.l; ```
@miconda pushed 1 commit.
20b54f7289a0e7c213ed016cae503b742c5c8414 registrar: use xavp->val.v.l for tcp connection id
Thanks!
Merged #3430 into master.