Displaying 1 result from an estimated 1 matches for "bchannelinfo".
Did you mean:
channelinfo
2011 Jun 29
1
dialplan execution stops after ReceiveFax
...Ruben
exten => 12345,1,Macro(faxin,ruben.roegels at jumping-frog.org,${EXTEN})
======
My macro for the fax receiving looks like that:
======
[macro-faxin]
; Faxe
; ARG1 = eMail-Adresse
exten => s,1,Verbose(${BOUNDARY} Eingehender Ruf von ${CALLERID(num)})
exten => s,n,Verbose(${BOUNDARY} BCHANNELINFO ${BCHANNELINFO})
; nur verarbeiten, wenn B-Kanal frei ist
exten => s,n,GotoIf($[${BCHANNELINFO} = 2]?hangup:free)
exten => s,n(free),NoOp()
exten => s,n,Set(TO=${ARG1})
exten => s,n,Verbose(1,${BOUNDARY} Eingehendes Fax ${CDR(uniqueid)})
exten => s,n,Set(FAXFILE=/var/spool/fax/fax-${...