<!-- 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 <!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply --> <!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above--> <!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list --> - [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 - [ ] Small bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds new functionality) - [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist: <!-- Go over all points below, and after creating the PR, tick the checkboxes that apply --> - [ ] PR should be backported to stable branches - [x] Tested changes locally - [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description <!-- Describe your changes in detail --> This PR exports some new functions for handling registration and deregistration in the uac table without waiting for timer to fire.
All of the following function require the parameters of the already available RPC function call `reg_unregister`:
- `kamcmd uac.reg_register`: Register for kamcmd similar to `uac.reg_unregister` - `uac_reg_send_register`: Config function to register immediately without waiting for timer - `uac_reg_send_unregister`: Config funtion to unregister immediately without waiting for timer - Move required structures/functions to .h You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4056
-- Commit Summary --
* uac: Export two new functions for reg/unreg and rpc for reg
-- File Changes --
M src/modules/uac/uac.c (73) M src/modules/uac/uac_reg.c (91) M src/modules/uac/uac_reg.h (51)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4056.patch https://github.com/kamailio/kamailio/pull/4056.diff
@xkaraman pushed 1 commit.
ef031f8dbb9a34d060cc4b36245831153f608cdc uac: Export two new functions for reg/unreg and rpc for reg
Thanks for the PR. Could you also add documentation to the XML files for this extensions?
@xkaraman pushed 1 commit.
0151be593472ec64c19c2a039be368f8da4a49e6 uac/docs: Update docs for uac_reg_send_register/unregister and rpc command
@xkaraman pushed 2 commits.
133dc6ac2a2966184f301d3164daff76aeb7e991 uac: Export two new functions for reg/unreg and rpc for reg ffe0b3c23d8a290066a5461634a67aad7a62faa5 uac/docs: Update docs for uac_reg_send_register/unregister and rpc command
Thanks, lets wait a bit more for other feedback and then merge it.
Fine for me.
What happens if a filter hits multiple accounts? Will all of them unregistered/register?
The newly added functions behave in a similar way like the existing RPC functions. Did not tested it, but from the code it should stop at the first match.
Merged #4056 into master.
Then that should be clearly documented