{"id":116,"date":"2015-12-04T15:52:14","date_gmt":"2015-12-04T15:52:14","guid":{"rendered":"http:\/\/ibcloud.com.br\/blog\/?p=116"},"modified":"2015-12-04T15:52:14","modified_gmt":"2015-12-04T15:52:14","slug":"elastix-passando-a-informacao-correta-de-hangup","status":"publish","type":"post","link":"https:\/\/humanizati.com.br\/blog\/2015\/12\/04\/elastix-passando-a-informacao-correta-de-hangup\/","title":{"rendered":"Elastix &#8211; Passando a informa\u00e7\u00e3o correta de HANGUP"},"content":{"rendered":"<p>Ol\u00e1! Quantas vezes o seu cliente lhe ligou para dizer que &#8220;s\u00f3 da aquela mensagem (Todas as linhas est\u00e3o ocupadas no momento)&#8221;, isso se deve ao fato do Elastix tratar os HANGUPs CAUSES do Asterisk de uma forma muito gen\u00e9rica, ou seja ele n\u00e3o foi preparado para passar a informa\u00e7\u00e3o exata do resultado do HANGUP informado pela operadora e isso pode ser uma dor de cabe\u00e7a em links SIP e E1s.<\/p>\n<p>Existe uma maneira de resolver esse problema que \u00e9 for\u00e7ando e sobrescrevendo a MACRO [macro-outisbusy] do Elastix, para isso vamos alterar o arquivo extensions_override_elastix.conf e inserir uma nova macro-outisbusy<\/p>\n<p>V\u00e1 at\u00e9 o final do arquivo e cole o c\u00f3digo abaixo.<\/p>\n<p>[macro-outisbusy]<br \/>\ninclude =&gt; macro-outisbusy-custom<br \/>\nexten =&gt; s,1,Progress<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${EMERGENCYROUTE}&#8221; = &#8220;YES&#8221;]?emergency,1)<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${INTRACOMPANYROUTE}&#8221; = &#8220;YES&#8221;]?intracompany,1)<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${HANGUPCAUSE}&#8221; = &#8220;1&#8221;]?unallocated,1)<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${HANGUPCAUSE}&#8221; = &#8220;18&#8221;]?unallocated,1)<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${HANGUPCAUSE}&#8221; = &#8220;21&#8221;]?unallocated,1)<br \/>\nexten =&gt; s,n,GotoIf($[&#8220;${HANGUPCAUSE}&#8221; = &#8220;102&#8221;]?timeexpiry,1)<br \/>\nexten =&gt; unallocated,1,Playback(ss-noservice, noanswer)<br \/>\nexten =&gt; unallocated,n,Congestion(20)<br \/>\nexten =&gt; unallocated,n,Hangup<br \/>\nexten =&gt; timeexpiry,1,Playback(connection-timed-out, noanswer)<br \/>\nexten =&gt; timeexpiry,n,Congestion(20)<br \/>\nexten =&gt; timeexpiry,n,Hangup<br \/>\nexten =&gt; s,n,Playback(all-circuits-busy-now&amp;pls-try-call-later, noanswer)<br \/>\nexten =&gt; s,n,Congestion(20)<br \/>\nexten =&gt; s,n,Hangup<br \/>\nexten =&gt; intracompany,1,Playback(all-circuits-busy-now&amp;pls-try-call-later, noanswer)<br \/>\nexten =&gt; intracompany,n,Congestion(20)<br \/>\nexten =&gt; intracompany,n,Hangup<br \/>\nexten =&gt; emergency,1,Playback(all-circuits-busy-now&amp;pls-try-call-later)<br \/>\nexten =&gt; emergency,n,Congestion(20)<br \/>\nexten =&gt; emergency,n,Hangup<\/p>\n<p>Com este contexto e a macro sobrescrita voc\u00ea come\u00e7a a tratar a &#8220;causa&#8221; de seus HANGUPs de uma maneira mais precisa e se for o caso pode personalizar conforme a sua necessidade. Veja que basicamente para inserir novos HANGUPs voc\u00ea ter\u00e1 que tratar os GotoIf e criar a chamada para os audios adequados.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1! Quantas vezes o seu cliente lhe ligou para dizer que &#8220;s\u00f3 da aquela mensagem (Todas as linhas est\u00e3o ocupadas no momento)&#8221;, isso se deve&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[90,93,91,92],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-elastix-hangup","tag-elastix-todas-linhas-ocupadas","tag-hangup-cause-elastix","tag-hangupcause-elastix"],"_links":{"self":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":1,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}