Unable to get inbound routes working

I have researched this issue quite a bit and also researched everything else with setting up this new phone system on my own. I finally have all out bound calls to local and long distance numbers working correctly. The only issue I am having is receiving inbound calls. I believe that I have setup the route correctly but probably have not since its not working :cry: What I need to happen is calls going to 111-222-3XXX to go to Ext XXX. I have saved my rasterisk output with level 4 verbosity.

– Accepting call from ‘XXXXXXXXXX’ to ‘9283337126’ on channel 0/1, span 1
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “__FROM_DID=9283337126”) in new stack
– Executing [[email protected]:2] NoOp(“DAHDI/1-1”, “Received an unknown call with DID set to 9283337126”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/1-1”, “s,a2”) in new stack
– Goto (from-pstn,s,2)
– Executing [[email protected]:2] Answer(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:3] Wait(“DAHDI/1-1”, “2”) in new stack
– Executing [[email protected]:4] Playback(“DAHDI/1-1”, “ss-noservice”) in new stack
– Playing ‘ss-noservice.gsm’ (language ‘en’)
– Channel 0/1, span 1 got hangup request, cause 16
== Spawn extension (from-pstn, s, 4) exited non-zero on ‘DAHDI/1-1’
– Executing [[email protected]:1] Hangup(“DAHDI/1-1”, “”) in new stack
== Spawn extension (from-pstn, h, 1) exited non-zero on ‘DAHDI/1-1’
– Hungup ‘DAHDI/1-1’

Now I am sure its just a small config that I am missing somewhere but any help would be greatly appreciated. And I’m willing to supply any info that you may need to assist.

Thanks,

Nate

Also I’m not sure if this will help any but here is the [from-pstn] portion of my extensions.conf, once again thanks for any help in advance.

[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did
include => ext-did-post-custom
include => from-did-direct ; MODIFICATION (PL) for findmefollow if enabled, should be before ext-local
include => ext-did-catchall ; THIS MUST COME AFTER ext-did
exten => fax,1,Goto(ext-fax,in_fax,1)

what have you set up for the inbound route?

Sorry I’m not exactly sure what you are looking for as far as code or what not, I am still pretty new to asterisk and freepbx but for example when an outside line calls 9283337126 that it goes to ext 126.

in freePBX have you tabbed to “Inbound Routes” and created a route?

Yes I have done that, I have it setup as stated above.

Having the exact same issue here. Something is telling the PBX to drop the call, though the fax is still transmitting. If I send a blank page, there’s so little to transmit that it will make it through before the disconnect. Anything with content on the paper doesn’t have enough time. In the PBX logs, here is the detail. This is coming into a Sangoma A101D. I tried sending it through our A600 backup analog card with POTS lines and received the same result:

[Apr 21 12:41:12] VERBOSE[12924] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Apr 21 12:41:14] VERBOSE[3703] logger.c: – Accepting call from ‘8009806858’ to ‘2211’ on channel 0/1, span 1
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:1] Set(“DAHDI/1-1”, “DID=2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:2] Goto(“DAHDI/1-1”, “s,1”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Goto (from-zaptel,s,1)
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Entering from-zaptel with DID == 2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:2] Ringing(“DAHDI/1-1”, “”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:3] Set(“DAHDI/1-1”, “DID=2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:4] NoOp(“DAHDI/1-1”, “DID is now 2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:5] GotoIf(“DAHDI/1-1”, “1?zapok:notzap”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Goto (from-zaptel,s,8)
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:8] NoOp(“DAHDI/1-1”, “Is a Zaptel Channel”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:9] Set(“DAHDI/1-1”, “CHAN=1-1”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:10] Set(“DAHDI/1-1”, “CHAN=1”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:11] Macro(“DAHDI/1-1”, “from-zaptel-1,2211,1”) in new stack
[Apr 21 12:41:14] WARNING[12929] app_macro.c: No such context ‘macro-from-zaptel-1’ for macro ‘from-zaptel-1’
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:12] NoOp(“DAHDI/1-1”, “Returned from Macro from-zaptel-1”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:13] Goto(“DAHDI/1-1”, “from-pstn,2211,1”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Goto (from-pstn,2211,1)
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:1] Set(“DAHDI/1-1”, “__FROM_DID=2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:2] NoOp(“DAHDI/1-1”, “Received an unknown call with DID set to 2211”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:3] Goto(“DAHDI/1-1”, “s,a2”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Goto (from-pstn,s,2)
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:2] Answer(“DAHDI/1-1”, “”) in new stack
[Apr 21 12:41:14] VERBOSE[12929] logger.c: – Executing [[email protected]:3] Wait(“DAHDI/1-1”, “2”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Redirecting DAHDI/1-1 to fax extension
[Apr 21 12:41:16] VERBOSE[12929] logger.c: == Spawn extension (from-pstn, fax, 1) exited non-zero on ‘DAHDI/1-1’
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:1] Goto(“DAHDI/1-1”, “ext-fax,in_fax,1”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Goto (ext-fax,in_fax,1)
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:1] StopPlayTones(“DAHDI/1-1”, “”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “1?3:analog_fax,1”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Goto (ext-fax,in_fax,3)
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:3] Macro(“DAHDI/1-1”, “faxreceive”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:1] Set(“DAHDI/1-1”, “FAXFILE=/var/spool/asterisk/fax/1303407674.437.tif”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:2] Set(“DAHDI/1-1”, "[email protected]") in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:3] Set(“DAHDI/1-1”, “FAX_FORCE_V17=1”) in new stack
[Apr 21 12:41:16] VERBOSE[12929] logger.c: – Executing [[email protected]:4] ReceiveFAX(“DAHDI/1-1”, “/var/spool/asterisk/fax/1303407674.437.tif”) in new stack
[Apr 21 12:41:44] VERBOSE[3703] logger.c: – Channel 0/1, span 1 got hangup request, cause 16
[Apr 21 12:41:44] WARNING[12929] app_fax.c: Error transmitting fax. result=49: The call dropped prematurely.
[Apr 21 12:41:44] WARNING[12929] app_fax.c: Transmission error
[Apr 21 12:41:44] VERBOSE[12929] logger.c: == Spawn extension (macro-faxreceive, s, 4) exited non-zero on ‘DAHDI/1-1’ in macro ‘faxreceive’
[Apr 21 12:41:44] VERBOSE[12929] logger.c: == Spawn extension (ext-fax, in_fax, 3) exited non-zero on ‘DAHDI/1-1’
[Apr 21 12:41:44] VERBOSE[12929] logger.c: – Executing [[email protected]:1] System(“DAHDI/1-1”, “/var/lib/asterisk/bin/fax-process.pl --to [email protected] --from [email protected] --dest “2211” --subject “Fax from 8009806858 TOLL%20FREE%20CALL” --attachment fax_8009806858.pdf --type application/pdf --file /var/spool/asterisk/fax/1303407674.437.tif”) in new stack
[Apr 21 12:41:44] VERBOSE[12929] logger.c: – Executing [[email protected]:2] Hangup(“DAHDI/1-1”, “”) in new stack
[Apr 21 12:41:44] VERBOSE[12929] logger.c: == Spawn extension (ext-fax, h, 2) exited non-zero on ‘DAHDI/1-1’
[Apr 21 12:41:44] VERBOSE[12929] logger.c: – Hungup ‘DAHDI/1-1’