[AsteriskBrasil] problemas com snep em ligacões de fora para ramal ionterno

paulo bruck paulobruck1 em gmail.com
Quinta Dezembro 6 23:08:31 BRST 2012


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
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20121206/bd80c361/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil