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

tm: reset T_ASYNC_CONTINUE flag in t_suspend #955

Merged
merged 1 commit into from Jan 30, 2017

Conversation

grumvalski
Copy link
Contributor

Related to http://lists.sip-router.org/pipermail/sr-users/2017-January/095772.html
Resetting the flag in t_suspend allows adding new branches in a failure route while suspending the transaction.

@miconda
Copy link
Member

miconda commented Jan 30, 2017

Probably it's ok -- couldn't see a side effect right now. Is it tested/used anywhere else than src/modules/tm/t_reply.c:1123?

@grumvalski
Copy link
Contributor Author

grumvalski commented Jan 30, 2017 via email

@miconda
Copy link
Member

miconda commented Jan 30, 2017

Unless you think it should be better to be reset when t_continue() is finished instead of inside t_suspend(), you can merge it.

@grumvalski
Copy link
Contributor Author

grumvalski commented Jan 30, 2017 via email

@kamailio-sync
Copy link

kamailio-sync commented Jan 30, 2017 via email

@miconda
Copy link
Member

miconda commented Jan 30, 2017

It's a bit foggy the purpose right now, or better said the duration when that flag is needed. I didn't have the time to dig into it too much and don't remember the full purpose for it right now. I expected to be related to the fact of choosing the final response while a suspended branch is still processed.

But I think your patch is better in this regard, because it preserves the old behaviour (which didn't have a complaint on this flag) longer, until a new suspend is done. So can be merged as it is.

@grumvalski
Copy link
Contributor Author

grumvalski commented Jan 30, 2017 via email

@grumvalski grumvalski merged commit c721294 into kamailio:master Jan 30, 2017
@grumvalski grumvalski deleted the serial_suspend branch January 30, 2017 15:13
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

3 participants