[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Henning Westerholt via sr-dev
I think internally in the Kamailio we are using the "arm64" definition for the Mac, e.g. used below (commit ab1831efc2081). src/core/atomic/atomic_unknown.h: #if defined __CPU_arm64 && defined __OS_darwin /* fallback to locking-variant of atomic ops for OSes used for development * - MacO

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
After some review of the https://github.com/kamailio/kamailio/blob/093d0cca8c4a529b5330a0b85fa150d85ac77e19/src/Makefile.defs#L853 i can see that `FAST_LOCK` is not enabled for the `arm64`. is that intentional? if yes, I will revise the respective `CMakefile`, to not allow `FAST_LOCK` on arm64

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Indeed, the FAST_LOCK is not defined on MacOS when compiling using the old Makefiles. I guess it has to be as an option and decide based on cpu/arch to use it or not. Ultimately MacOS is not a primary target for server side, but afaik it is similar with many *BSDs, and some people were using K

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
Hey @miconda, Regarding the unknown architecture, it seems that CMake defines the arch as `arm64` for your machine instead of `aarch64` and therefore `__CPU_arm64` is defined (and not an option in `fastlock.h`). As far as I can understand they are one and the same. [see this SO](https://stacko

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
> The compile flags are different, among them for example, with old Makefiles > is set `-DUSE_SYSV_SEM`. Actually, I didn't populate any Apple specific flags. You can these that in `cmake/os_specific.cmake`. I will introduce an `apple` specific branch one and let you know. -- Reply to this em

[sr-dev] git:master:6235369e: cmake: Update platform-specific flags

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: 6235369e1deab4b87c999d5f00fb59b6609b3df6 URL: https://github.com/kamailio/kamailio/commit/6235369e1deab4b87c999d5f00fb59b6609b3df6 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-03T14:19:43Z cmake: Update platform-specific flags -

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Pushing to master branch is ok, simplifies things. I noticed in the previous commit that it has `include(${OS_SPECIFIC_DIR}/darwin.cmake)` but the new file name is `macos.cmake`. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#issuecomment

[sr-dev] git:master:abb0448c: cmake: Add support for custom binary and cfg name

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: abb0448c11812d9f11529a70303348474eed19de URL: https://github.com/kamailio/kamailio/commit/abb0448c11812d9f11529a70303348474eed19de Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-03T15:14:56Z cmake: Add support for custom binary and

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
ahhh good catch... fixing it now. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#issuecomment-2514856004 You are receiving this because you are subscribed to this thread. Message ID: ___ Kamailio

[sr-dev] git:master:d86f0526: cmake: Rename macos.cmake to darwin

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: d86f05261c386f4147bb4177b80673ae4c0f45d3 URL: https://github.com/kamailio/kamailio/commit/d86f05261c386f4147bb4177b80673ae4c0f45d3 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-03T15:19:58Z cmake: Rename macos.cmake to darwin ---

[sr-dev] git:master:394cc191: cmake: Refines uninstall script and updates CMake options

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: 394cc191e172f49525c91e3540eb590edf8bd101 URL: https://github.com/kamailio/kamailio/commit/394cc191e172f49525c91e3540eb590edf8bd101 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-03T15:14:15Z cmake: Refines uninstall script and updat

[sr-dev] CMake Initial support

2024-12-03 Thread Xenofon Karamanos via sr-dev
Hello all, As you may have noticed, we have added CMake building support to kamailio. You can check the PR https://github.com/kamailio/kamailio/pull/4043 for details and https://github.com/kamailio/kamailio-wiki/blob/main/docs/tutorials/cmake/index.md for docs on how to use it. Currently all o

[sr-dev] git:master:4c7d99c2: cmake: Delete macos.cmake...

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: 4c7d99c2f65749dcc7aa9a7173c22c9d39ecdbe9 URL: https://github.com/kamailio/kamailio/commit/4c7d99c2f65749dcc7aa9a7173c22c9d39ecdbe9 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-03T15:49:19Z cmake: Delete macos.cmake... --- Remove

[sr-dev] git:master:d416f720: cmake/defs.cmake: reorganize condition on cpu to prevent mismatching arm64

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio Branch: master Commit: d416f7207a39db5ec15c0133904bfd76980a9d4b URL: https://github.com/kamailio/kamailio/commit/d416f7207a39db5ec15c0133904bfd76980a9d4b Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2024-12-03T16:55:57+01:00 cmake/defs.cmake: reor

[sr-dev] git:master:2d59d44d: cmake/os-specific/darwin.cmake: added compile flag HAVE_MSGHDR_MSG_CONTROL

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio Branch: master Commit: 2d59d44dd620c597e69f7f1b3d6a9d1b3d410ae3 URL: https://github.com/kamailio/kamailio/commit/2d59d44dd620c597e69f7f1b3d6a9d1b3d410ae3 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2024-12-03T16:55:57+01:00 cmake/os-specific/darw

[sr-dev] Re: [kamailio/kamailio] Python exception handling fixes (PR #4044)

2024-12-03 Thread Henning Westerholt via sr-dev
Re-opened, as there seems to be still discussions necessary if the python KEMI interface should be adapted to the interface documentation. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/4044#issuecomment-2514147024 You are receiving this because y

[sr-dev] Re: [kamailio/kamailio] Python exception handling fixes (PR #4044)

2024-12-03 Thread Henning Westerholt via sr-dev
Reopened #4044. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/4044#event-15507223709 You are receiving this because you are subscribed to this thread. Message ID: ___ Kamailio - Development Mailing List

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
Do you want me to push directly to master? or Shall I create PR after some basic testing because I currently cant do it as I do not own a MacOS machine? Right now I pushed the new commit related to `macos` to cmake branch. I have some more commits related to clean up/structuring/add support f

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Henning Westerholt via sr-dev
I think bugfixes or smaller extensions to the cmake can be pushed directly to the master, as you are the main developer working on that topic right now. It also makes it easier to test for other people. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/i

[sr-dev] [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
### Description Using `cmake` to compile on MacOS (Darwin) 15.1.1 (Sequoia) fails. ### Troubleshooting Reproduction Debugging Data ``` mkdir buildmac cd buildmac/ cmake .. make VERBOSE=1 /opt/local/bin/cmake -S/tmp/kamailio -B/tmp/kamailio/buildmac --check-build-system CMakeFiles/

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
The compile flags are different, among them for example, with old Makefiles is set `-DUSE_SYSV_SEM`. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#issuecomment-2514225091 You are receiving this because you are subscribed to this thread. M

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
For now should be good enough, thanks for helping! Closing it. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#issuecomment-2515089425 You are receiving this because you are subscribed to this thread. Message ID:

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Just pushed two small commits (d416f7207a39db5ec15c0133904bfd76980a9d4b 2d59d44dd620c597e69f7f1b3d6a9d1b3d410ae3) that made it compile on macos. When I get some time, I can investigate to see if the option 2. (`Add __CPU_arm64 as a possible value in fastlock.h right next to the __CPU_aarch64`)

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Xenofon Karamanos via sr-dev
Great, thanks for the commits! We can use `STREQUAL` for exact matching but I think it will be more Verbose to write and regex seems good enough. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#issuecomment-2515004170 You are receiving t

[sr-dev] Re: [kamailio/kamailio] Error compiling with cmake on macos/darwin (Issue #4049)

2024-12-03 Thread Daniel-Constantin Mierla via sr-dev
Closed #4049 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4049#event-15513026106 You are receiving this because you are subscribed to this thread. Message ID: ___ Kamailio - Development

[sr-dev] git:master:f2c1f7ca: cmake: Modify github action for cmake auto builds

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: f2c1f7ca8e238c77c9757573303451894c850ac6 URL: https://github.com/kamailio/kamailio/commit/f2c1f7ca8e238c77c9757573303451894c850ac6 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-04T01:32:07Z cmake: Modify github action for cmake aut

[sr-dev] git:master:93b189a2: cmake: Add parser as a link library for kamailio

2024-12-03 Thread Xenofon Karamanos via sr-dev
Module: kamailio Branch: master Commit: 93b189a22df772ccef6f1eb09b4be0897a467d89 URL: https://github.com/kamailio/kamailio/commit/93b189a22df772ccef6f1eb09b4be0897a467d89 Author: Xenofon Karamanos Committer: Xenofon Karamanos Date: 2024-12-04T01:32:26Z cmake: Add parser as a link library for k

[sr-dev] Re: [kamailio/kamailio] http_async_client: fixed crash on curl callback (PR #4020)

2024-12-03 Thread Federico Cabiddu via sr-dev
@ivanuschak : have you been able to test the patch? -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/4020#issuecomment-2516451299 You are receiving this because you are subscribed to this thread. Message ID: _

[sr-dev] [kamailio/kamailio] After modifying the tag value in the To header field of the SIP 408 response using the app_python3 module, Kamailio reported an error: BUG: bad pointer 0x7f60c10a88a0 (out

2024-12-03 Thread xianchuhan via sr-dev
### Description Upon interfacing with a specific carrier’s cloud relay service, upon the termination of the call by the called party after the phone rings, the tag value within the To header of the 408 response from the cloud relay side is altered. When Kamailio relays this 408 response to Free

[sr-dev] Re: [kamailio/kamailio] After modifying the tag value in the To header field of the SIP 408 response using the app_python3 module, Kamailio reported an error: BUG: bad pointer 0x7f60c10a88a0

2024-12-03 Thread xianchuhan via sr-dev
SIP Traffic Received 408: ![image](https://github.com/user-attachments/assets/607fc345-940d-457d-a693-9c00b3191e17) -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4050#issuecomment-2516353309 You are receiving this because you are subscribed to

[sr-dev] [kamailio/kamailio] misc: examples/ims/scscf/README - fix typo in .sql filename [skip ci] (PR #4051)

2024-12-03 Thread Curt J. Sampson via sr-dev
Pre-Submission Checklist