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

Added compatibility with OTP 24+ #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexey-khabulyak
Copy link

@alexey-khabulyak alexey-khabulyak commented Nov 19, 2024

The original PR was made by @xadhoom : signalwire/freeswitch#1338
It was approved but has not been merged.

It adds compatibility with OTP 24+. Older versions are still working.
OTP 25:

([email protected])25> gen_server:call({'mod_kazoo', '[email protected]'}, {'api', 'create_uuid', ""}).
{ok,<<"6ef23ff2-5635-4d55-bacb-f1d772ff1e94">>}
([email protected])26> gen_server:call({'mod_kazoo', '[email protected]'}, {'api', 'version', ""
}).
{ok,<<"FreeSWITCH Version 1.10.12-release-10222002881-a88d069d6f+git~20240802T210227Z~a88d069d6f~64bit (-release-10"...>>}

OTP 23:

([email protected])3> gen_server:call({'mod_kazoo', '[email protected]'}, {'api', 'create_uuid', ""}).
{ok,<<"416997ae-61cf-4a5e-bf16-a4d212771f87">>}
([email protected])4> gen_server:call({'mod_kazoo', '[email protected]'}, {'api', 'create_uuid', ""}).
{ok,<<"18b8ae0f-ec4c-466e-b606-42e6ca14ddc7">>}
([email protected])5> gen_server:call({'mod_kazoo', '[email protected]'}, {'api', 'status', ""}).
{ok,<<"UP 0 years, 0 days, 0 hours, 0 minutes, 46 seconds, 240 milliseconds, 91 microseconds\nFreeSWITCH (Version 1."...>>}

@xadhoom
Copy link

xadhoom commented Nov 19, 2024

It's working also on OTP-26.

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.

2 participants