Iptables redirect port 80 to port 8080

iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

 

http://proghowto.com/iptables-redirect-port-80-to-port-8080

asterisk tratar hangupcause

O correto não é mudar esse arquivo, para isso existe o arquivo extensions_override_elastix.conf então eu fui até o fim desse arquivo e criei a minha macro-outisbusy personalizada para tratar os meus HANGUPCAUSE, no fim das contas, coloquei o a mesma mensagem para o HANGUPCAUSE 1 e 21:

;tratar os hangupcase

 [macro-outisbusy]
exten => s,1,Progress
exten => s,n,GotoIf($[“${EMERGENCYROUTE}” = “YES”]?emergency,1)
exten => s,n,GotoIf($[“${INTRACOMPANYROUTE}” = “YES”]?intracompany,1)
exten => s,n,GotoIf($[“${HANGUPCAUSE}” = “17”]?ocupado,1)
exten => s,n,Playback(all-circuits-busy-now&pls-try-call-later, noanswer)
exten => s,n,Congestion(20)
exten => s,n,Hangup

exten => intracompany,1,Playback(all-circuits-busy-now&pls-try-call-later, noanswer)
exten => intracompany,n,Congestion(20)
exten => intracompany,n,Hangup

exten => emergency,1,Playback(all-circuits-busy-now&pls-try-call-later)
exten => emergency,n,Congestion(20)
exten => emergency,n,Hangup

exten => ocupado,1,Playback(outbusy, noanswer)
exten => ocupado,n,Congestion(20)
exten => ocupado,n,Hangup

https://groups.google.com/forum/#!msg/elastixbrasil/4lggR85BkWg/sEuzLtNwTTwJ