[general] ; if static=yes and writeprotect=no, you can save dialplan by ; CLI command 'save dialplan' too ; static=yes writeprotect=yes autofallthrough=yes clearglobalvars=no priorityjumping=no [default] ; exten => _*8.,hint,SIP/2001&SIP/2002 ; exten => _*8.,1,GotoIf($["${PICKUPMARK}" = ""]?pickup) ; exten => _*8.,200(pickup),Pickup(${EXTEN:2}@PICKUPMARK) ;include => to-gateway include => systemalarm include => test include => cluster-watchdog include => to-internal-nobody include => to-conferences include => to-internal-users ;include => to-internal-users-self ; for the hints ;FIXME ; IVR demo ;#FIXME-NO-exec "/opt/gemeinschaft/ivrs/gen-ivr.php" ;##by whe ### [to-internal-custom] exten => 250,1,Goto(custom-fax,s,1) [custom-fax] exten => s,1,Set(SCRIPTFILE=/var/lib/asterisk/bin/fax2mail.sh) exten => s,n,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten => s,n,Set(MAILADDR=whe@xye.at) exten => s,n,Wait(3) exten => s,n,rxfax(${FAXFILE}) exten => h,1,System("${SCRIPTFILE}" "${FAXFILE}" "${MAILADDR}" "${CALLERID(num)}") exten => h,n,Hangup