Skip to content

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:

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

OTP 23:

(node@khabulyak.su)3> gen_server:call({'mod_kazoo', 'freeswitch@freeswitch.khabulyak.su'}, {'api', 'create_uuid', ""}).
{ok,<<"416997ae-61cf-4a5e-bf16-a4d212771f87">>}
(node@khabulyak.su)4> gen_server:call({'mod_kazoo', 'freeswitch@freeswitch.khabulyak.su'}, {'api', 'create_uuid', ""}).
{ok,<<"18b8ae0f-ec4c-466e-b606-42e6ca14ddc7">>}
(node@khabulyak.su)5> gen_server:call({'mod_kazoo', 'freeswitch@freeswitch.khabulyak.su'}, {'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.

@alexey-khabulyak
Copy link
Author

@andywolk hi. can you, please, review this PR. thank you.

xadhoom pushed a commit to VoiSmart/mod_kazoo that referenced this pull request Jul 28, 2025
Tested with OTP24, 25 and 26

Port of the never accepted PR:
- signalwire/freeswitch#1338
- freeswitch#1
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