Commit Graph

35934 Commits

Author SHA1 Message Date
Aron Podrigal ca017c8f73 When using multiple profiles and with the same gateway name on both, freeswitch mixes up the two gateways and is unable to restart any of them unless restarting the profile.
This also effects when moving a gateway from one profile to the other.

What this changes

- Do not remove a gateway from the hash unless it matches the profile.
- Fix `sofia profile <ProfileName> killgw <GatewayName>` to delete the gateway by using the qualified name `ProfileName::GatewayName` so we only delete a gateway on profile `ProfileName`.
- When loading/reloading a gateway, add it with the unqualified name to the hash if there is no other gateway with that name on another profile. (for example when `profileA` and `profileB` have a gateway `gw1`, `profileA` is first in the list, so we add `gw1` from `profileA` to the hash qualified and unqualified. for `profileB` it is added only qualified. Now, `sofia profile profileA killgw gw1` removes the gateway from `profileA`, so executing `sofia profile profileB startgw gw1` will now add `gw1` from `profileB` to the hash using the unqualified name).
- Fix `sofia profile ProfileName register|unregister GatewayName` to be profile specific.

- Ensure throughout sofia whenever we lookup a gateway related to an ongoing call, to also check the profile that it matches.
2025-01-15 11:30:55 -06:00
Andrey Volk 53abb53f2b
Merge pull request #2375 from ar45/mod_lua_query_rows
[mod_lua] Add Dbh:query_rows
2025-01-15 18:51:49 +03:00
Andrey Volk 7d2befa5fa [mod_lua] reswig 2025-01-15 16:30:59 +03:00
Andrey Volk d6a7bb9ee5 [mod_lua] Fix hack.diff 2025-01-15 16:30:59 +03:00
Aron Podrigal 4e2e8151b0 [mod_lua] Add Dbh:query_rows
The added method, query_rows, allows the retrieval of rows from a database without the need for a callback function, it fetches the rows and returns 3 arguments as show below.

```
lua
local success, rows, err = dbh:query_rows(sql)
```

This function performs better with large number of rows. Test results below 50k rows returned.

dbh:query(sql, callback) - 0.335949 seconds
dbh:query_rows(sql) - 0.253178 seconds
2025-01-15 16:30:59 +03:00
Andrey Volk ad5fe8bcff
Merge pull request #2727 from ar45/mod_curl_allow_more_argv
[mod_curl] Increase argument limit and enforce max args constraint
2025-01-15 03:17:25 +03:00
Aron Podrigal e359409cae [mod_curl] Increase argument limit and enforce max args constraint
Introduced a configurable limit on the number of arguments for mod_curl functions with a default of 30. Adjusted the code to handle scenarios exceeding this limit by logging an error and returning failure. This improves flexibility and prevents potential overflow issues.
2025-01-15 02:41:23 +03:00
Andrey Volk e9be0fab8a
Merge pull request #2728 from signalwire/zmq
[mod_event_zmq] Remove from tree
2025-01-15 02:18:29 +03:00
Andrey Volk 54fb449963 [mod_event_zmq] Remove from tree 2025-01-15 01:49:24 +03:00
Aron Podrigal 7ed261b27b
[mod_pgsql] Add support for PGRES_TUPLES_CHUNK in PostgreSQL 17+
Extend the database module to handle the PGRES_TUPLES_CHUNK case introduced in PostgreSQL 17. This ensures compatibility with the latest PostgreSQL version and prevents potential issues when processing query results.
2025-01-15 01:03:49 +03:00
Seven Du b8a9c8be9b
[Build-System] Fix build for m1 and m2 chips on macOS 2025-01-14 14:06:11 +03:00
Andrey Volk ca9430eaeb
Merge pull request #2725 from signalwire/h26x
[mod_h26x] Remove from tree
2025-01-14 00:02:58 +03:00
Andrey Volk d4fd3cc054 [mod_h26x] Remove from tree 2025-01-13 23:24:50 +03:00
Andrey Volk 0bcc789a47
Merge pull request #2724 from signalwire/khomp
[mod_khomp] Remove from tree
2025-01-13 22:04:08 +03:00
Andrey Volk 2b52002e75 [mod_khomp] Remove from tree 2025-01-13 20:48:48 +03:00
Andrey Volk 17e36a9beb
Merge pull request #2723 from signalwire/rad
[mod_rad_auth] Remove from tree
2025-01-13 17:43:43 +03:00
Andrey Volk 443a1ca790 [mod_rad_auth] Remove from tree 2025-01-13 17:06:38 +03:00
Andrey Volk c9a7269366
Merge pull request #2718 from signalwire/xml_radius
[mod_xml_radius] Remove from tree
2025-01-13 16:56:16 +03:00
Andrey Volk 285df0b026 [mod_xml_radius] Remove from tree 2025-01-13 13:14:44 +03:00
Andrey Volk e343b47c49
Merge pull request #2717 from signalwire/radius
[mod_radius_cdr] Remove from tree
2025-01-13 02:24:29 +03:00
Andrey Volk 94df749a61 [mod_radius_cdr] Remove from tree 2025-01-13 00:46:00 +03:00
Andrey Volk 7d4609aabf
Merge pull request #2716 from signalwire/raven
[mod_raven] Remove from tree
2025-01-12 21:12:56 +03:00
Andrey Volk e9023d124c [mod_raven] Remove from tree 2025-01-11 14:42:26 +03:00
Andrey Volk 559a97ecf5
Merge pull request #2715 from signalwire/rss
[mod_rss] Remove from tree
2025-01-11 04:33:17 +03:00
Andrey Volk 4d7a7f9af6 [mod_rss] Remove from tree 2025-01-11 02:36:12 +03:00
Andrey Volk b752476797
Merge pull request #2712 from signalwire/snom
[mod_snom] Remove from tree.
2025-01-10 22:48:04 +03:00
Andrey Volk 4c447a98ed [mod_snom] Remove from tree. 2025-01-10 21:31:29 +03:00
Andrey Volk 33f7be8986
Merge pull request #2711 from signalwire/sonar
[mod_sonar] Remove from tree
2025-01-10 17:55:35 +03:00
Andrey Volk f2481690d5 [mod_sonar] Remove from tree 2025-01-10 16:04:04 +03:00
Andrey Volk 6a5ac7e0a9
Merge pull request #2707 from signalwire/soundtouch
[mod_soundtouch] Remove from tree
2025-01-10 03:34:31 +03:00
Andrey Volk d912e9fb01 [mod_soundtouch] Remove from tree 2025-01-10 02:41:04 +03:00
Andrey Volk 1d8ff1421e
Merge pull request #2705 from signalwire/unicall
[mod_unicall] Remove from tree
2025-01-09 19:59:10 +03:00
Andrey Volk b033d27a38 [mod_unicall] Remove from tree 2025-01-09 19:34:21 +03:00
Andrey Volk cdd676356e
Merge pull request #2692 from signalwire/stress
[mod_stress] Remove from tree.
2025-01-09 00:53:42 +03:00
Andrey Volk 866c235aa3 [mod_stress] Remove from tree. 2025-01-09 00:21:21 +03:00
Andrey Volk 0acb3f2ccb
Merge pull request #2704 from signalwire/abstraction
[mod_abstraction] Remove from tree
2025-01-09 00:20:40 +03:00
Andrey Volk c1f4586e2d [mod_abstraction] Remove from tree 2025-01-08 23:47:31 +03:00
Andrey Volk 122c589815
Merge pull request #2702 from signalwire/isac
[mod_isac] Remove from tree
2025-01-08 22:07:40 +03:00
Andrey Volk 6286c51ff6 [mod_isac] Remove from tree 2025-01-08 20:46:37 +03:00
Andrey Volk c1eb76c828
Merge pull request #2700 from signalwire/mp4
[mod_mp4, mod_mp4v, mod_mp4v2] Remove from tree
2025-01-07 23:53:17 +03:00
Andrey Volk 4235d86aee [mod_mp4, mod_mp4v, mod_mp4v2] Remove from tree 2025-01-07 20:18:07 +03:00
Andrey Volk 4f1d9cd7db
Merge pull request #2699 from signalwire/portaudio
[mod_portaudio, mod_portaudio_stream] Remove from tree
2025-01-07 19:51:23 +03:00
Andrey Volk 49e63f6fff [mod_portaudio, mod_portaudio_stream] Remove from tree 2025-01-07 19:18:03 +03:00
Andrey Volk 69fb55c6b3
Merge pull request #2698 from signalwire/dahdi
[mod_dahdi_codec] Remove from tree
2025-01-07 18:36:44 +03:00
Andrey Volk 7d88add653 [mod_dahdi_codec] Remove from tree 2025-01-07 12:21:53 +03:00
Andrey Volk 8a9977fa05
Merge pull request #2696 from signalwire/flowroute
[mod_sms_flowroute] Remove from tree
2025-01-07 00:27:36 +03:00
Andrey Volk e5ae035d85 [mod_sms_flowroute] Remove from tree 2025-01-06 23:00:07 +03:00
Andrey Volk eaf02c9036
Merge pull request #2694 from signalwire/cepstral
[mod_cepstral] Remove from tree
2025-01-06 18:24:40 +03:00
Andrey Volk b7ac2be11b [mod_cepstral] Remove from tree 2025-01-06 17:41:58 +03:00
Andrey Volk 87bfafbb76
Merge pull request #2693 from signalwire/ladspa
[mod_ladspa] Remove from tree
2025-01-06 17:14:30 +03:00