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

magento api debug

ob_start();
Mage::run($mageRunCode, $mageRunType);

if(preg_match('/api/', $_SERVER['REQUEST_URI'])) {
        Mage::log('<<< request '.$_SERVER['REQUEST_METHOD'].': '.$_SERVER['REQUEST_URI'], null, 'api.log');
        if($_SERVER['REQUEST_METHOD'] == 'POST') {
                Mage::log('<<< '.file_get_contents('php://input'), null, 'api.log');
        }
        Mage::log('>>> '.ob_get_contents(), null, 'api.log');
}

ob_end_flush();

 

http://stackoverflow.com/questions/12084772/magento-api-logs