System Fax not reachable ("can´t be completed as dialed")

Hi folks!

New FreePBX install. All default.

System Fax is in Feature Code 666 (default).

If I dial 666 on an extension (that is otherwise working) I get “your call cannot be completed as dialed”. I can dial others extensions and outbound routes/trunks. I can receive calls. I can use other Feature Codes. But the System Fax is not working.

What am I doing wrong? This is something that always had worked out of the box.

By the way, FreePBX 2.11 on Asterisk 10.

No comments? I am really lost. It should work, but it isn’t.

I am experiencing the same problem.

I have compared the logs of two different FreePBX installations. One works and the other does not. The trunk registry and the extensions are of course different, but the rest is much the same.

In the one that works, when I dial the system fax, the call is (correctly) passed to ext-fax.

In the one that doesn’t work, the call is passed to ext-trunk (and then to the first trunk) and the SIP carrier rejects the call.

The snippets below were taken from /var/log/asterisk/full.

Functioning system:

[2013-10-25 19:50:34] VERBOSE[21967] netsock2.c: == Using SIP RTP TOS bits 184
[2013-10-25 19:50:34] VERBOSE[21967] netsock2.c: == Using SIP RTP CoS mark 5
[2013-10-25 19:50:34] VERBOSE[32113] pbx.c: – Executing [[email protected]_EDSON_CONTEXT:1] Set(“SIP/0858-00000044”, "[email protected]") in new stack
[2013-10-25 19:50:34] VERBOSE[32113] pbx.c: – Executing [[email protected]_EDSON_CONTEXT:2] Goto(“SIP/0858-00000044”, “ext-fax,s,1”) in new stack
[2013-10-25 19:50:34] VERBOSE[32113] pbx.c: – Goto (ext-fax,s,1)
[2013-10-25 19:50:34] VERBOSE[32113] pbx.c: – Executing [[email protected]:1] Macro(“SIP/0858-00000044”, “user-callerid,”) in new stack
. . .

Non-functional system:

[2013-10-25 18:09:54] VERBOSE[1959] netsock2.c: == Using SIP RTP TOS bits 184
[2013-10-25 18:09:54] VERBOSE[1959] netsock2.c: == Using SIP RTP CoS mark 5
[2013-10-25 18:09:54] VERBOSE[14783] pbx.c: – Executing [[email protected]:1] Goto(“SIP/4066-000002db”, “ext-trunk,14,1”) in new stack
[2013-10-25 18:09:54] VERBOSE[14783] pbx.c: – Goto (ext-trunk,14,1)
[2013-10-25 18:09:54] VERBOSE[14783] pbx.c: – Executing [[email protected]:1] Set(“SIP/4066-000002db”, “TDIAL_STRING=SIP/SOME_EXTERNAL_TRUNK”) in new stack
[2013-10-25 18:09:54] VERBOSE[14783] pbx.c: – Executing [[email protected]:2] Set(“SIP/4066-000002db”, “DIAL_TRUNK=14”) in new stack

As you can see, I’m using Custom Contexts on both systems.

You need to install both libspandsp and asterisk-spandsp. After that, FAX will work.

I oversaw it when installing. The library was there, but not the asterisk-spandsp driver.

YaST is your friend, opensusers!

But…shouldn’t that driver be installed by default on FreePBX distro (or are you installing FreePBX manually ) ???

I’m not using the FreePBX Distro in this case. Because of internal regulations and policies, on that particular client all Linux boxes must be openSUSEs, with absolutely NO exceptions.

But as the months passed I have became quite a bit more acquainted with this combination, and now the openSUSE package team have created repositories of Asterisk, Dahdi and everything else for a working Asterisk deployment - including SpanDSP. The only thing you have to install by hand is FreePBX, which is not difficult at all.

I’m willing to create a documentation on Asterisk+FreePBX on openSUSE, if time permits.