Thanks for your help. I have got it working by using your example and this line in features.conf
txtbotaway => *1,caller,System,perl.exe …/usr/bin/tscommands/tsaway.pl ;change to the away channel
an in extensions.conf
exten => 3000,1,Set(DYNAMIC_FEATURES=txtbotaway)
I had to change a few default featues to make it compatible with my dial plan as well. At first I couldnt unerstand why the default test feature #9 to play tt-monkeys wasnt working. Well its because default # is transfer and so we never could get to #9. Maybe the example shoul of thought of that…oh well.
I also tried to set it up as a macro as well… in features.conf:
txtbotaway => *1,caller,Macro,TXTBOTAWAY
and in extensions.conf:
[MACRO-TXTBOTAWAY]
exten => s,1,System(perl.exe …/usr/bin/tscommands/tsaway.pl)
exten => i,1,Hangup
exten => t,1,Hangup
exten => h,1,System(perl.exe …/usr/bin/tscommands/tsdis.pl)
exten => h,2,Hangup
but when I run this the CLI makes this complaint:
macro 'TXTBOTAWAY lacks ‘s’ extension, priority 1
and nothing happens. Interesting because there is clearly an s, 1 priority