Name: freeswitch-endpoint-sofia2 Version: 1.0.2 Release: 2%{?dist} License: MPL #Tarball of the freeswitch src/mod/endpoints/mod_sofia directory #Git clone https://github.com/signalwire/freeswitch && cd freeswitch && cd src/mod/endpoints && tar -czf ~/rpmbuild/SOURCES/mod_sofia.tar.gz mod_sofia Source: mod_sofia.tar.gz #Freeswitch header which for some reason isn't included in the freeswitch-devel package but is needed by mod_sofia Source1: https://raw.githubusercontent.com/signalwire/freeswitch/refs/heads/master/src/include/switch_ssl.h Patch: sofia.diff Patch: mod-name.diff Patch: info-srcip.diff Patch: log_tag_outbound.diff Summary: Freeswitch module mod_sofia with useful patches BuildRequires: sofia-sip-devel BuildRequires: freeswitch-devel BuildRequires: gcc Provides: freeswitch-mod-sofia2 %description Freeswitch module mod_sofia with useful patches to make it respond with 500 to options when doing elegant shutdown and also allow update-display when ringing %package sofia-compat Provides: freeswitch-mod-sofia Conflicts: freeswitch-application-sofia Summary: Replacement mod_sofia.so for freeswitch with same name %description sofia-compat Replacement sofia module with useful patches and call mod_sofia.so %prep %autosetup -n mod_sofia mkdir -p include cp %{SOURCE1} include/ %build %set_build_flags $CC -I/usr/include/sofia-sip-1.13 -Iinclude *.c -lsofia-sip-ua -fPIC -shared -o mod_sofia2.so $CFLAGS $LDFLAGS $CC -DMOD_NAME=mod_sofia -I/usr/include/sofia-sip-1.13 -Iinclude *.c -lsofia-sip-ua -fPIC -shared -o mod_sofia.so $CFLAGS $LDFLAGS %install %{__install} -D -t %{buildroot}%{_libdir}/freeswitch/mod mod_sofia2.so %{__install} -D -t %{buildroot}%{_libdir}/freeswitch/mod mod_sofia.so %files %{_libdir}/freeswitch/mod/mod_sofia2.so %files sofia-compat %{_libdir}/freeswitch/mod/mod_sofia.so %changelog * Thu Jul 31 2025 Tim Anderson - 1.0.0-1 - Initially added mod_sofia2 which adds the domain and username as log tags * Wed Oct 29 2025 Tim Anderson - 1.0.0-2 - Update mod_sofia2 to allow it as a drop-in replacement for mod_sofia and add an option to manually reply 503 on OPTIONS ping * Mon Apr 13 2026 Tim Anderson - 1.0.1-1 - Add the source IP and port to the INFO event * Wed Apr 29 2026 Tim Anderson - 1.0.1-2 - Bump release so change in CI dependency repo makes its way into this package * Wed May 27 2026 Tim Anderson - 1.0.2-1 - Add log tag for the X-cid header on outbound calls