> Hi Ruben,
> 
> You should be looking at this thread
> http://lists.digium.com/pipermail/asterisk-users/2011-June/263995.html
> 
> Presently I don't have the time to generate and send logs however soon
> after my last post I did perform additional testing.
> 
> I am using ReceiveFAX using SPANDSP technology.
> 
> The occasions the System() call would not be executed, whether it was in
> 'h' of the dialplan  or the main part of the macro after ReceiveFAX(),
> was when a T.38 fax was being received, when it was a G.711 fax no
> matter what I did to the call it would always execute the System() call
> whether it was in the macro or the 'h'.
> 
> Cheers,
> 
> Larry.

Hi Larry,

Ok. It looks like I don't understand the asterisks context and macro
system deep enough.

I tried to set

======
; Faxe fuer Ruben
exten => 38444421,1,Macro(faxin,[email protected],${EXTEN})
exten => h,1,System(/usr/local/bin/fax2mail.sh ${FAXFILE} ${TO})
======

Of couse I have to set up some number filtering but now, my bash script
is beeing executed.

So, as I understand the thread you gave me to read, the h-extension is
called in the context from which the macro is called and not in the
macro itself? This could explain why it works now.

Anyway, thank you for giving me the opportunity to look beyond my own
backyard!

Regards,
Ruben

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to