[root@localhost leonardo]# cat /etc/asterisk/extensions.conf [general] static=yes writeprotect=yes ;: [public] ; Incoming calls with no destination land here (usually from the PSTN) ; make incoming calls ring on certain phones ; Give access to outgoing lines or internal extensions if authenticated via ; voicemail since authentication is required by that system ; Ring SIP phones that are "general" lines. ; If the lines ring for >20 seconds, play an amusing message and ; then dial the "u"navailable voicemail box. ; If the lines are busy, dial the "b"usy voicemail box. exten => s,1,Zapateller(answer|nocallerid) exten => s,2,Dial(${PHONE1}&${PHONE2},15,Ttm) exten => s,3,Voicemail(u${GENERALVM}) exten => s,4,Hangup exten => s,103,Voicemail(b${GENERALVM}) exten => s,104,Hangup ; If we detect a fax tone send call to extension 22 priority 1 ; Not all fax machines/fax modems send a fax tone when calling. ; If we get a call from one of those then we can't detect that it's a fax call. ; This only works for devices on Zap channels (Digium cards). ; exten => fax,1,Goto(22,1) ; Hang up the line if the caller doesn't do anything exten => t,1,Hangup ; Provide a voicemail * button extension exten => a,1,VoicemailMain