[AsteriskBrasil] Digest AsteriskBrasil, volume 33, assunto 86

paulo bruck paulobruck1 em gmail.com
Quinta Dezembro 6 23:46:50 BRST 2012


humm não mudou nada..89)
do tronco que não está no khop ( 35964881) eu liguei para o tronco que esta
na khomp ( 35964883) e continua mudo segundo os logs abaixo:


Verbosity was 3 and is now 5

zeus*CLI>
    -- Executing [i em default:1] Set("Khomp/B0C2-0.0",
"CHANNEL(language)=pt_BR") in new stack
    -- Executing [i em default:2] Playback("Khomp/B0C2-0.0", "invalid") in new
stack
[Dec  6 23:43:05] WARNING[27204]: file.c:663 ast_openstream_full: File
invalid does not exist in any format
[Dec  6 23:43:05] WARNING[27204]: file.c:958 ast_streamfile: Unable to open
invalid (format 0x8 (alaw)): No such file or directory
[Dec  6 23:43:05] WARNING[27204]: app_playback.c:475 playback_exec:
ast_streamfile failed on Khomp/B0C2-0.0 for invalid
    -- Executing [i em default:3] Hangup("Khomp/B0C2-0.0", "") in new stack
  == Spawn extension (default, i, 3) exited non-zero on 'Khomp/B0C2-0.0'
    -- Executing [h em default:1] Hangup("Khomp/B0C2-0.0", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'Khomp/B0C2-0.0'

mais detalhes que possam ajudar:
/etc/asterisk/snep/snep_sip.conf
....
[1010]
type=friend
context=default
host=dynamic
secret=3666
callerid=Paulo Ricardo Bruck
canreinvite=no
dtmfmode=rfc2833
nat=no
qualify=yes
disallow=all
allow=alaw,ulaw,gsm,g729,ilbc
username=1010
fromuser=1010
call-limit=2


snep-musiconhold.conf
[default]
mode=files
directory=/var/lib/asterisk/moh


[]s a todos





Em 6 de dezembro de 2012 23:27, <
asteriskbrasil-request em listas.asteriskbrasil.org> escreveu:

> Enviar submissões para a lista de discussão AsteriskBrasil para
>         asteriskbrasil em listas.asteriskbrasil.org
>
> Para se cadastrar ou descadastrar via WWW, visite o endereço
>         http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
> ou, via email, envie uma mensagem com a palavra 'help' no assunto ou
> corpo da mensagem para
>         asteriskbrasil-request em listas.asteriskbrasil.org
>
> Você poderá entrar em contato com a pessoa que gerencia a lista pelo
> endereço
>         asteriskbrasil-owner em listas.asteriskbrasil.org
>
> Quando responder, por favor edite sua linha Assunto assim ela será
> mais específica que "Re: Contents of AsteriskBrasil digest..."
>
> ----------------------------------------
> Ajude a comunidade AsteriskBrasil.org!
> ==== Compre uma camiseta! ====
> Acesse www.voipmania.com.br
>
> Tópicos de Hoje:
>
>    1. Re: problemas com snep em ligacões de fora para ramal
>       ionterno (Rafael dos Santos Saraiva)
>
>
> ---------- Mensagem encaminhada ----------
> From: Rafael dos Santos Saraiva <rafaelsnsa em gmail.com>
> To: asteriskbrasil em listas.asteriskbrasil.org
> Cc:
> Date: Thu, 6 Dec 2012 23:19:43 -0200
> Subject: Re: [AsteriskBrasil] problemas com snep em ligacões de fora para
> ramal ionterno
> Boa Noite Paulo
>
> Desculpa, só agora vi seu email.
>
> Pelo que vi na rota de entrada  você colocou o numero inteiro
> (prefixo+ramal), o que ocorre é que a operadora geralmente envia só o
> ramal, você teria que colocar somente os quatro ultimos digitos no destino.
>
> Pra confirmar faz o seguinte, habilita o verbose do Asterisk (core set
> verbose 5), faz uma chamada de entrada e posta pra gnt o resultado no
> console.
>
>
>
> Att,
> Rafael Saraiva
> <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>
>
>
>
> Em 6 de dezembro de 2012 23:08, paulo bruck <paulobruck1 em gmail.com>escreveu:
>
>> Olá Carlos
>>
>> o padrão do SNEP:
>> nos ramais alaw, ulaw,gsm,g729,ilbc
>>
>> veja depois que eu coloquei o :
>> [khomp-00]
>> exten => s,1,Dial(SIP/1010)
>> exten => s,n,Hangup()
>>
>> funcionou e é realmente algo de errado no default ( pelo que os tecnicos
>> da khomp disseram)
>> agora como resolver é o problema. tenho um bom conhecimento em linux mas
>> em asterisk estou engatinhando....
>>
>> obrigado pela ajuda
>>
>> para tentar ajudar quando faço um dialplan reload aparece embaixo:
>>
>>
>> *CLI> dialplan reload
>> Dialplan reloaded.
>>   == Parsing '/etc/asterisk/extensions.conf':   == Found
>>   == Parsing '/etc/asterisk/snep/snep-features.conf':   == Found
>>   == Parsing '/etc/asterisk/snep/snep-agentes.conf':   == Found
>>   == Parsing '/etc/asterisk/custom/preagi.conf':   == Found
>>   == Parsing '/etc/asterisk/custom/posagi.conf':   == Found
>>   == Parsing '/etc/asterisk/custom/eof.conf':   == Found
>>   == Parsing '/etc/asterisk/snep/snep-conferences.conf':   == Found
>>   == Setting global variable 'CONSOLE' to 'Console/dsp'
>>   == Setting global variable 'TRANSFER_CONTEXT' to 'transferencias'
>>     -- Registered extension context 'khomp-fxs'; registrar: pbx_config
>>     -- Added extension '_*8' priority 1 to khomp-fxs
>>     -- Added extension '_*8' priority 2 to khomp-fxs
>>     -- Added extension '_*[012345679].' priority 1 to khomp-fxs
>>     -- Added extension '_*[012345679].' priority 2 to khomp-fxs
>>     -- Added extension '_#.' priority 1 to khomp-fxs
>>     -- Added extension '_#.' priority 2 to khomp-fxs
>>     -- Added extension '_X.' priority 1 to khomp-fxs
>>     -- Added extension '_X..' priority 2 to khomp-fxs
>>     -- Registered extension context 'macro-identifyExtension'; registrar:
>> pbx_config
>>     -- Added extension 's' priority 1 to macro-identifyExtension
>>     -- Added extension 's' priority 2 to macro-identifyExtension
>>     -- Added extension 's' priority 3 to macro-identifyExtension
>>     -- Registered extension context 'default'; registrar: pbx_config
>>     -- Added extension '_*01XXXX' priority 1 to default
>>     -- Added extension '_*01XXXX' priority 2 to default
>>     -- Added extension '_*01XXXX' priority 3 to default
>>     -- Added extension '_*01XXXX' priority 4 to default
>>     -- Added extension '_*01XXXX' priority 5 to default
>>     -- Added extension '_*01XXXX' priority 6 to default
>>     -- Added extension '_*01XXXX' priority 7 to default
>>     -- Added extension '_*01XXXX' priority 8 to default
>>     -- Added extension '_*02' priority 1 to default
>>     -- Added extension '_*02' priority 2 to default
>>     -- Added extension '_*02' priority 3 to default
>>     -- Added extension '_*02' priority 4 to default
>>     -- Added extension '_*02' priority 5 to default
>>     -- Added extension '_*02' priority 6 to default
>>     -- Added extension '_*02' priority 7 to default
>>     -- Added extension '_*02XXXX' priority 1 to default
>>     -- Added extension '_*02XXXX' priority 2 to default
>>     -- Added extension '_*02XXXX' priority 3 to default
>>     -- Added extension '_*02XXXX' priority 4 to default
>>     -- Added extension '_*02XXXX' priority 5 to default
>>     -- Added extension '_*02XXXX' priority 6 to default
>>     -- Added extension '_*03XXXX' priority 1 to default
>>     -- Added extension '_*03XXXX' priority 2 to default
>>     -- Added extension '_*03XXXX' priority 3 to default
>>     -- Added extension '_*03XXXX' priority 4 to default
>>     -- Added extension '_*03XXXX' priority 5 to default
>>     -- Added extension '_*04XXXX' priority 1 to default
>>     -- Added extension '_*04XXXX' priority 2 to default
>>     -- Added extension '_*04XXXX' priority 3 to default
>>     -- Added extension '_*04XXXX' priority 4 to default
>>     -- Added extension '_*04XXXX' priority 5 to default
>>     -- Added extension '_*04XXXX' priority 6 to default
>>     -- Added extension '_*04XXXX' priority 7 to default
>>     -- Added extension '_7XX' priority 1 to default
>>     -- Added extension '_*5XXXX' priority 1 to default
>>     -- Added extension '_*5XXXX' priority 2 to default
>>     -- Added extension '_*5XXXX' priority 3 to default
>>     -- Added extension '_*8' priority 1 to default
>>     -- Added extension '_*8' priority 2 to default
>>     -- Added extension '_*8' priority 3 to default
>>     -- Added extension '_*1[23].' priority 1 to default
>>     -- Added extension '_*1[23].' priority 2 to default
>>    -- Added extension '*20' priority 1 to default
>>     -- Added extension '*20' priority 2 to default
>>     -- Added extension '*20' priority 3 to default
>>     -- Added extension '*20' priority 4 to default
>>     -- Added extension '*20' priority 5 to default
>>     -- Added extension '*21' priority 1 to default
>>     -- Added extension '*21' priority 2 to default
>>     -- Added extension '*21' priority 3 to default
>>     -- Added extension '*21' priority 4 to default
>>     -- Added extension '*21' priority 5 to default
>>     -- Added extension '*21' priority 6 to default
>>     -- Added extension '*22' priority 1 to default
>>     -- Added extension '*22' priority 2 to default
>>     -- Added extension '*22' priority 3 to default
>>     -- Added extension '*22' priority 4 to default
>>     -- Added extension '*22' priority 5 to default
>>     -- Added extension '*22' priority 6 to default
>>     -- Added extension '*23' priority 1 to default
>>     -- Added extension '*23' priority 2 to default
>>     -- Added extension '*23' priority 3 to default
>>     -- Added extension '*23' priority 4 to default
>>     -- Added extension '*23' priority 5 to default
>>     -- Added extension '*23' priority 6 to default
>>     -- Added extension '*30' priority 1 to default
>>     -- Added extension '*30' priority 2 to default
>>     -- Added extension '_*99XXXX' priority 1 to default
>>     -- Added extension '_*99XXXX' priority 2 to default
>>     -- Added extension '_*99XXXX' priority 3 to default
>>     -- Added extension '_*99XXXX' priority 4 to default
>>     -- Added extension '_*98XXXX' priority 1 to default
>>     -- Added extension '_*98XXXX' priority 2 to default
>>     -- Added extension '_*98XXXX' priority 3 to default
>>     -- Added extension '_*98XXXX' priority 4 to default
>>     -- Added extension '*503' priority 2 to default
>>     -- Added extension '*503' priority 3 to default
>>     -- Added extension '*503' priority 4 to default
>>     -- Including context 'conferences' in context 'default'
>>     -- Added extension '_9XX' priority 1 to default
>>     -- Added extension 'h' priority 1 to default
>>     -- Added extension 't' priority 1 to default
>>     -- Added extension 'OutgoingSpoolFailed' priority 1 to default
>>     -- Added extension '_X.' priority 1 to default
>>     -- Added extension '_X.' priority 2 to default
>>     -- Added extension '_X.' priority 3 to default
>>     -- Added extension '_X.' priority 4 to default
>>     -- Added extension '_X.' priority 5 to default
>>     -- Added extension '_X.' priority 6 to default
>>     -- Added extension '_X.' priority 7 to default
>>     -- Added extension '_X.' priority 8 to default
>>     -- Added extension '_X.' priority 9 to default
>>     -- Added extension '_X.' priority 10 to default
>>     -- Registered extension context 'transferencias'; registrar:
>> pbx_config
>>     -- Added extension '_9XX' priority 1 to transferencias
>>     -- Added extension '_X.' priority 1 to transferencias
>>     -- Added extension '_X.' priority 2 to transferencias
>>     -- Added extension '_X.' priority 3 to transferencias
>>     -- Added extension '_X.' priority 4 to transferencias
>>     -- Added extension '_X.' priority 5 to transferencias
>>     -- Added extension '_X.' priority 6 to transferencias
>>     -- Added extension '_X.' priority 7 to transferencias
>>     -- Added extension '_X.' priority 8 to transferencias
>>     -- Added extension '_X.' priority 9 to transferencias
>>     -- Added extension '_X.' priority 10 to transferencias
>>     -- Added extension '_X.' priority 11 to transferencias
>>     -- Added extension '_X.' priority 12 to transferencias
>>     -- Added extension '_X.' priority 13 to transferencias
>>     -- Added extension '_X.' priority 14 to transferencias
>>     -- Registered extension context 'ramais-agentes'; registrar:
>> pbx_config
>>     -- Registered extension context 'ramais-agentes'; registrar:
>> pbx_config
>>     -- Added extension '_X.' priority 1 to ramais-agentes
>>     -- Added extension '_X.' priority 2 to ramais-agentes
>>     -- Added extension '_X.' priority 3 to ramais-agentes
>>     -- Added extension '_X.' priority 4 to ramais-agentes
>>     -- Added extension '_X.' priority 5 to ramais-agentes
>>     -- Added extension '_X.' priority 6 to ramais-agentes
>>     -- Registered extension context 'macro-dialpeer'; registrar:
>> pbx_config
>>     -- Added extension 's' priority 1 to macro-dialpeer
>>     -- Added extension '_X.' priority 1 to macro-dialpeer
>>     -- Added extension '_X.' priority 2 to macro-dialpeer
>>     -- Added extension '_X.' priority 3 to macro-dialpeer
>>     -- Added extension '_X.' priority 4 to macro-dialpeer
>>     -- Added extension '_X.' priority 5 to macro-dialpeer
>>     -- Added extension '_X.' priority 6 to macro-dialpeer
>>     -- Added extension '_X.' priority 7 to macro-dialpeer
>>     -- Added extension '_X.' priority 8 to macro-dialpeer
>>     -- Added extension '_X.' priority 9 to macro-dialpeer
>>     -- Added extension '_X.' priority 10 to macro-dialpeer
>>     -- Added extension '_X.' priority 11 to macro-dialpeer
>>     -- Registered extension context 'monitor'; registrar: pbx_config
>>     -- Added extension 'grava' priority 1 to monitor
>>     -- Added extension 'grava' priority 2 to monitor
>>     -- Registered extension context 'conferences'; registrar: pbx_config
>>     -- Added extension '901' priority 1 to conferences
>>     -- Added extension '901' priority 2 to conferences
>>     -- Added extension '901' priority 3 to conferences
>>     -- Added extension '901' priority 4 to conferences
>>     -- Added extension '901' priority 5 to conferences
>>     -- Added extension 'i' priority 1 to conferences
>>     -- Added extension 'i' priority 2 to conferences
>>     -- Added extension 'i' priority 3 to conferences
>>     -- Added extension 't' priority 1 to conferences
>>     -- Added extension 'h' priority 1 to conferences
>>     -- Added extension 'H' priority 1 to conferences
>>   == Parsing '/etc/asterisk/users.conf':   == Found
>>     -- Registered extension context 'app_queue_gosub_virtual_context';
>> registrar: app_queue
>>     -- merging incls/swits/igpats from
>> old(app_queue_gosub_virtual_context) to
>> new(app_queue_gosub_virtual_context) context, registrar = pbx_config
>>     -- Added extension 's' priority 1 to app_queue_gosub_virtual_context
>>     -- Registered extension context 'parkedcalls'; registrar: features
>>     -- merging incls/swits/igpats from old(parkedcalls) to
>> new(parkedcalls) context, registrar = pbx_config
>>     -- Added extension '700' priority 1 to parkedcalls
>>     -- Registered extension context 'app_dial_gosub_virtual_context';
>> registrar: app_dial
>>     -- merging incls/swits/igpats from
>> old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context)
>> context, registrar = pbx_config
>>     -- Added extension 's' priority 1 to app_dial_gosub_virtual_context
>>     -- Time to scan old dialplan and merge leftovers back into the new:
>> 0.029086 sec
>>     -- Time to restore hints and swap in new dialplan: 0.000002 sec
>>     -- Time to delete the old dialplan: 0.000040 sec
>>     -- Total time merge_contexts_delete: 0.029128 sec
>>
>>
>> From: Carlos Miranda <carlos_amiranda em hotmail.com>
>> To: <asteriskbrasil em listas.asteriskbrasil.org>
>> Cc:
>> Date: Thu, 6 Dec 2012 17:56:43 -0200
>> Subject: Re: [AsteriskBrasil] problemas com snep em ligacões de fora para
>> ramal ionterno
>> Codec, qual o que vc está usando?
>>
>>
>> From: paulo bruck
>> Sent: Thursday, December 06, 2012 5:18 PM
>> To: asteriskbrasil em listas.asteriskbrasil.org
>> Subject: [AsteriskBrasil] problemas com snep em ligacões de fora para
>> ramal ionterno
>>
>> Boa tarde pessoal e Raphael
>>
>> Voltando ao problema do SNEP
>>
>> debian squeeze
>> snep 2.0
>> asterisk 1.8.16
>> ebs khomp com 4fxo + 1 gsm
>>
>> o que esta funcionando:
>>
>> ramal -> ramal
>> ramal -> fixo via tronco analogico
>> ramal -> celular  via gsm
>> o que não funciona...-> ligação de fora para ramal interno
>>
>> no snep  eu ja cadastrei todos os ramais e troncos da khomp
>> ligado no tronco da khomp eu tenho o  35964883
>> em tronco normal sem estar ligado na khomp eu tenho o 35964881
>>
>> seguindo a ideia do Raphael eu coloquei
>> uma rota assim na regra de negocios:
>> origem - expressao regular - 35964881
>> destino - expressao regular 35964883
>>
>> em acao eu coloquei -> discar diretamente para ramal 1010
>>
>> quando tento dicar do tel 35964881 para o 35964883 ele me mostra o
>> seguinte nos logs do asterisk( quando o rasterisk -vvvvvddddd)
>>
>>   == Parsing '/etc/asterisk/asterisk.conf': Parsing
>> /etc/asterisk/asterisk.conf
>>   == Found
>> Seeding global EID '00:50:43:00:45:3e' from 'eth0' using 'siocgifhwaddr'
>>   == Parsing '/etc/asterisk/extconfig.conf': Parsing
>> /etc/asterisk/extconfig.conf
>>   == Found
>>   == Binding queues to odbc/snep/queues
>>   == Binding queue_members to odbc/snep/queue_members
>>   == Binding voicemail to odbc/snep/voicemail_users
>> Connected to Asterisk 1.8.13.1~dfsg-1~bpo60+1 currently running on zeus
>> (pid = 8894)
>> Verbosity is at least 3
>> Core debug was 0 and is now 5
>>     -- Executing [i em default:1] Set("Khomp/B0C2-0.0",
>> "CHANNEL(language)=pt_BR") in new stack
>>     -- Executing [i em default:2] Playback("Khomp/B0C2-0.0", "invalid") in
>> new stack
>> [Dec  6 17:11:35] WARNING[9291]: file.c:663 ast_openstream_full: File
>> invalid does not exist in any format
>> [Dec  6 17:11:35] WARNING[9291]: file.c:958 ast_streamfile: Unable to
>> open invalid (format 0x8 (alaw)): No such file or directory
>> [Dec  6 17:11:35] WARNING[9291]: app_playback.c:475 playback_exec:
>> ast_streamfile failed on Khomp/B0C2-0.0 for invalid
>>     -- Executing [i em default:3] Hangup("Khomp/B0C2-0.0", "") in new stack
>>   == Spawn extension (default, i, 3) exited non-zero on 'Khomp/B0C2-0.0'
>>     -- Executing [h em default:1] Hangup("Khomp/B0C2-0.0", "") in new stack
>>   == Spawn extension (default, h, 1) exited non-zero on 'Khomp/B0C2-0.0'
>>
>> e fica mudo....
>>
>> quando coloco o que o pessoal da khomp me enviou o abaixo no arquivo
>> /etc/asterisk/custom/eof.conf
>>
>> [khomp-00]
>> exten => s,1,Dial(SIP/1010)
>> exten => s,n,Hangup()
>>
>> fiz a ligação  e funcionou.
>>
>>   == Parsing '/etc/asterisk/asterisk.conf': Parsing
>> /etc/asterisk/asterisk.conf
>>   == Found
>> Seeding global EID '00:50:43:00:45:3e' from 'eth0' using 'siocgifhwaddr'
>>   == Parsing '/etc/asterisk/extconfig.conf': Parsing
>> /etc/asterisk/extconfig.conf
>>   == Found
>>   == Binding queues to odbc/snep/queues
>>   == Binding queue_members to odbc/snep/queue_members
>>   == Binding voicemail to odbc/snep/voicemail_users
>> Connected to Asterisk 1.8.13.1~dfsg-1~bpo60+1 currently running on zeus
>> (pid = 11008)
>> Verbosity is at least 3
>> Core debug was 0 and is now 5
>>     -- Executing [s em khomp-00:1] Dial("Khomp/B0C2-0.0", "SIP/1010") in
>> new stack
>>   == Using SIP RTP TOS bits 184
>>   == Using SIP RTP CoS mark 5
>>     -- Called SIP/1010
>>     -- SIP/1010-00000000 is ringing
>>     -- SIP/1010-00000000 answered Khomp/B0C2-0.0
>>
>> pelo que o pessoal da Khomp me passou é algo relacionado ao default....
>>
>> agora a pergunta é, onde arrumo isto???
>>
>> []s a todos
>>
>> _______________________________________________
>> KHOMP Inovação: External Board Series
>> Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e
>> FreeSWITCH.
>> Tenha a External Series Experience na sua aplicação. Visite www.khomp.com
>> _______________________________________________
>> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site
>> www.digivoice.com.br
>> ________
>>  YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do
>> mercado.
>> email: yealink em commlogik.com.br | www.commlogik.com.br | (11) 5503-1011
>> ______________________________________________
>> Para remover seu email desta lista, basta enviar um email em branco para
>> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>>
>>
>> _______________________________________________
>> KHOMP Inovação: External Board Series
>> Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e
>> FreeSWITCH.
>> Tenha a External Series Experience na sua aplicação. Visite www.khomp.com
>> _______________________________________________
>> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site
>> www.digivoice.com.br
>> ________
>> YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do
>> mercado.
>> email: yealink em commlogik.com.br | www.commlogik.com.br | (11) 5503-1011
>> ______________________________________________
>> Para remover seu email desta lista, basta enviar um email em branco para
>> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>>
>
>
> _______________________________________________
> AsteriskBrasil mailing list
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20121206/76d5a694/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil