Skip to content

Releases: sboily/asterisk-consul-module

0.0.5

08 Dec 18:12

Choose a tag to compare

Full Changelog: 0.4...0.0.5

fix: Address code review findings for security, memory, and thread safety
Security fixes:

  • Move Consul token from URL query parameter to X-Consul-Token header
  • Mask token in CLI output (discovery show settings)

Memory management fixes:

  • Fix memory leak in consul_put_json() JSON debug output
  • Add safe_slist_append() helper with NULL checks for curl_slist
  • Fix ast_json_free -> ast_json_unref for JSON objects
  • Add proper cleanup paths in consul_maintenance_service()

Error handling fixes:

  • Only fire DiscoveryRegister event on successful HTTP response
  • Return error from load_res() on cURL failure
  • Validate AMI Enable parameter accepts only "true"/"false"
  • Check metadata profile section exists before marking valid

Code quality fixes:

  • Replace sprintf with snprintf in discovery_ip_address()
  • Convert C++ style comments to C style
  • Fix indentation in discover_ari_settings() (4-space to tabs)
  • Move variable declarations to block start for C89 compliance

Thread safety:

  • Add config_lock mutex for global_config/global_metadata access
  • Protect config reads in handle_http_check_eid()
  • Lock config updates in load_config()

Logic fixes:

  • Simplify enabled/check parsing in load_config()

0.4

23 May 03:59

Choose a tag to compare

0.4

What's Changed

  • usage PUT request for deregistration by @dwagin in #8
  • use asterisk eid by @sboily in #9
  • add new cli to get the status of the registration
  • use the eid for the healt check

Full Changelog: 0.3...0.4

0.3: Merge pull request #3 from dwagin/master

30 Nov 02:03
999f3a4

Choose a tag to compare

  • Some fixes
  • Memory leak
  • Add Asterisk eid in service metadata
  • Support Asterisk 16

Thank you to @lebauce and @dwagin for the contribution.

0.2

06 Oct 20:16

Choose a tag to compare

0.2
  • Refactor to be more compliant with asterisk guideline
  • Add AMI command and AMI events.

0.1

04 Oct 17:36

Choose a tag to compare

0.1

First release