Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pua_dialoginfo: fixed crash when loading dialogs from database on restart #492

Conversation

phil-lavin
Copy link
Contributor

  • SHM pointer is freed when it is required later by dialog callbacks. Remove the free_dlginfo_cell() call.

This is causing crashing after the BYE, when a call is ongoing during a Kamailio restart

The free is actually done by the callback function dlg_api.register_dlgcb() when it is registered in pua_dialoginfo.c

Phil Lavin added 2 commits January 28, 2016 16:25
…tart

 - SHM pointer is freed when it is required later by dialog
   callbacks. Remove the free_dlginfo_cell() call.
@phil-lavin
Copy link
Contributor Author

I will backport this to 4.3 if/when you're happy with it

miconda added a commit that referenced this pull request Feb 2, 2016
- the structure will be destroyed in a later dlg callback, enabled by
  dlg_api.register_dlgcb(), via free_dlginfo_cell()
- based and includes partial patch from GH #492, by Phil Lavin
@miconda
Copy link
Member

miconda commented Feb 2, 2016

Thank you for the report of the issue and accompanied patch to fix it.

A slightly different patch was pushed, to avoid compile and sanity checks warnings that the variable was set but not used, respectively dlginfo.

The changes to the documentation are not valid, the names there refer to the authors of the documentation, not to the authors of the code. There can be code written by different persons which have no relation with the module documentation for use in kamailio.cfg (which is what docs contain). Also, there was a new other name that was not involved in any discussions.

The code ownership is reflected by copyright strings at the top of the files. But that has to reflect relevant changes and must be additions, not removals. By removing a line added in the past by someone else, there is still no code done by you that can you ask copyright for it. Your name was mentioned in the commit message, as we do for all contributors.

Again, relevant c code additions can be accompanied with copyright line at the top of changed files. You must be aware that core and main components contributions must be under BSD license, contributions to modules that depend on libssl must grant OpenSSL GPL exception.

@miconda miconda closed this Feb 2, 2016
@phil-lavin
Copy link
Contributor Author

Thanks, Daniel. All understood :)

@miconda
Copy link
Member

miconda commented Feb 2, 2016

Btw, contributions to documentation are also very welcome and much appreciated.

@phil-lavin phil-lavin deleted the bugfix-loading-dialogs-from-database-master branch February 12, 2016 10:05
phil-lavin pushed a commit to phil-lavin/kamailio that referenced this pull request Feb 24, 2016
- the structure will be destroyed in a later dlg callback, enabled by
  dlg_api.register_dlgcb(), via free_dlginfo_cell()
- based and includes partial patch from GH kamailio#492, by Phil Lavin
phil-lavin pushed a commit to phil-lavin/kamailio that referenced this pull request Nov 13, 2017
- the structure will be destroyed in a later dlg callback, enabled by
  dlg_api.register_dlgcb(), via free_dlginfo_cell()
- based and includes partial patch from GH kamailio#492, by Phil Lavin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants