[general] context=default ; Default context for incoming calls subscribecontext=blf notifyhold=yes notifyringing = yes allowguest=no ; Allow or reject guest calls (default is yes, this can also be set to 'osp' ; if asterisk was compiled with OSP support. realm=sentro ; Realm for digest authentication ; defaults to "asterisk" ; Realms MUST be globally unique according to RFC 3261 ; Set this to your host name or domain name bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) language=it ; Default language setting for all users/peers dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833 dtmf=rfc2833 disallow=all allow=ulaw allow=alaw localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks localnet=192.168.1.0/255.255.0.0; All RFC 1918 addresses are local networks [11] type=friend host=dynamic nat=yes reinvite=no canreinvite=no qualify=1000 disallow=all allow=ulaw allow=alaw username=11 dtmfmode = rfc2833 callerid="Sasch2 <11>" secret=**** context=intranet [12] type=friend callerid="Assistenza <12>" secret=**** host=dynamic nat=yes canreinvite=no dtmfmode=rfc2833 disallow=all allow=ulaw allow=alaw dtmfmode = rfc2833 context=intranet root@centres:/home/sasch# cat /etc/asterisk/extensions.conf ;! ;! Automatically generated configuration file ;! Filename: extensions.conf (/etc/asterisk/extensions.conf) ;! Generator: Manager ;! Creation Date: Mon Jan 8 11:42:32 2007 ;! [general] static = yes writeprotect = no clearglobalvars = no priorityjumping = yes [globals] CONSOLE = Console/dsp ; Console interface for demo TRUNK = Zap/1 TRUNK2 = SIP/2 FAX = Zap/3 ; Trunk interface [macro-segreteria] exten => s,1,Answer ; Answer the line exten => s,n,Wait,1 exten => s,n,Background(vm-intro) exten => s,n,Voicemail(8000@default|s) [pstn] include => aperto|15:00-19:30|mon-sat|*|* include => semichiuso|08:00-14:59|mon-sat|*|* include => chiuso|*|*|*|* [aperto] exten => fax,1,Dial(${GLOBAL(FAX)}) exten => s,1,Answer ; Answer the line exten => s,n,Wait,1 exten => s,n,System(/bin/echo "'${CALLERID} ${DATETIME}'\n" >> /var/log/asterisk/chiamate_ricevute_`date '+%m_%d_%Y'`.txt) exten => s,n,ringing exten => s,n,Dial(SIP/13&SIP/12,7,tr) exten => s,n,Background(queue-callswaiting) exten => s,n,Queue(papinicomputer|t|||35) exten => s,n,Macro(segreteria) exten => s,n,Hangup [semichiuso] exten => fax,1,Dial(${GLOBAL(FAX)}) exten => s,1,Answer ; Answer the line exten => s,n,Wait,1 exten => s,n,System(/bin/echo "'${CALLERID} ${DATETIME}'\n" >> /var/log/asterisk/chiamate_ricevute_`date '+%m_%d_%Y'`.txt) exten => s,n,Dial(SIP/12&SIP/13&SIP/11,10,tr) exten => s,n,Macro(segreteria) exten => s,n,Hangup [chiuso] exten => fax,1,Dial(${GLOBAL(FAX)}) exten => s,1,Answer ; Answer the line exten => s,n,Wait,1 exten => s,n,System(/bin/echo "'${CALLERID} ${DATETIME}'\n" >> /var/log/asterisk/chiamate_ricevute_`date '+%m_%d_%Y'`.txt) exten => s,n,Dial(SIP/12&SIP/13&SIP/11,10,tr) exten => s,n,Macro(segreteria) exten => s,n,Hangup [intranet] exten => _9.,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:1}) exten => _2.,1,Dial(${GLOBAL(TRUNK2)}/${EXTEN:1}) exten => _3.,1,Dial(${GLOBAL(TRUNK3)}/${EXTEN:1}) exten => 10,1,Dial(SIP/10) exten => 11,1,Dial(SIP/11) exten => 12,1,Dial(SIP/12) exten => 13,1,Dial(SIP/13) exten => 15,1,Dial(SIP/15) exten => 4,1,Dial(${GLOBAL(FAX)}) exten => 8000,1,VoiceMailMain(8000) [blf] exten => 10,hint,SIP/10 exten => 11,hint,SIP/11 exten => 12,hint,SIP/12 exten => 13,hint,SIP/13 exten => 15,hint,SIP/15 exten => 4,hint,${GLOBAL(FAX)}