[AsteriskBrasil] RES: R2/Unicall + Asterisk 1.4

gleydson carneiro gleydson.carneiro em gmail.com
Quinta Julho 5 23:07:42 BRT 2007


Guilherme,

eh o seguinte,

instalei um slackware + asterisk 1.2.19 + TE120P

tenho aqui uma R2 digital da Embratel.

compilei todos os modulos sem problemas, o patch do unicall tudo certinho
como manda a documentcao.

configurei o zaptel.conf, extensions.conf, unicall.conf e sip.conf tbm como
manda o figurino e ainda comprei a licensa do codec g729a e instalei o
mesmo.

ligacoes de sip para sip funciona 100% com uma qualidade excelente, mas qndo
tento fazer alguma discagem para  o pstn a ligacao nao completa.

vo postar aqui os meus arquivos de config e os erros q da na hora de fazer
uma ligacao, talvez eu deva ter esquecido alguma configuracao e devido a
isso nao esteja funcionando.

Obs: eu recebo ligacao do pstn normal, apenas nao consigo fazer ligacao.!


se vc puder me dar uma ajuda eu agradeceria muito, ja estou a quase 1 semana
com isso e nao consigo resolver.

valewww ....




---- zaptel.conf -----
span=1,0,0,cas,hdb3
cas=1-30:1101

loadzone=br
defaultzone=br


---- extensions.conf ----
[r2-embratel]
;Discagem
exten => _0[2-6]XXXXXXX,1,Set(CALLERID(num)=34228080)
exten => _0[2-6]XXXXXXX,n,Dial(UniCall/g1/${EXTEN:1},,T)

;Desligando
exten => t,1,Hangup()
exten => h,1,Hangup()

;Recebendo Ligacoes
exten => _8080,3,Background(/var/lib/asterisk/sounds/ivr/menu_apresentacao)
exten => _8080,4,Background(/var/lib/asterisk/sounds/ivr/menu_cliente)
exten => _8080,5,Background(/var/lib/asterisk/sounds/ivr/menu_nao_cliente)

;Plano de voz
exten => _8050,1,Dial(SIP/8050,50)
exten => _8051,1,Dial(SIP/8051,50)
exten => _8052,1,Dial(SIP/8052,50)


---- unicall.conf ------
[channels]
loglevel=255
context=r2-embratel
usecallerid=yes
hidecallerid=no
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
relaxdtmf=yes
callgroup=1
pickupgroup=1
immediate=no
callerid=asreceived
musiconhold=default
protocolclass=mfcr2
protocolvariant=br,0,4,8
protocolend=cpe
group=1
channel => 1-30
protocolclass=mfcr2


---- sip.conf -----
[general]
context=r2-embratel
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=br

[8050]
 type=friend
 username=8050
 secret=8050
 nat=yes
 host=dynamic
 insecure=very
 disallow=all
 allow=ulaw
 allow=alaw
 allow=g729
 allow=g723.1

[8051]
 type=friend
 username=8051
 secret=8051
 nat=yes
 host=dynamic
 insecure=very
 disallow=all
 allow=ulaw
 allow=alaw
 allow=g729
 allow=g723.1




----------- LOGS da hora q tento fazer uma ligacao --------------------

=========================================================================
Connected to Asterisk 1.2.19 currently running on voip (pid = 32305)
Verbosity is at least 3
    -- Registered SIP '8050' at 201.18.150.214 port 26876 expires 3600
    -- Unregistered SIP '8050'
    -- Registered SIP '8050' at 201.18.150.214 port 26876 expires 3600
    -- Executing Set("SIP/8050-085f26f8", "CALLERID(num)=34228080") in new
stack
    -- Executing Dial("SIP/8050-085f26f8", "UniCall/g1/33162112||T") in new
stack
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Call control(1)
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Make call
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Making a new call with CRN 32771
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 0001  ->      [1/       1/Idle          /Idle         ]
    -- Called g1/33162112
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:2644 handle_uc_event:
Unicall/1 event Dialing
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1101  [1/      40/Seize         /Idle         ]
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 on  ->      [2/      40/Group I       /Idle         ]
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:34 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 6 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 6 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:35 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 off ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Calling party category 0x0
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 on  ->      [2/      40/Group I       /DNIS         ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /Category     ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1 off ->      [2/      40/Group I       /Category     ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /Category     ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 on  ->      [2/      40/Group I       /Category     ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 3 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 4 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 4 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:36 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 2 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 8 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 8 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 0 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 0 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 8 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 8 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 0 on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 on  [2/      40/Group I       /ANI          ]
Jul  5 23:04:37 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 0 off ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 5 off [2/      40/Group I       /ANI          ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 E on  ->      [2/      40/Group I       /ANI          ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 4 on  [2/      40/Group I       /End of ANI   ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 E off ->      [2/      40/Group I       /End of ANI   ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 4 off [2/      40/Group I       /End of ANI   ]
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Far end disconnected(cause=Switching equipment congestion [42]) -
state 0x40
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:2644 handle_uc_event:
Unicall/1 event Far end disconnected
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:2930 handle_uc_event: CRN
32771 - far disconnected cause=Switching equipment congestion [42]
    -- Channel 0 got hangup
    -- UniCall/1-1 is circuit-busy
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Channel gains
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Channel switching
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Call control(6)
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Drop call(cause=Normal Clearing [16])
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Clearing fwd
Jul  5 23:04:38 WARNING[14042]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 1001  ->      [2/     800/Clear fwd B   /End of ANI   ]
    -- Hungup 'UniCall/1-1'
  == Everyone is busy/congested at this time (1:0/1/0)
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1      <- 1001  [1/     800/Clear fwd D   /Idle         ]
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Call disconnected(cause=Switching equipment congestion [42]) -
state 0x800
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:2644 handle_uc_event:
Unicall/1 event Drop call
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Call control(7)
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Release call
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:627 unicall_report: MFC/R2
UniCall/1 Destroying call with CRN 32771
Jul  5 23:04:38 WARNING[32324]: chan_unicall.c:2644 handle_uc_event:
Unicall/1 event Release call
    -- Unicall/1 released
    -- Executing Hangup("SIP/8050-085f26f8", "") in new stack
  == Spawn extension (r2-embratel, h, 1) exited non-zero on
'SIP/8050-085f26f8'





On 7/5/07, Alexandre Abreu <abreu em redt.com.br> wrote:
>
>  Olá.
>
>
>
> Instalamos recentemente uma TE120P com o Asterisk 1.2.19 + Unicall - sem
> problemas.
>
> Você poderia detalhar os seus problemas? Seja um pouco mais especifico,
> talvez assim possamos ajudar melhor...
>
>
>
> --
>
> Alexandre Abreu
>
> RedT Telecom
>
> http://www.redt.com.br
>
>
>  ------------------------------
>
> *De:* asteriskbrasil-bounces em listas.asteriskbrasil.org [mailto:
> asteriskbrasil-bounces em listas.asteriskbrasil.org] *Em nome de *gleydson
> carneiro
> *Enviada em:* quinta-feira, 5 de julho de 2007 09:26
> *Para:* asteriskbrasil em listas.asteriskbrasil.org
> *Assunto:* Re: [AsteriskBrasil] R2/Unicall + Asterisk 1.4
>
>
>
> Ola guilherme,
>
> cara estou tendo problemas com o unical com TE120P e asterisk 1.2,nao
> consigo fazer ligacoes!?
> na sua configuracao ai vc consegue !?
>
> vc poderia me passar um exemplo do seu extensions.conf e sip.conf!?
>
> agradeceria muito !
>
> On 7/4/07, *Guilherme Kaneto* <gui.listas em gmail.com> wrote:
>
>
> Pessoal,
>
> Consegui instalar um Asterisk 1.2.16 com unicall e uma placa Digium
> TE110P,
> sem problemas. Porém, na versão 1.4 não está sendo possível, mesmo com a
> versão mais nova do Zaptel e da LibPri. Alguém tem alguma luz?
>
> Grato.
> Guilherme Kaneto
>
> _______________________________________________
> LIsta de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
> _______________________________________________
> Acesse o  wiki AsteriskBrasil.org:
> http://www.asteriskbrasil.org
>
>
>
> _______________________________________________
> LIsta de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
> _______________________________________________
> Acesse o  wiki AsteriskBrasil.org:
> http://www.asteriskbrasil.org
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20070705/98faa704/attachment-0001.html


Mais detalhes sobre a lista de discussão AsteriskBrasil