i’m newbie
this is my extension.conf
[code][general]
static = yes
writeprotecte = yes
[Internal]
exten => 1000,1,Dial(dahdi/1,20,t)
exten => 1000,n,Set(LANGUAGE() = IT)
exten => 1000,n,SayNumber(EXTEN)
exten => 1000,n,Goto(s-${DIALSTATUS},1)
exten => 2000,1,Dial(dahdi/1,20,t)
exten => 2000,n,Set(LANGUAGE() = IT)
exten => 2000,n,SayNumber(EXTEN)
exten => 2000,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Festival(‘non risponde’)
exten => s,n,System(playsox.sh)
exten => s,n,Playback(frasetemp)
exten => s-BUSY,1,Festival('Occupato! ')
exten => s,n,System(playsox.sh)
exten => s,n,Playback(frasetemp)
exten => _s-.,1,Goto(s-NOANSWER,1)
exten => 8000,1,MusicOnHold()
exten => _9.,1,Dial(dahdi/g2/www${EXTEN:1})
exten => _9.,2,Congestion
[Incoming]
exten => s,1,Set(LANGUAGE()=it)
exten => s,n,Wait(1)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,SayDigits( ${CALLERID(all)} ${CALLERID(num)} )
;;Questo genera il wav in /tmp/output.wav
exten => s,n,Festival(‘Benvenuto! Digita il codice del manifesto!’)
;;questo trasforma il wav in un file gsm frasetemp.gsm nella cartlla di asterisk
exten => s,n,System(playsox.sh)
;;questo riproduce il frasetemp.gsm
exten => s,n,Playback(frasetemp)
exten => s,n,Read(Idmanifesto,10)
;exten => s,n,Goto(Leggi-Sommario,s,1)
exten => s,n,Goto(Leggi-Manifesto,s,1)
;exten => s,n,Hangup
[Leggi-Manifesto]
exten => s,1,MYSQL(Connect connid 127.0.0.1 patred picciola manifest)
exten => s,n,MYSQL(Query resultid ${connid} SELECT\ testo\ FROM\ Manifesto\ WHERE\ id=${Idmanifesto})
exten => s,n,MYSQL(Fetch fetchid ${resultid} text)
exten => s,n,Festival(${text})
exten => s,n,System(playsox.sh)
exten => s,n,Playback(frasetemp)
exten => s,n,MYSQL(Clear ${resultid})
exten => s,n,MYSQL(Disconnect ${connid})
exten => s,n,Hangup
[Leggi-Sommario]
exten => s,1,MYSQL(Connect connid 127.0.0.1 patred picciola manifest)
exten => s,n,MYSQL(Query resultid ${connid} SELECT\ sommario\ FROM\ Manifesto\ WHERE\ id=${Idmanifesto})
exten => s,n,MYSQL(Fetch fetchid ${resultid} text)
exten => s,n,Festival(${text})
exten => s,n,System(playsox.sh)
exten => s,n,Playback(frasetemp)
exten => s,n,MYSQL(Clear ${resultid})
exten => s,n,MYSQL(Disconnect ${connid})
exten => s,n,Hangup
[/code]
Can you suggest to me where to put these lines?
In incoming or Internal? Sorry