<div>Olá Carlos</div><div><br></div><div>o padrão do SNEP:</div><div>nos ramais alaw, ulaw,gsm,g729,ilbc</div><div><br></div><div>veja depois que eu coloquei o :</div><div><div>[khomp-00]</div><div>exten => s,1,Dial(SIP/1010)</div>
<div>exten => s,n,Hangup()</div></div><div><br></div><div>funcionou e é realmente algo de errado no default ( pelo que os tecnicos da khomp disseram)</div><div>agora como resolver é o problema. tenho um bom conhecimento em linux mas em asterisk estou engatinhando....</div>
<div><br></div><div>obrigado pela ajuda</div><div><br></div><div>para tentar ajudar quando faço um dialplan reload aparece embaixo:</div><div><br></div><div><br></div><div><div>*CLI> dialplan reload</div><div>Dialplan reloaded.</div>
<div> == Parsing '/etc/asterisk/extensions.conf': == Found</div><div> == Parsing '/etc/asterisk/snep/snep-features.conf': == Found</div><div> == Parsing '/etc/asterisk/snep/snep-agentes.conf': == Found</div>
<div> == Parsing '/etc/asterisk/custom/preagi.conf': == Found</div><div> == Parsing '/etc/asterisk/custom/posagi.conf': == Found</div><div> == Parsing '/etc/asterisk/custom/eof.conf': == Found</div>
<div> == Parsing '/etc/asterisk/snep/snep-conferences.conf': == Found</div><div> == Setting global variable 'CONSOLE' to 'Console/dsp'</div><div> == Setting global variable 'TRANSFER_CONTEXT' to 'transferencias'</div>
<div> -- Registered extension context 'khomp-fxs'; registrar: pbx_config</div><div> -- Added extension '_*8' priority 1 to khomp-fxs</div><div> -- Added extension '_*8' priority 2 to khomp-fxs</div>
<div> -- Added extension '_*[012345679].' priority 1 to khomp-fxs</div><div> -- Added extension '_*[012345679].' priority 2 to khomp-fxs</div><div> -- Added extension '_#.' priority 1 to khomp-fxs</div>
<div> -- Added extension '_#.' priority 2 to khomp-fxs</div><div> -- Added extension '_X.' priority 1 to khomp-fxs</div><div> -- Added extension '_X..' priority 2 to khomp-fxs</div><div> -- Registered extension context 'macro-identifyExtension'; registrar: pbx_config</div>
<div> -- Added extension 's' priority 1 to macro-identifyExtension</div><div> -- Added extension 's' priority 2 to macro-identifyExtension</div><div> -- Added extension 's' priority 3 to macro-identifyExtension</div>
<div> -- Registered extension context 'default'; registrar: pbx_config</div><div> -- Added extension '_*01XXXX' priority 1 to default</div><div> -- Added extension '_*01XXXX' priority 2 to default</div>
<div> -- Added extension '_*01XXXX' priority 3 to default</div><div> -- Added extension '_*01XXXX' priority 4 to default</div><div> -- Added extension '_*01XXXX' priority 5 to default</div>
<div> -- Added extension '_*01XXXX' priority 6 to default</div><div> -- Added extension '_*01XXXX' priority 7 to default</div><div> -- Added extension '_*01XXXX' priority 8 to default</div>
</div><div><div> -- Added extension '_*02' priority 1 to default</div><div> -- Added extension '_*02' priority 2 to default</div><div> -- Added extension '_*02' priority 3 to default</div>
<div> -- Added extension '_*02' priority 4 to default</div><div> -- Added extension '_*02' priority 5 to default</div><div> -- Added extension '_*02' priority 6 to default</div><div> -- Added extension '_*02' priority 7 to default</div>
<div> -- Added extension '_*02XXXX' priority 1 to default</div><div> -- Added extension '_*02XXXX' priority 2 to default</div><div> -- Added extension '_*02XXXX' priority 3 to default</div>
<div> -- Added extension '_*02XXXX' priority 4 to default</div><div> -- Added extension '_*02XXXX' priority 5 to default</div><div> -- Added extension '_*02XXXX' priority 6 to default</div>
<div> -- Added extension '_*03XXXX' priority 1 to default</div><div> -- Added extension '_*03XXXX' priority 2 to default</div><div> -- Added extension '_*03XXXX' priority 3 to default</div>
<div> -- Added extension '_*03XXXX' priority 4 to default</div><div> -- Added extension '_*03XXXX' priority 5 to default</div><div> -- Added extension '_*04XXXX' priority 1 to default</div>
<div> -- Added extension '_*04XXXX' priority 2 to default</div><div> -- Added extension '_*04XXXX' priority 3 to default</div><div> -- Added extension '_*04XXXX' priority 4 to default</div>
<div> -- Added extension '_*04XXXX' priority 5 to default</div><div> -- Added extension '_*04XXXX' priority 6 to default</div><div> -- Added extension '_*04XXXX' priority 7 to default</div>
<div> -- Added extension '_7XX' priority 1 to default</div><div> -- Added extension '_*5XXXX' priority 1 to default</div><div> -- Added extension '_*5XXXX' priority 2 to default</div><div>
-- Added extension '_*5XXXX' priority 3 to default</div><div> -- Added extension '_*8' priority 1 to default</div><div> -- Added extension '_*8' priority 2 to default</div><div> -- Added extension '_*8' priority 3 to default</div>
<div> -- Added extension '_*1[23].' priority 1 to default</div><div> -- Added extension '_*1[23].' priority 2 to default</div></div><div><div> -- Added extension '*20' priority 1 to default</div>
<div> -- Added extension '*20' priority 2 to default</div><div> -- Added extension '*20' priority 3 to default</div><div> -- Added extension '*20' priority 4 to default</div><div> -- Added extension '*20' priority 5 to default</div>
<div> -- Added extension '*21' priority 1 to default</div><div> -- Added extension '*21' priority 2 to default</div><div> -- Added extension '*21' priority 3 to default</div><div> -- Added extension '*21' priority 4 to default</div>
<div> -- Added extension '*21' priority 5 to default</div><div> -- Added extension '*21' priority 6 to default</div><div> -- Added extension '*22' priority 1 to default</div><div> -- Added extension '*22' priority 2 to default</div>
<div> -- Added extension '*22' priority 3 to default</div><div> -- Added extension '*22' priority 4 to default</div><div> -- Added extension '*22' priority 5 to default</div><div> -- Added extension '*22' priority 6 to default</div>
<div> -- Added extension '*23' priority 1 to default</div><div> -- Added extension '*23' priority 2 to default</div><div> -- Added extension '*23' priority 3 to default</div><div> -- Added extension '*23' priority 4 to default</div>
<div> -- Added extension '*23' priority 5 to default</div><div> -- Added extension '*23' priority 6 to default</div><div> -- Added extension '*30' priority 1 to default</div><div> -- Added extension '*30' priority 2 to default</div>
<div> -- Added extension '_*99XXXX' priority 1 to default</div><div> -- Added extension '_*99XXXX' priority 2 to default</div><div> -- Added extension '_*99XXXX' priority 3 to default</div>
<div> -- Added extension '_*99XXXX' priority 4 to default</div><div> -- Added extension '_*98XXXX' priority 1 to default</div><div> -- Added extension '_*98XXXX' priority 2 to default</div>
<div> -- Added extension '_*98XXXX' priority 3 to default</div><div> -- Added extension '_*98XXXX' priority 4 to default</div></div><div><div> -- Added extension '*503' priority 2 to default</div>
<div> -- Added extension '*503' priority 3 to default</div><div> -- Added extension '*503' priority 4 to default</div><div> -- Including context 'conferences' in context 'default'</div>
<div> -- Added extension '_9XX' priority 1 to default</div><div> -- Added extension 'h' priority 1 to default</div><div> -- Added extension 't' priority 1 to default</div><div> -- Added extension 'OutgoingSpoolFailed' priority 1 to default</div>
<div> -- Added extension '_X.' priority 1 to default</div><div> -- Added extension '_X.' priority 2 to default</div><div> -- Added extension '_X.' priority 3 to default</div><div> -- Added extension '_X.' priority 4 to default</div>
<div> -- Added extension '_X.' priority 5 to default</div><div> -- Added extension '_X.' priority 6 to default</div><div> -- Added extension '_X.' priority 7 to default</div><div> -- Added extension '_X.' priority 8 to default</div>
<div> -- Added extension '_X.' priority 9 to default</div><div> -- Added extension '_X.' priority 10 to default</div><div> -- Registered extension context 'transferencias'; registrar: pbx_config</div>
<div> -- Added extension '_9XX' priority 1 to transferencias</div><div> -- Added extension '_X.' priority 1 to transferencias</div><div> -- Added extension '_X.' priority 2 to transferencias</div>
<div> -- Added extension '_X.' priority 3 to transferencias</div><div> -- Added extension '_X.' priority 4 to transferencias</div><div> -- Added extension '_X.' priority 5 to transferencias</div>
<div> -- Added extension '_X.' priority 6 to transferencias</div><div> -- Added extension '_X.' priority 7 to transferencias</div><div> -- Added extension '_X.' priority 8 to transferencias</div>
<div> -- Added extension '_X.' priority 9 to transferencias</div><div> -- Added extension '_X.' priority 10 to transferencias</div><div> -- Added extension '_X.' priority 11 to transferencias</div>
<div> -- Added extension '_X.' priority 12 to transferencias</div><div> -- Added extension '_X.' priority 13 to transferencias</div><div> -- Added extension '_X.' priority 14 to transferencias</div>
<div> -- Registered extension context 'ramais-agentes'; registrar: pbx_config</div></div><div><div> -- Registered extension context 'ramais-agentes'; registrar: pbx_config</div><div> -- Added extension '_X.' priority 1 to ramais-agentes</div>
<div> -- Added extension '_X.' priority 2 to ramais-agentes</div><div> -- Added extension '_X.' priority 3 to ramais-agentes</div><div> -- Added extension '_X.' priority 4 to ramais-agentes</div>
<div> -- Added extension '_X.' priority 5 to ramais-agentes</div><div> -- Added extension '_X.' priority 6 to ramais-agentes</div><div> -- Registered extension context 'macro-dialpeer'; registrar: pbx_config</div>
<div> -- Added extension 's' priority 1 to macro-dialpeer</div><div> -- Added extension '_X.' priority 1 to macro-dialpeer</div><div> -- Added extension '_X.' priority 2 to macro-dialpeer</div>
<div> -- Added extension '_X.' priority 3 to macro-dialpeer</div><div> -- Added extension '_X.' priority 4 to macro-dialpeer</div><div> -- Added extension '_X.' priority 5 to macro-dialpeer</div>
<div> -- Added extension '_X.' priority 6 to macro-dialpeer</div><div> -- Added extension '_X.' priority 7 to macro-dialpeer</div><div> -- Added extension '_X.' priority 8 to macro-dialpeer</div>
<div> -- Added extension '_X.' priority 9 to macro-dialpeer</div><div> -- Added extension '_X.' priority 10 to macro-dialpeer</div><div> -- Added extension '_X.' priority 11 to macro-dialpeer</div>
<div> -- Registered extension context 'monitor'; registrar: pbx_config</div><div> -- Added extension 'grava' priority 1 to monitor</div><div> -- Added extension 'grava' priority 2 to monitor</div>
<div> -- Registered extension context 'conferences'; registrar: pbx_config</div><div> -- Added extension '901' priority 1 to conferences</div><div> -- Added extension '901' priority 2 to conferences</div>
<div> -- Added extension '901' priority 3 to conferences</div><div> -- Added extension '901' priority 4 to conferences</div><div> -- Added extension '901' priority 5 to conferences</div><div>
-- Added extension 'i' priority 1 to conferences</div><div> -- Added extension 'i' priority 2 to conferences</div><div> -- Added extension 'i' priority 3 to conferences</div><div> -- Added extension 't' priority 1 to conferences</div>
<div> -- Added extension 'h' priority 1 to conferences</div><div> -- Added extension 'H' priority 1 to conferences</div><div> == Parsing '/etc/asterisk/users.conf': == Found</div></div><div>
<div> -- Registered extension context 'app_queue_gosub_virtual_context'; registrar: app_queue</div><div> -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config</div>
<div> -- Added extension 's' priority 1 to app_queue_gosub_virtual_context</div><div> -- Registered extension context 'parkedcalls'; registrar: features</div><div> -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config</div>
<div> -- Added extension '700' priority 1 to parkedcalls</div><div> -- Registered extension context 'app_dial_gosub_virtual_context'; registrar: app_dial</div><div> -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config</div>
<div> -- Added extension 's' priority 1 to app_dial_gosub_virtual_context</div><div> -- Time to scan old dialplan and merge leftovers back into the new: 0.029086 sec</div><div> -- Time to restore hints and swap in new dialplan: 0.000002 sec</div>
<div> -- Time to delete the old dialplan: 0.000040 sec</div><div> -- Total time merge_contexts_delete: 0.029128 sec</div></div><div><br></div><div><br></div><div>From: Carlos Miranda <<a href="mailto:carlos_amiranda@hotmail.com">carlos_amiranda@hotmail.com</a>></div>
<div>To: <<a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a>></div><div>Cc: </div><div>Date: Thu, 6 Dec 2012 17:56:43 -0200</div><div>Subject: Re: [AsteriskBrasil] problemas com snep em ligacões de fora para ramal ionterno</div>
<div>Codec, qual o que vc está usando?</div><div> </div><div> </div><div>From: paulo bruck</div><div>Sent: Thursday, December 06, 2012 5:18 PM</div><div>To: <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a></div>
<div>Subject: [AsteriskBrasil] problemas com snep em ligacões de fora para ramal ionterno</div><div> </div><div>Boa tarde pessoal e Raphael</div><div> </div><div>Voltando ao problema do SNEP</div><div> </div><div>debian squeeze</div>
<div>snep 2.0</div><div>asterisk 1.8.16</div><div>ebs khomp com 4fxo + 1 gsm</div><div> </div><div>o que esta funcionando:</div><div> </div><div>ramal -> ramal</div><div>ramal -> fixo via tronco analogico</div><div>
ramal -> celular via gsm</div><div>o que não funciona...-> ligação de fora para ramal interno</div><div> </div><div>no snep eu ja cadastrei todos os ramais e troncos da khomp</div><div>ligado no tronco da khomp eu tenho o 35964883</div>
<div>em tronco normal sem estar ligado na khomp eu tenho o 35964881</div><div> </div><div>seguindo a ideia do Raphael eu coloquei</div><div>uma rota assim na regra de negocios:</div><div>origem - expressao regular - 35964881</div>
<div>destino - expressao regular 35964883</div><div> </div><div>em acao eu coloquei -> discar diretamente para ramal 1010</div><div> </div><div>quando tento dicar do tel 35964881 para o 35964883 ele me mostra o seguinte nos logs do asterisk( quando o rasterisk -vvvvvddddd)</div>
<div> </div><div> == Parsing '/etc/asterisk/asterisk.conf': Parsing /etc/asterisk/asterisk.conf</div><div> == Found</div><div>Seeding global EID '00:50:43:00:45:3e' from 'eth0' using 'siocgifhwaddr'</div>
<div> == Parsing '/etc/asterisk/extconfig.conf': Parsing /etc/asterisk/extconfig.conf</div><div> == Found</div><div> == Binding queues to odbc/snep/queues</div><div> == Binding queue_members to odbc/snep/queue_members</div>
<div> == Binding voicemail to odbc/snep/voicemail_users</div><div>Connected to Asterisk 1.8.13.1~dfsg-1~bpo60+1 currently running on zeus (pid = 8894)</div><div>Verbosity is at least 3</div><div>Core debug was 0 and is now 5</div>
<div> -- Executing [i@default:1] Set("Khomp/B0C2-0.0", "CHANNEL(language)=pt_BR") in new stack</div><div> -- Executing [i@default:2] Playback("Khomp/B0C2-0.0", "invalid") in new stack</div>
<div>[Dec 6 17:11:35] WARNING[9291]: file.c:663 ast_openstream_full: File invalid does not exist in any format</div><div>[Dec 6 17:11:35] WARNING[9291]: file.c:958 ast_streamfile: Unable to open invalid (format 0x8 (alaw)): No such file or directory</div>
<div>[Dec 6 17:11:35] WARNING[9291]: app_playback.c:475 playback_exec: ast_streamfile failed on Khomp/B0C2-0.0 for invalid</div><div> -- Executing [i@default:3] Hangup("Khomp/B0C2-0.0", "") in new stack</div>
<div> == Spawn extension (default, i, 3) exited non-zero on 'Khomp/B0C2-0.0'</div><div> -- Executing [h@default:1] Hangup("Khomp/B0C2-0.0", "") in new stack</div><div> == Spawn extension (default, h, 1) exited non-zero on 'Khomp/B0C2-0.0'</div>
<div> </div><div>e fica mudo....</div><div> </div><div>quando coloco o que o pessoal da khomp me enviou o abaixo no arquivo /etc/asterisk/custom/eof.conf</div><div> </div><div>[khomp-00]</div><div>exten => s,1,Dial(SIP/1010)</div>
<div>exten => s,n,Hangup()</div><div> </div><div>fiz a ligação e funcionou.</div><div> </div><div> == Parsing '/etc/asterisk/asterisk.conf': Parsing /etc/asterisk/asterisk.conf</div><div> == Found</div><div>
Seeding global EID '00:50:43:00:45:3e' from 'eth0' using 'siocgifhwaddr'</div><div> == Parsing '/etc/asterisk/extconfig.conf': Parsing /etc/asterisk/extconfig.conf</div><div> == Found</div>
<div> == Binding queues to odbc/snep/queues</div><div> == Binding queue_members to odbc/snep/queue_members</div><div> == Binding voicemail to odbc/snep/voicemail_users</div><div>Connected to Asterisk 1.8.13.1~dfsg-1~bpo60+1 currently running on zeus (pid = 11008)</div>
<div>Verbosity is at least 3</div><div>Core debug was 0 and is now 5</div><div> -- Executing [s@khomp-00:1] Dial("Khomp/B0C2-0.0", "SIP/1010") in new stack</div><div> == Using SIP RTP TOS bits 184</div>
<div> == Using SIP RTP CoS mark 5</div><div> -- Called SIP/1010</div><div> -- SIP/1010-00000000 is ringing</div><div> -- SIP/1010-00000000 answered Khomp/B0C2-0.0</div><div> </div><div>pelo que o pessoal da Khomp me passou é algo relacionado ao default....</div>
<div> </div><div>agora a pergunta é, onde arrumo isto???</div><div> </div><div>[]s a todos</div><div> </div><div>_______________________________________________</div><div>KHOMP Inovação: External Board Series</div><div>Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e FreeSWITCH.</div>
<div>Tenha a External Series Experience na sua aplicação. Visite <a href="http://www.khomp.com">www.khomp.com</a></div><div>_______________________________________________</div><div>DIGIVOICE Fabricante de Placas de Voz e Channel Bank</div>
<div>20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM</div><div>Centro Treinamento - Curso de PABX IP - Asterisk - Site <a href="http://www.digivoice.com.br">www.digivoice.com.br</a></div><div>________</div><div>
YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do mercado.</div><div>email: <a href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a> | <a href="http://www.commlogik.com.br">www.commlogik.com.br</a> | (11) 5503-1011</div>
<div>______________________________________________</div><div>Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></div>
<div><br></div>