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

GetActiveSessionIDs: Issue parsing response from Freeswitch "show channels" Request #3749

Closed
ruhnet opened this issue Oct 22, 2022 · 2 comments
Assignees

Comments

@ruhnet
Copy link

ruhnet commented Oct 22, 2022

With Freeswitch agent and channel_sync_interval enabled, looking at ngrep captures of port 2014, it seems that after a session is initiated, it doesn't show up when queried for on SessionSv1.GetActiveSessionIDs, as "error":"NO_ACTIVE_SESSION" is returned when the query is made. So CGRates forcefully hangs up an active call whenever it syncs the channel at whatever interval is set, assuming that it is a stale session, even though it should proceed.

When I disable channel_sync_interval by setting it to 0, the SessionSv1.GetActiveSessionIDs method isn't called and the voice call proceeds as it should.

Ionuț said it's because the show channels request to Freeswitch returns a response that is not being parsed properly by GetActiveSessionIDs, and he instructed me to open this issue.

Attached is an ngrep of a call that is being killed in this manner, with channel_sync_interval enabled.

cgr_ngrep_2014_and_8021.txt

@ionutboangiu
Copy link
Collaborator

Hi @ruhnet,

Issue should have been fixed. Let me know if it works.

Thanks,
Ionuț

@ruhnet
Copy link
Author

ruhnet commented Oct 25, 2022

It's perfect!

Call processed normally, and when I do an ngrep of port 2014, I can see every 7 seconds (channel sync interval is set to 7s) a request for active sessions and a normal response with no errors.

Thank you!

@ruhnet ruhnet closed this as completed Oct 25, 2022
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

No branches or pull requests

2 participants