I've got a working program I use to access the parallel printer port.
From the command prompt I type ./program 0xff
and I get an output to my port.
I type ./program 0x00 and the output is removed.
What I want is to have trixbox run this program in response to a dialed ext. Basicaly pick up phone, dial 333 and trixbox runs the linux command ./program 0xff thereby turning on the port output.
Here is what I have tried
adding this to the extensions_custom.conf file
[from-internal-custom]
exten => 333,1,system(./lptout 0xff)
exten => 444,1,system(./lptout 0x00)
when I try dialing 333 this is what I get
trixbox1*CLI>
-- Starting simple switch on 'Zap/1-1'
-- Executing [333@from-internal:1] System("Zap/1-1", "./lptout 0xff") in new stack
== Spawn extension (from-internal, 333, 1) exited non-zero on 'Zap/1-1'
-- Executing [h@from-internal:1] Macro("Zap/1-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/1-1", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/1-1", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/1-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/1-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/1-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("Zap/1-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
Any Help?
Thanks

Member Since:
2008-09-19