[Problem] GOfax.IP mit FreeSWITCH an FRITZ!Box: SIP-Registrierung nicht erfolgreich

tightphone

Neuer User
Mitglied seit
26 Feb 2017
Beiträge
10
Punkte für Reaktionen
0
Punkte
1
Hallo IP-Phone Forum,

ich versuche derzeit GOfax.IP einzurichten um darüber zu Faxe zu senden - jedoch hänge ich am gefühlt letzten Schritt der Einrichtung fest und komme nicht weiter.
Die Anleitung von Gonicus auf GitHub https://github.com/gonicus/gofaxip/blob/master/README.md habe ich befolgt, bekomme aber trotzdem diese "Fehlermeldung" wenn ich den aktuellen Status der Applikationen mittels sudo systemctl status freeswitch hylafax gofaxip hfaxd faxq abfrage.

Bash:
● freeswitch.service - FreeSWITCH VoIP Softswitch
     Loaded: loaded (/etc/systemd/system/freeswitch.service; disabled; preset: enabled)
     Active: active (running) since Sun 2025-07-06 00:45:01 CEST; 48s ago
    Process: 880 ExecStartPre=/bin/chown -R uucp: /var/lib/freeswitch /var/log/freeswitch (code=exited, status=0/SUCCESS)
   Main PID: 882 (freeswitch)
      Tasks: 8 (limit: 4637)
     Memory: 29.1M
        CPU: 276ms
     CGroup: /system.slice/freeswitch.service
             └─882 /usr/bin/freeswitch -nonat -nc -nf

Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.721448 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_db
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.721506 100.00% [CONSOLE] switch_loadable_module.c:2357 CORE_SPEEX_MODULE has no shutdown routine
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.721605 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: CORE_VPX_MODULE
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.724294 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_spandsp
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.724438 100.00% [CONSOLE] switch_loadable_module.c:2357 mod_tone_stream has no shutdown routine
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.726955 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: CORE_PCM_MODULE
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.726977 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_logfile
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.727423 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_sofia
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.727593 100.00% [WARNING] sofia.c:2308 MSG Thread Ended
Jul 06 00:45:02 pDebian12 freeswitch[882]: 2025-07-06 00:45:02.727643 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_syslog

● hylafax.service - HylaFAX
     Loaded: loaded (/lib/systemd/system/hylafax.service; disabled; preset: enabled)
     Active: active (exited) since Sun 2025-07-06 00:45:01 CEST; 48s ago
       Docs: man:hylafax
    Process: 881 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 881 (code=exited, status=0/SUCCESS)
        CPU: 1ms

Jul 06 00:45:01 pDebian12 systemd[1]: Starting hylafax.service - HylaFAX...
Jul 06 00:45:01 pDebian12 systemd[1]: Finished hylafax.service - HylaFAX.

● gofaxip.service - GOfax.IP Fax over IP Bridge
     Loaded: loaded (/lib/systemd/system/gofaxip.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-07-06 00:45:04 CEST; 45s ago
   Main PID: 922 (gofaxd)
      Tasks: 11 (limit: 4637)
     Memory: 8.9M
        CPU: 9ms
     CGroup: /system.slice/gofaxip.service
             └─922 /usr/bin/gofaxd

Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch1:Rpcbffff01
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: device.go:174: Changing state of modem freeswitch2 to READY
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch2:N
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch2:Rpcbffff01
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: device.go:174: Changing state of modem freeswitch3 to READY
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch3:N
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch3:Rpcbffff01
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: device.go:174: Changing state of modem freeswitch4 to READY
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch4:N
Jul 06 00:45:04 pDebian12 /usr/bin/gofaxd[922]: faxq.go:73: Sending message to /var/spool/hylafax/FIFO: +freeswitch4:Rpcbffff01

● hfaxd.service - HylaFAX client-server protocol server
     Loaded: loaded (/lib/systemd/system/hfaxd.service; disabled; preset: enabled)
     Active: active (running) since Sun 2025-07-06 00:45:01 CEST; 48s ago
       Docs: man:hfaxd
   Main PID: 883 (hfaxd)
      Tasks: 1 (limit: 4637)
     Memory: 2.2M
        CPU: 10ms
     CGroup: /system.slice/hfaxd.service
             └─883 /usr/sbin/hfaxd -d -i 4559 -s 444

Jul 06 00:45:01 pDebian12 systemd[1]: Started hfaxd.service - HylaFAX client-server protocol server.
Jul 06 00:45:01 pDebian12 HylaFAX[883]: Listening to 0.0.0.0:4559
Jul 06 00:45:01 pDebian12 HylaFAX[883]: HylaFAX INET Protocol Server: restarted.
Jul 06 00:45:01 pDebian12 HylaFAX[883]: HylaFAX SNPP Protocol Server: restarted.

● faxq.service - HylaFAX queue manager process for outbound facsimile jobs
     Loaded: loaded (/lib/systemd/system/faxq.service; disabled; preset: enabled)
     Active: active (running) since Sun 2025-07-06 00:45:01 CEST; 48s ago
       Docs: man:faxq
    Process: 884 ExecStart=/usr/sbin/faxq (code=exited, status=0/SUCCESS)
   Main PID: 885 (faxq)
      Tasks: 1 (limit: 4637)
     Memory: 6.4M
        CPU: 39ms
     CGroup: /system.slice/faxq.service
             └─885 /usr/sbin/faxq

Jul 06 00:45:01 pDebian12 systemd[1]: Starting faxq.service - HylaFAX queue manager process for outbound facsimile jobs...
Jul 06 00:45:01 pDebian12 systemd[1]: Started faxq.service - HylaFAX queue manager process for outbound facsimile jobs.
Jul 06 00:45:01 pDebian12 FaxQueuer[885]: HylaFAX (tm) Version 6.0.7
Jul 06 00:45:01 pDebian12 FaxQueuer[885]: Copyright (c) 1990-1996 Sam Leffler
Jul 06 00:45:01 pDebian12 FaxQueuer[885]: Copyright (c) 1991-1996 Silicon Graphics, Inc.

Anbei die Konfigurationsdateien:

/etc/freeswitch/vars.xml​

XML:
<include>

 <X-PRE-PROCESS cmd="set" data="sofia_ip=192.168.178.1"/>

</include>

/etc/freeswitch/gateways/default.xml​

XML:
<include>
        <gateway name="default">
                <param name="realm" value="192.168.178.1"/>
                <param name="username" value="GOfaxpunktIP"/>
                <param name="password" value="095270Gw%f*="/>

                <param name="extension" value="auto_to_user"/>
                <param name="caller-id-in-from" value="true"/>

                <!-- If you are having a problem with the default registering as gw+gateway_name@ip you can set this to true to use extension@ip -->
                <param name="extension-in-contact" value="true"/>

                <!-- uncomment to disable registering at the gateway -->
                <!-- <param name="register" value="false"/> -->

                <!--send an options ping every x seconds, failure will unregister and/or mark it down-->
                <!--<param name="ping" value="25"/>-->
        </gateway>
</include>

/etc/gofax.conf​

INI:
[freeswitch]
socket = 127.0.0.1:8021
password = ClueCon

; Default SIP gateway (as configured in FreeSWITCH) used for originated calls.
; Can be overridden by setting 'Gateway=' in DynamicConfigOutgoing
gateway = default

; Multiple gateways can be defined and will be tried in order until the call succeeds.
;gateway = backup-gw

ident = +491234567890
header = "Name"

; Enable to get excessive SpanDSP debug messages in FreeSWITCH
verbose = false

; Enable fallback to softmodem for the next call of
; a caller (identified by caller id) if negotiation using T.38 fails
; Persistent fallback data is saved in FreeSWITCH's mod_db
softmodemfallback = true

[hylafax]
spooldir = /var/spool/hylafax

; Limit number of outbound channels
modems = 5

; Enable to make GOfax.IP write xferfaxlog
xferfaxlog = log/xferfaxlog

[gofaxd]
socket = 127.0.0.1:8022

; Enable T.38 support for receiving (FreeSWITCH: fax_enable_t38)
enablet38 = true

; Send a T.38-ReINVITE when a fax was detected by tone detection while receiving (FreeSWITCH: fax_enable_t38_request)
requestt38 = true

; Extract the recipient from the sip diversion header
recipientfromdiversionheader = false

; Wait before answering a incoming call (ms)
answerafter = 2000

; Wait after answering before starting fax negotiation
waittime = 1000

; Support for rejecting calls and setting CSI for incoming faxes
;dynamicconfig = etc/DynamicConfig


[gofaxsend]
; Enable T.38 support for receiving (FreeSWITCH: fax_enable_t38)
enablet38 = true

; Send a T.38-ReINVITE when a fax was detected by tone detection while sending (FreeSWITCH: fax_enable_t38_request)
requestt38 = true

; Default outgoing caller id number
faxnumber = 01234567890

; Uncomment to prefix the destination number in every outgoing call when dialing
; callprefix = 0

; Support for settings TSI/Header and Callerid for outgoing faxes
;dynamicconfig = etc/DynamicConfigOutgoing

; Fallback to lower baudrate after x fax retries. Set number of retries. 0 = automatic fallback disabled
disablev17afterretry = 0

; Switch off ECM after x fax retries. Set number of retries. 0 = automatic switch disabled
disableECMafterretry = 0

; Set the Displayname to sender, cidnum or any static string you like
; sender - use sender from the qfile
; number - use number from the qfile
; cidnum - use callerid number as displayname
; example: my great faxserver - use "my great faxserver" as displayname for every outbound fax
cidname = Absendername

; Instruct HylaFAX to not retry the transmission
; useful for final failure responses like UNALLOCATED_NUMBER to prevent unnecessary retries
; can be set multiple times
failedresponse = UNALLOCATED_NUMBER
failedresponse = CALL_REJECTED

Was mache ich falsch in der Konfiguration von FreeSWITCH, bzw. wie muss die SIP-Registrierung geändert werden, damit FreeSWITCH sich an der FRITZ!Box korrekt registriert?

Ich freue mich über eure Hilfe!

Beste Grüße

tightphone
 
Bei den Passwörtern der IP Telefone der Fritz!Box, würde ich mich auf die Sonderzeichen - _ und . beschränken bzw. ganz ohne arbeiten.
 
Hallo @chrsto , vielen Dank für den Hinweis!
Die Sonderzeichen habe ich aus dem Passwort entfernt. Um sicherzugehen, dass der Fehler nicht bei der FRITZ!Box liegt habe ich mich mit dem Account mittels Zoiper registriert und komme auch telefonieren. Somit sind die Anmeldedaten korrekt und die Konfiguration der FRITZ!Box stimmt.

Der Fehler muss in der Konfiguration von Freeswitch liegen. Wenn ich im Terminal den Befehl journalctl -xe eingebe, bekomme ich diese "Antwort":

Bash:
Jul 11 13:06:12 pDebian12 systemd[1]: Starting freeswitch.service - FreeSWITCH VoIP Softswitch...
░░ Subject: A start job for unit freeswitch.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit freeswitch.service has begun execution.
░░
░░ The job identifier is 285.
Jul 11 13:06:12 pDebian12 systemd[1]: Started freeswitch.service - FreeSWITCH VoIP Softswitch.
░░ Subject: A start job for unit freeswitch.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit freeswitch.service has finished successfully.
░░
░░ The job identifier is 285.
Jul 11 13:06:12 pDebian12 freeswitch[827]: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)
Jul 11 13:06:12 pDebian12 freeswitch[827]: ERROR: Could not set nice level
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.454121 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_syslog]
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.455018 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_logfile]
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.456045 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_event_socket]
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.462924 0.00% [WARNING] sofia.c:5328 rtp-timeout-sec deprecated use media_timeout variable.
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.462930 0.00% [WARNING] sofia.c:5335 rtp-hold-timeout-sec deprecated use media_hold_timeout variable.
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.463142 0.00% [WARNING] sofia.c:2290 MSG Thread 0 Started
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.473796 0.00% [ERR] sofia.c:3317 Error Creating SIP UA for profile: fax (sip:[email protected]:5060;maddr=192.168.178.1;transport=udp,tcp). Bad WSS.PEM certificate.
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.473810 0.00% [CRIT] sofia.c:2906 Profile fax could not load! Shutting down!
Jul 11 13:06:13 pDebian12 freeswitch[827]: 2025-07-11 13:06:13.964907 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_sofia]
Jul 11 13:06:13 pDebian12 freeswitch[827]: 2025-07-11 13:06:13.968718 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_commands]
Jul 11 13:06:13 pDebian12 freeswitch[827]: 2025-07-11 13:06:13.972668 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_dptools]
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:13.999997 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_spandsp]
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.001320 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_tone_stream]
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.003773 0.00% [CONSOLE] switch_loadable_module.c:1772 Successfully Loaded [mod_db]
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.003835 0.00% [CONSOLE] switch_loadable_module.c:2285 open of post_load_modules.conf failed
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.003838 0.00% [CONSOLE] switch_loadable_module.c:149 Starting runtime thread for mod_event_socket
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.003885 0.00% [CONSOLE] switch_loadable_module.c:149 Starting runtime thread for CORE_SOFTTIMER_MODULE
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.004285 100.00% [CONSOLE] switch_core.c:3031 End existing sessions
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.004296 100.00% [CONSOLE] switch_core.c:3033 Clean up modules.
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.004449 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_db
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.004504 100.00% [CONSOLE] switch_loadable_module.c:2357 CORE_SPEEX_MODULE has no shutdown routine
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.004585 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: CORE_VPX_MODULE
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.007052 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_spandsp
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.007246 100.00% [CONSOLE] switch_loadable_module.c:2357 mod_tone_stream has no shutdown routine
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.009626 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: CORE_PCM_MODULE
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.009636 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_logfile
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.009997 100.00% [CONSOLE] switch_loadable_module.c:2354 Stopping: mod_sofia
Jul 11 13:06:14 pDebian12 freeswitch[827]: 2025-07-11 13:06:14.010193 100.00% [WARNING] sofia.c:2308 MSG Thread Ended

Ich denke dass "hier" der Hase im Pfeffer liegt: Bad WSS.PEM certificate.
Bash:
Jul 11 13:06:12 pDebian12 freeswitch[827]: 2025-07-11 13:06:12.473796 0.00% [ERR] sofia.c:3317 Error Creating SIP UA for profile: fax (sip:[email protected]:5060;maddr=192.168.178.1;transport=udp,tcp). Bad WSS.PEM certificate.

Ist dies das Zertifikat von Freeswitch oder von der (als Registrar dienenden) FRITZ!Box?
 
Der Registrar der Fritz!Box unterstützt kein TLS und hat damit auch kein Zertifikat.
 
Kostenlos!

Statistik des Forums

Themen
247,327
Beiträge
2,266,610
Mitglieder
375,914
Neuestes Mitglied
Hellmood