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

cnxcc: make cnxcc locks re-entrant #398

Merged
merged 1 commit into from
Nov 15, 2015

Conversation

grumvalski
Copy link
Contributor

Cnxcc call termination is not working anymore since commit 265dc95. That commit introduced the call to DLGCB_TERMINATED callbacks for the locally generated BYE, which leads to a deadlock in cnxcc when it tries to end the calls because the credit (money or time) is exhausted.
This patch introduces a new structure cnxcc_lock which implements re-entrant locks.
As a side question I'm wondering if, since other modules need re-entrant locks, this structure should be defined in lock_ops.h like the other kamailio's locks.

caruizdiaz added a commit that referenced this pull request Nov 15, 2015
cnxcc: make cnxcc locks re-entrant
@caruizdiaz caruizdiaz merged commit ba647bb into kamailio:master Nov 15, 2015
@caruizdiaz
Copy link
Contributor

Thank you for the patch! I've been having no time to fix the issues that has been reported for cnxcc, so this one comes in a perfect time, thanks!

@grumvalski
Copy link
Contributor Author

You're welcome!

@grumvalski
Copy link
Contributor Author

Shouldn't the patch be backported to 4.3, since the issue is present there too?

@miconda
Copy link
Member

miconda commented Nov 16, 2015

I had it in mind to ask in the morning, when I did some backports, but got caught in other projects. Go ahead and do it.

This pull request was closed.
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.

3 participants