[sr-dev] [kamailio/kamailio] dialog: adding RPC dlg.kill_active_dlg command (#2111)

jklingenmeyer notifications at github.com
Fri Oct 25 11:35:20 CEST 2019


- only handles active dialogs in state 4
- wipes out a given dialog callously
- no subcalls to dialog-ending functions
- dialog is then removed by the recurring cleaning function execution
- as discussed in sr-users in topic "[Dialog] Removing entries from dialog memory"

#### Pre-Submission Checklist
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)

#### Checklist:
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)

#### Description

Hi,

As discussed in the sr-users mailing-list, I am proposing this PR to add a very simple new rpc command to the dialog module. dlg.kill_active_dialog kills any given active dialog from memory.

A paragraph in the dialog documentation precises the dangerous nature of this command, to be used with caution.

Please feel free to discuss about it.

Thanks!

Julien
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/2111

-- Commit Summary --

  * dialog: adding RPC dlg.kill_active_dlg command

-- File Changes --

    M src/modules/dialog/dialog.c (56)
    M src/modules/dialog/doc/dialog.xml (5)
    M src/modules/dialog/doc/dialog_admin.xml (33)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/2111.patch
https://github.com/kamailio/kamailio/pull/2111.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2111
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191025/8980fbd0/attachment.html>


More information about the sr-dev mailing list