Fax to email not working

Hi All

I am trying to get fax to email setup, however I can only partially get it working.

I have setup a virtual extension and assigned it to a user. The user has an email address set and been enabled for fax. I have associated an inbound route with fax detection to this user. I have enabled fax detection on the trunk as well.

When I send a fax with the same CLID it works, but fails with everything else.

Below are the logs:

[2017-12-11 22:02:38] VERBOSE[13942][C-00000125] pbx.c: Executing [s@macro-dialout-trunk:31] Dial(“PJSIP/0285791637-000002f0”, “PJSIP/[email protected],300,T”) in new stack
[2017-12-11 22:02:38] VERBOSE[13942][C-00000125] app_dial.c: Called PJSIP/[email protected]
[2017-12-11 22:02:39] VERBOSE[32747] pbx_variables.c: Setting global variable ‘SIPDOMAIN’ to ‘10.100.0.5’
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [0285791638@from-trunk:1] Set(“PJSIP/10.2.0.62-000002f2”, “__FROM_DID=0285791638”) in new stack
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [0285791638@from-trunk:2] NoOp(“PJSIP/10.2.0.62-000002f2”, “Received an unknown call with DID set to 0285791638”) in new stack
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [0285791638@from-trunk:3] Goto(“PJSIP/10.2.0.62-000002f2”, “s,a2”) in new stack
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx_builtins.c: Goto (from-trunk,s,2)
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [s@from-trunk:2] Answer(“PJSIP/10.2.0.62-000002f2”, “”) in new stack
[2017-12-11 22:02:39] VERBOSE[13942][C-00000125] app_dial.c: PJSIP/10.2.0.62-000002f1 answered PJSIP/0285791637-000002f0
[2017-12-11 22:02:39] VERBOSE[13954][C-00000125] bridge_channel.c: Channel PJSIP/10.2.0.62-000002f1 joined ‘simple_bridge’ basic-bridge <963d875f-4dc1-4656-a2cb-dc8706aa863e>
[2017-12-11 22:02:39] VERBOSE[13942][C-00000125] bridge_channel.c: Channel PJSIP/0285791637-000002f0 joined ‘simple_bridge’ basic-bridge <963d875f-4dc1-4656-a2cb-dc8706aa863e>
[2017-12-11 22:02:39] WARNING[13953][C-00000126] chan_sip.c: This function can only be used on SIP channels.
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [s@from-trunk:3] Log(“PJSIP/10.2.0.62-000002f2”, "WARNING,Friendly Scanner from ") in new stack
[2017-12-11 22:02:39] WARNING[13953][C-00000126] Ext. s: Friendly Scanner from
[2017-12-11 22:02:39] VERBOSE[13953][C-00000126] pbx.c: Executing [s@from-trunk:4] Wait(“PJSIP/10.2.0.62-000002f2”, “2”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] chan_pjsip.c: Redirecting ‘PJSIP/10.2.0.62-000002f2’ to fax extension due to CNG detection
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Spawn extension (from-trunk, fax, 1) exited non-zero on ‘PJSIP/10.2.0.62-000002f2’
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [fax@from-trunk:1] Set(“PJSIP/10.2.0.62-000002f2”, “__DIRECTION=INBOUND”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [fax@from-trunk:2] Goto(“PJSIP/10.2.0.62-000002f2”, “,”) in new stack
[2017-12-11 22:02:41] NOTICE[13953][C-00000126] pbx.c: Cannot find extension context ‘’
[2017-12-11 22:02:41] WARNING[13953][C-00000126] pbx.c: Priority ‘’ must be a number > 0, or valid label
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Spawn extension (from-trunk, fax, 2) exited non-zero on ‘PJSIP/10.2.0.62-000002f2’
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [h@from-trunk:1] Macro(“PJSIP/10.2.0.62-000002f2”, “hangupcall,”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/10.2.0.62-000002f2”, “1?theend”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/10.2.0.62-000002f2”, “0?Set(CDR(recordingfile)=)”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“PJSIP/10.2.0.62-000002f2”, " monior file= ") in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [s@macro-hangupcall:5] AGI(“PJSIP/10.2.0.62-000002f2”, “attendedtransfer-rec-restart.php,”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] res_agi.c: <PJSIP/10.2.0.62-000002f2>AGI Script attendedtransfer-rec-restart.php completed, returning 0
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Executing [s@macro-hangupcall:6] Hangup(“PJSIP/10.2.0.62-000002f2”, “”) in new stack
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on ‘PJSIP/10.2.0.62-000002f2’ in macro ‘hangupcall’
[2017-12-11 22:02:41] VERBOSE[13953][C-00000126] pbx.c: Spawn extension (from-trunk, h, 1) exited non-zero on ‘PJSIP/10.2.0.62-000002f2’
[2017-12-11 22:02:41] VERBOSE[13954][C-00000125] bridge_channel.c: Channel PJSIP/10.2.0.62-000002f1 left ‘simple_bridge’ basic-bridge <963d875f-4dc1-4656-a2cb-dc8706aa863e>
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] bridge_channel.c: Channel PJSIP/0285791637-000002f0 left ‘simple_bridge’ basic-bridge <963d875f-4dc1-4656-a2cb-dc8706aa863e>
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] app_macro.c: Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on ‘PJSIP/0285791637-000002f0’ in macro ‘dialout-trunk’
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Spawn extension (from-internal, 85791638, 7) exited non-zero on ‘PJSIP/0285791637-000002f0’
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Executing [h@from-internal:1] Macro(“PJSIP/0285791637-000002f0”, “hangupcall”) in new stack
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/0285791637-000002f0”, “1?theend”) in new stack
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/0285791637-000002f0”, “0?Set(CDR(recordingfile)=)”) in new stack
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“PJSIP/0285791637-000002f0”, "PJSIP/10.2.0.62-000002f1 monior file= ") in new stack
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] pbx.c: Executing [s@macro-hangupcall:5] AGI(“PJSIP/0285791637-000002f0”, “attendedtransfer-rec-restart.php,PJSIP/10.2.0.62-000002f1,”) in new stack
[2017-12-11 22:02:41] VERBOSE[13942][C-00000125] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php

This topic was automatically closed 86 days after the last reply. New replies are no longer allowed.