setup fxo to a fax extension

fredsi

Joined
Jul 12, 2010
Messages
20
Likes
0
Points
0
#1
Hi there,

i have problem on how to setup a fax on a fxo port. i setup a dahdi extension 6083 at channel dahdi/13, signalling fxo_ks. i connect it to a fax machine, now i can send fax to it by setup a incoming route, but i can't fax out from that fax machine. whenever i tried to send a fax, i heard the machine got busy tone, but if i connect a phone to it, i can dial no problem. here is the output when i try to send a fax:

-- Starting simple switch on 'DAHDI/13-1'
-- Redirecting DAHDI/13-1 to fax extension
-- Executing [fax@from-internal:1] Goto("DAHDI/13-1", "||") in new stack
== Spawn extension (from-internal, fax, 1) exited non-zero on 'DAHDI/13-1'
-- Executing [h@from-internal:1] Macro("DAHDI/13-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/13-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/13-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/13-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("DAHDI/13-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/13-1' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/13-1'
-- Hungup 'DAHDI/13-1'

any idea what the problem is? thanks in advance.

Fred
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
in chan_dahdi.conf change to faxdetect=no and reload dahdi
 

fredsi

Joined
Jul 12, 2010
Messages
20
Likes
0
Points
0
#3
thank you dicko,

it can dial now, but it always gets Comm. Error. here is the cli output:

-- Starting simple switch on 'DAHDI/13-1'
-- Executing [13108180899@from-internal:1] Macro("DAHDI/13-1", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/13-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/13-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/13-1", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/13-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/13-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/13-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/13-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/13-1", "Using CallerID "" <>") in new stack
-- Executing [13108180899@from-internal:2] NoOp("DAHDI/13-1", "Calling Out Route: Domestic") in new stack
-- Executing [13108180899@from-internal:3] Set("DAHDI/13-1", "MOHCLASS=default") in new stack
-- Executing [13108180899@from-internal:4] Set("DAHDI/13-1", "_NODEST=") in new stack
-- Executing [13108180899@from-internal:5] Macro("DAHDI/13-1", "record-enable||OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/13-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/13-1", "1|MacroExit|") in new stack
-- Executing [13108180899@from-internal:6] Macro("DAHDI/13-1", "dialout-trunk|8|13108180899|") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("DAHDI/13-1", "DIAL_TRUNK=8") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("DAHDI/13-1", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("DAHDI/13-1", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("DAHDI/13-1", "DIAL_NUMBER=13108180899") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("DAHDI/13-1", "DIAL_TRUNK_OPTIONS=Wwtr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("DAHDI/13-1", "OUTBOUND_GROUP=OUT_8") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("DAHDI/13-1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/13-1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("DAHDI/13-1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("DAHDI/13-1", "outbound-callerid|8") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/13-1", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/13-1", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/13-1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("DAHDI/13-1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("DAHDI/13-1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("DAHDI/13-1", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/13-1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("DAHDI/13-1", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("DAHDI/13-1", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/13-1", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/13-1", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("DAHDI/13-1", "1?sub-flp-8|s|1") in new stack
-- Executing [s@sub-flp-8:1] ExecIf("DAHDI/13-1", "0|Set|TARGET_FLP48=113108180899") in new stack
-- Executing [s@sub-flp-8:2] GotoIf("DAHDI/13-1", "0?match") in new stack
-- Executing [s@sub-flp-8:3] ExecIf("DAHDI/13-1", "0|Set|TARGET_FLP48=162613108180899") in new stack
-- Executing [s@sub-flp-8:4] GotoIf("DAHDI/13-1", "0?match") in new stack
-- Executing [s@sub-flp-8:5] Return("DAHDI/13-1", "") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("DAHDI/13-1", "OUTNUM=13108180899") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("DAHDI/13-1", "custom=IAX2/owbib") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("DAHDI/13-1", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^default)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("DAHDI/13-1", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/13-1", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("DAHDI/13-1", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/13-1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("DAHDI/13-1", "IAX2/owbib/13108180899|300|") in new stack
-- Called owbib/13108180899
-- Call accepted by 192.168.11.22 (format ulaw)
-- Format for call is ulaw
-- IAX2/owbib-16384 is proceeding passing it to DAHDI/13-1
-- Accepting AUTHENTICATED call from 192.168.11.22:
> requested format = ulaw,
> requested prefs = (ulaw),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
-- Executing [3108180899@from-internal:1] Set("IAX2/to22ib-4969", "__FROM_DID=3108180899") in new stack
-- Executing [3108180899@from-internal:2] Gosub("IAX2/to22ib-4969", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("IAX2/to22ib-4969", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("IAX2/to22ib-4969", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Set("IAX2/to22ib-4969", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:4] Return("IAX2/to22ib-4969", "") in new stack
-- Executing [3108180899@from-internal:3] ExecIf("IAX2/to22ib-4969", "1 |Set|CALLERID(name)=") in new stack
-- Executing [3108180899@from-internal:4] Set("IAX2/to22ib-4969", "__CALLINGPRES_SV=unavailable") in new stack
-- Executing [3108180899@from-internal:5] SetCallerPres("IAX2/to22ib-4969", "allowed_not_screened") in new stack
-- Executing [3108180899@from-internal:6] Goto("IAX2/to22ib-4969", "from-did-direct|6099|1") in new stack
-- Goto (from-did-direct,6099,1)
-- Executing [6099@from-did-direct:1] Macro("IAX2/to22ib-4969", "exten-vm|novm|6099") in new stack
-- Executing [s@macro-exten-vm:1] Macro("IAX2/to22ib-4969", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] Set("IAX2/to22ib-4969", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("IAX2/to22ib-4969", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("IAX2/to22ib-4969", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:4] Set("IAX2/to22ib-4969", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("IAX2/to22ib-4969", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("IAX2/to22ib-4969", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("IAX2/to22ib-4969", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("IAX2/to22ib-4969", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("IAX2/to22ib-4969", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("IAX2/to22ib-4969", "Using CallerID "" <>") in new stack
-- Executing [s@macro-exten-vm:2] Set("IAX2/to22ib-4969", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("IAX2/to22ib-4969", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("IAX2/to22ib-4969", "__EXTTOCALL=6099") in new stack
-- Executing [s@macro-exten-vm:5] Set("IAX2/to22ib-4969", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("IAX2/to22ib-4969", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("IAX2/to22ib-4969", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("IAX2/to22ib-4969", "record-enable|6099|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("IAX2/to22ib-4969", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("IAX2/to22ib-4969", "0|MacroExit|") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("IAX2/to22ib-4969", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("IAX2/to22ib-4969", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("IAX2/to22ib-4969", "1|MacroExit|") in new stack
-- Executing [s@macro-exten-vm:9] Macro("IAX2/to22ib-4969", "dial||Wwtr|6099") in new stack
-- Executing [s@macro-dial:1] GotoIf("IAX2/to22ib-4969", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("IAX2/to22ib-4969", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
dialparties.agi: USE_CONFIRMATION: 'FALSE'
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 6099 to extension map
> dialparties.agi: Extension 6099 has call screening off
-- dialparties.agi: Extension 6099 cf is disabled
-- dialparties.agi: Extension 6099 do not disturb is disabled
> dialparties.agi: extnum 6099 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 6099 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 6099
-- dialparties.agi: DbDel CALLTRACE/6099 - Caller ID is not defined
-- dialparties.agi: Filtered ARG3: 6099
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("IAX2/to22ib-4969", "IAX2/6099||Wwtr") in new stack
-- Called 6099
-- Call accepted by 127.0.0.1 (format ulaw)
-- Format for call is ulaw
-- IAX2/6099-14875 is ringing
-- IAX2/6099-14875 answered IAX2/to22ib-4969
-- IAX2/owbib-16384 answered DAHDI/13-1
-- Executing [h@macro-dialout-trunk:1] Macro("DAHDI/13-1", "hangupcall|") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/13-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/13-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/13-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("DAHDI/13-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/13-1' in macro 'hangupcall'
== Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on 'DAHDI/13-1'
-- Hungup 'IAX2/owbib-16384'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'DAHDI/13-1' in macro 'dialout-trunk'
== Spawn extension (from-internal, 13108180899, 6) exited non-zero on 'DAHDI/13-1'
-- Hungup 'DAHDI/13-1'
-- Executing [h@macro-dial:1] Macro("IAX2/to22ib-4969", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("IAX2/to22ib-4969", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("IAX2/to22ib-4969", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("IAX2/to22ib-4969", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("IAX2/to22ib-4969", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'IAX2/to22ib-4969' in macro 'hangupcall'
== Spawn h extension (macro-dial, h, 1) exited non-zero on 'IAX2/to22ib-4969'
-- Hungup 'IAX2/6099-14875'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'IAX2/to22ib-4969' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'IAX2/to22ib-4969' in macro 'exten-vm'
== Spawn extension (from-did-direct, 6099, 1) exited non-zero on 'IAX2/to22ib-4969'
-- Hungup 'IAX2/to22ib-4969'


in which 3108180899 is a DID that rings to 6099, a virtual fax. it will go through when i connect the fax machine to a regular line. any suggestion? thanks.

fred
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top