Hi all-
Can you assign the tl-stdexten-fax as a User Extension type? It looks like you should be able to add a user this way instead of doing the inbound route thing.
the note on the page:
** Note that only scripts with phone and mailbox as 2 first arguments can be used here and that the first 2 arguments are not shown.
I would like to create a user script that only handles faxes in a dedicated format in TL. Has anybody made a script that would do this yet?
Thanks-
Sean
why the hell would you do
why the hell would you do that instead of just added a feature code and send it to the email. you really want to manage voicemail, a user portal, findme/follow me, filesystem permissions, call recordings of faxed calls, conference room management, etc. etc, just because you cant figure out how to make a feature code? thats kinda like ice skating up a cliff.
Created clone of ts-stdextn-fax
Added Arguments 1, 2 and 3 from tl-userextn (I remarked out the non-applicable stuff, see below)
Added Argument 4 as E-mail to deliver fax to:
\
;;exten => s,1,Set(__DIALED_NUMBER=${MACRO_EXTEN})
;;exten => s,n,Set(__PICKUPMARK=${MACRO_EXTEN}${TL_DASH}${tenant})
;;exten => s,n,ExecIf($[$[${LEN(${CALLERID(num)})} < 7] & $[${DB_EXISTS(TL/TENANT/${tenant}/usedistinctring)}]],SIPAddHeader,Alert-Info: <${DB(TL/TENANT/${tenant}/intalertinfo)}>) ;;=Asterisk-1.4
;;exten => s,n,ExecIf($[$[${LEN(${CALLERID(num)})} < 7] & $[${DB_EXISTS(TL/TENANT/${tenant}/usedistinctring)}]]?SIPAddHeader(Alert-Info: <${DB(TL/TENANT/${tenant}/intalertinfo)}>)) ;;=Asterisk-1.6
;;exten => s,n,GotoIf($["${RINGGROUP_TIMEOUT}" != "" & "${BLINDTRANSFER}" = ""]?doingringgroup)
;;exten => s,n,Macro(tl-userexten-base,${ARG1},${ARG2},${ARG3})
;;exten => s,n,MacroExit
;;exten => s,n(doingringgroup),Macro(tl-userexten-rg-base,${ARG1},${RINGGROUP_TIMEOUT})
exten => s,1,Set(EMAILADDR="${ARG4}")
exten => s,n,Goto(tl-faxreceive,s,1)
Argument 1 - Phone to Ring - phone(s)/Line(s)
Arugment 2 - Mailbox to leave voicemail - Mailbox(es)
Argument 3 - Operator Extension - Extension(s)
Argument 4 - E-mail address to send faxes to - Text
Applied to User Extensions
Voila - PDF E-mails on a dedicated fax extension.
Now, on to the on/off checkbox and tenant customizations for the sending scripts....