Hi, I’m using Asterisk PBX 16.13.0. Receiving fax is still ok but sending fax stopped working a few days ago. Despite regular Debian 10 updates, I’m not aware that anything else changed.
I’m sending fax from PC via call file. The tiff to send as fax and the call file are copied to asterisk server. Ownership is then changed to user asterisk. After that, the call file is moved to outgoing. Asterisk picks it up and calls the number set via call file. Unfortunately, after the T.38 Negotiation Timeout the call fails, see log. Looks like negotiation fails. Tested with a known AVM Fritzbox 7530 after attempts to other destinations failed to get sent.
I’d be grateful for any hint. I’ve searched the wiki, the forum, and internet without results. I even created a new virtual machine with Debian 11 and Asterisk 18 but the problem is the same. I’m pretty sure, it is a config error but I cannot figure it out.
If I missed vital information please let me know and I’ll get it.
Thanks a lot.
My send fax extension:
[fax-send]
exten = sendfax,1,NoOp(send Fax)
same = n,Set(CALLERID(name-charset)=utf8)
same = n,Set(FAXOPT(headerinfo)=Robert <03033445566>)
same = n,Set(FAXOPT(localstationid)=00493033445566)
same = n,Set(FAXOPT(ecm)=yes)
same = n,SendFAX(/tmp/${FN},df)
same = n,Verbose(1,STATUS: ${FAXSTATUS})
same = n,ExecIf($["${FAXERROR}" != ""]?Verbose(ERROR: ${FAXERROR}):Verbose(Fax ok))
same = n,NoOp(remove temporary file /tmp/${FN})
same = n,System(rm /tmp/${FN})
same = n,Hangup
My call file:
Channel: PJSIP/03088776655@telekom1
CallerID: "Robert" <03033445566>
WaitTime: 20
Context: fax-send
Extension: sendfax
Priority: 1
Setvar: RECnr=03088776655
Setvar: FN=fax-file.tiff
Archive: No
FAX For Asterisk Settings:
ECM: Enabled
Status Events: On
Minimum Bit Rate: 4800
Maximum Bit Rate: 14400
Modem Modulations Allowed: V17,V27,V29
T.38 Negotiation Timeout: 10000
Log data:
[Feb 27 19:09:19] -- Attempting call on PJSIP/03088776655@telekom1 for sendfax@fax-send:1 (Retry 1)
[Feb 27 19:09:19] -- Called 03088776655@telekom1
[Feb 27 19:09:19] <--- Transmitting SIP request (921 bytes) to UDP:217.0.26.23:5060 --->
[Feb 27 19:09:19] INVITE sip:03088776655@tel.t-online.de SIP/2.0
[Feb 27 19:09:19] Via: SIP/2.0/UDP 192.168.2.10:5064;rport;branch=z9hG4bKPj3e24f9bc-74fc-4bcb-91b8-32f3bf9ad1f8
[Feb 27 19:09:19] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:19] To: <sip:03088776655@tel.t-online.de>
[Feb 27 19:09:19] Contact: <sip:03033445566@192.168.2.10:5064>
[Feb 27 19:09:19] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:19] CSeq: 1542 INVITE
[Feb 27 19:09:19] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[Feb 27 19:09:19] Supported: 100rel, timer, replaces, norefersub
[Feb 27 19:09:19] Session-Expires: 1800
[Feb 27 19:09:19] Min-SE: 90
[Feb 27 19:09:19] Max-Forwards: 70
[Feb 27 19:09:19] User-Agent: Asterisk PBX 16.13.0
[Feb 27 19:09:19] Content-Type: application/sdp
[Feb 27 19:09:19] Content-Length: 239
[Feb 27 19:09:19]
[Feb 27 19:09:19] v=0
[Feb 27 19:09:19] o=- 124459973 124459973 IN IP4 192.168.2.10
[Feb 27 19:09:19] s=Asterisk
[Feb 27 19:09:19] c=IN IP4 192.168.2.10
[Feb 27 19:09:19] t=0 0
[Feb 27 19:09:19] m=audio 18070 RTP/AVP 8 101
[Feb 27 19:09:19] a=rtpmap:8 PCMA/8000
[Feb 27 19:09:19] a=rtpmap:101 telephone-event/8000
[Feb 27 19:09:19] a=fmtp:101 0-16
[Feb 27 19:09:19] a=ptime:20
[Feb 27 19:09:19] a=maxptime:150
[Feb 27 19:09:19] a=sendrecv
[Feb 27 19:09:19]
[Feb 27 19:09:19] <--- Received SIP response (561 bytes) from UDP:217.0.26.23:5060 --->
[Feb 27 19:09:19] SIP/2.0 407 Proxy Authentication Required 02035034C
[Feb 27 19:09:19] Via: SIP/2.0/UDP 192.168.2.10:5064;received=46.95.216.75;rport=45064;branch=z9hG4bKPj3e24f9bc-74fc-4bcb-91b8-32f3bf9ad1f8
[Feb 27 19:09:19] To: <sip:03088776655@tel.t-online.de>;tag=h7g4Esbg_9905644109871cced0ec48c85b24c510
[Feb 27 19:09:19] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:19] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:19] CSeq: 1542 INVITE
[Feb 27 19:09:19] Content-Length: 0
[Feb 27 19:09:19] Proxy-Authenticate: Digest nonce="1265C7975BBE1B61000000003503C46E",realm="tel.t-online.de",algorithm=MD5,qop="auth",stale=true
[Feb 27 19:09:19]
[Feb 27 19:09:19]
[Feb 27 19:09:19] <--- Transmitting SIP request (445 bytes) to UDP:217.0.26.23:5060 --->
[Feb 27 19:09:19] ACK sip:03088776655@tel.t-online.de SIP/2.0
[Feb 27 19:09:19] Via: SIP/2.0/UDP 192.168.2.10:5064;rport;branch=z9hG4bKPj3e24f9bc-74fc-4bcb-91b8-32f3bf9ad1f8
[Feb 27 19:09:19] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:19] To: <sip:03088776655@tel.t-online.de>;tag=h7g4Esbg_9905644109871cced0ec48c85b24c510
[Feb 27 19:09:19] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:19] CSeq: 1542 ACK
[Feb 27 19:09:19] Max-Forwards: 70
[Feb 27 19:09:19] User-Agent: Asterisk PBX 16.13.0
[Feb 27 19:09:19] Content-Length: 0
[Feb 27 19:09:19]
[Feb 27 19:09:19]
[Feb 27 19:09:19] <--- Transmitting SIP request (1205 bytes) to UDP:217.0.26.23:5060 --->
[Feb 27 19:09:19] INVITE sip:03088776655@tel.t-online.de SIP/2.0
[Feb 27 19:09:19] Via: SIP/2.0/UDP 192.168.2.10:5064;rport;branch=z9hG4bKPj8a069d08-79ee-4398-b7c5-21fda7f9efd7
[Feb 27 19:09:19] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:19] To: <sip:03088776655@tel.t-online.de>
[Feb 27 19:09:19] Contact: <sip:03033445566@192.168.2.10:5064>
[Feb 27 19:09:19] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:19] CSeq: 1543 INVITE
[Feb 27 19:09:19] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[Feb 27 19:09:19] Supported: 100rel, timer, replaces, norefersub
[Feb 27 19:09:19] Session-Expires: 1800
[Feb 27 19:09:19] Min-SE: 90
[Feb 27 19:09:19] Max-Forwards: 70
[Feb 27 19:09:19] User-Agent: Asterisk PBX 16.13.0
[Feb 27 19:09:19] Proxy-Authorization: Digest username="03033445566", realm="tel.t-online.de", nonce="1265C7975BBE1B61000000003503C46E", uri="sip:03088776655@tel.t-online.de", response="377497ce3972b76192295dd49dc0639d", algorithm=MD5, cnonce="c1289b9734c346e8a56c5a1c605acce7", qop=auth, nc=00000001
[Feb 27 19:09:19] Content-Type: application/sdp
[Feb 27 19:09:19] Content-Length: 239
[Feb 27 19:09:19]
[Feb 27 19:09:19] v=0
[Feb 27 19:09:19] o=- 124459973 124459973 IN IP4 192.168.2.10
[Feb 27 19:09:19] s=Asterisk
[Feb 27 19:09:19] c=IN IP4 192.168.2.10
[Feb 27 19:09:19] t=0 0
[Feb 27 19:09:19] m=audio 18070 RTP/AVP 8 101
[Feb 27 19:09:19] a=rtpmap:8 PCMA/8000
[Feb 27 19:09:19] a=rtpmap:101 telephone-event/8000
[Feb 27 19:09:19] a=fmtp:101 0-16
[Feb 27 19:09:19] a=ptime:20
[Feb 27 19:09:19] a=maxptime:150
[Feb 27 19:09:19] a=sendrecv
[Feb 27 19:09:19]
[Feb 27 19:09:20] <--- Received SIP response (353 bytes) from UDP:217.0.26.23:5060 --->
[Feb 27 19:09:20] SIP/2.0 100 Trying
[Feb 27 19:09:20] Via: SIP/2.0/UDP 192.168.2.10:5064;received=46.95.216.75;rport=45064;branch=z9hG4bKPj8a069d08-79ee-4398-b7c5-21fda7f9efd7
[Feb 27 19:09:20] To: <sip:03088776655@tel.t-online.de>
[Feb 27 19:09:20] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:20] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:20] CSeq: 1543 INVITE
[Feb 27 19:09:20] Content-Length: 0
[Feb 27 19:09:20]
[Feb 27 19:09:20]
[Feb 27 19:09:20] <--- Received SIP response (637 bytes) from UDP:217.0.26.23:5060 --->
[Feb 27 19:09:20] SIP/2.0 183 Session Progress
[Feb 27 19:09:20] Via: SIP/2.0/UDP 192.168.2.10:5064;received=46.95.216.75;rport=45064;branch=z9hG4bKPj8a069d08-79ee-4398-b7c5-21fda7f9efd7
[Feb 27 19:09:20] To: <sip:03088776655@tel.t-online.de>;tag=h7g4Esbg_p65546t1645985360m107372c122730s1_3568435303-1683367824
[Feb 27 19:09:20] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:20] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:20] CSeq: 1543 INVITE
[Feb 27 19:09:20] Contact: <sip:sgc_c@217.0.26.23;transport=udp>
[Feb 27 19:09:20] Record-Route: <sip:217.0.26.23;transport=udp;lr>
[Feb 27 19:09:20] P-Early-Media: inactive, gated
[Feb 27 19:09:20] Content-Length: 0
[Feb 27 19:09:20] Allow: UPDATE, NOTIFY, PRACK, OPTIONS, BYE, ACK, CANCEL, INVITE, REGISTER
[Feb 27 19:09:20]
[Feb 27 19:09:20]
[Feb 27 19:09:20] -- PJSIP/telekom1-00000001 is making progress
[Feb 27 19:09:20] -- PJSIP/telekom1-00000001 is making progress
[2022-02-27 19:09:39.837] NOTICE[28637]: pbx_spool.c:450 attempt_thread: Call failed to go through, reason (3) Remote end Ringing
[2022-02-27 19:09:39.837] NOTICE[28637]: pbx_spool.c:453 attempt_thread: Queued call to PJSIP/03088776655@telekom1 expired without completion after 0 attempts
[Feb 27 19:09:39] <--- Transmitting SIP request (428 bytes) to UDP:217.0.26.23:5060 --->
[Feb 27 19:09:39] CANCEL sip:03088776655@tel.t-online.de SIP/2.0
[Feb 27 19:09:39] Via: SIP/2.0/UDP 192.168.2.10:5064;rport;branch=z9hG4bKPj8a069d08-79ee-4398-b7c5-21fda7f9efd7
[Feb 27 19:09:39] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:39] To: <sip:03088776655@tel.t-online.de>
[Feb 27 19:09:39] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:39] CSeq: 1543 CANCEL
[Feb 27 19:09:39] Reason: Q.850;cause=0
[Feb 27 19:09:39] Max-Forwards: 70
[Feb 27 19:09:39] User-Agent: Asterisk PBX 16.13.0
[Feb 27 19:09:39] Content-Length: 0
[Feb 27 19:09:39]
[Feb 27 19:09:39]
[Feb 27 19:09:39] <--- Received SIP response (447 bytes) from UDP:217.0.26.23:5060 --->
[Feb 27 19:09:39] SIP/2.0 481 Call/Transaction Does Not Exist
[Feb 27 19:09:39] Via: SIP/2.0/UDP 192.168.2.10:5064;received=46.95.216.75;rport=45064;branch=z9hG4bKPj8a069d08-79ee-4398-b7c5-21fda7f9efd7
[Feb 27 19:09:39] To: <sip:03088776655@tel.t-online.de>;tag=h7g4Esbg_p65546t1645985360m107372c122730s1_3568435303-1683367824
[Feb 27 19:09:39] From: <sip:03033445566@tel.t-online.de>;tag=a9c0d495-7407-4d12-b0a7-419c4d530ea1
[Feb 27 19:09:39] Call-ID: f906416d-c355-4f9a-abde-a84227f39372
[Feb 27 19:09:39] CSeq: 1543 CANCEL
[Feb 27 19:09:39] Content-Length: 0