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

dispatcher: fix persistent_state #3574

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

babakyakhchali
Copy link
Contributor

Summary

This PR fixes the issue 3567 in dispatcher module, currently setting persistent_state to enabled is not working and destinations state is not stored in database when opensips service is restarted, or based on timer callback.
Details

This PR fixes dispatcher persistence problem by changing the way value of persistent_state is checked.

Solution

Instead of using str_strcmp function output directly, it's return value must be checked with 0 which this pull request tries to do.
Compatibility

This PR will not break other scenarios.
Closing issues

closes #3567

@bogdan-iancu bogdan-iancu merged commit a0feb32 into OpenSIPS:master Feb 7, 2025
48 checks passed
@bogdan-iancu
Copy link
Member

Thank you @babakyakhchali

@bogdan-iancu bogdan-iancu self-assigned this Feb 7, 2025
bogdan-iancu added a commit that referenced this pull request Feb 7, 2025
dispatcher: fix persistent_state
(cherry picked from commit a0feb32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] dispatcher persistent_state not working
2 participants