Cursos Asterisk en México

[RESUELTO] Interconexion de dos ELASTIX

Colapsar

Anuncio

Colapsar
No hay anuncio todavía.
X
 
  • Filtrar
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes

  • [RESUELTO] Interconexion de dos ELASTIX

    Buenos dias tengo conectado 2 Elastix por medio de una Truk SIP y cuando marco a travez de la interconexion siempre me marca "all circuit are busy now" que puedo estar haciendo mal?

  • #2
    Suena a problema de autenticación entre los 2 equipos. Necesitariamos ver la configuración de la troncal de ambos y ver la consola al momento en que te genera el error para tener una mejor idea de donde está el problema.

    Saludos,
    dCAP Christian Cabrera R.
    Para aprender a usar Asterisk, asiste a uno de mis cursos Asterisk
    Si deseas asesoría pagada, por favor contáctame

    Comentario


    • #3
      Habría que ver qué te arroja la consola cuando intentas la llamada, de paso compártenos la configuración en ambos extremos de la troncal SIP.
      IT Specialist

      Comentario


      • #4
        A:

        host=192.168.x.x ( VPN )
        username=xxxxxxxxxxxx
        fromuser=yyyyyyyyyyy
        secret=password
        type=friend
        qualify=yes
        disallow=all
        allow=all
        context=default

        B:

        host=192.168.y.y ( VPN )
        username=yyyyyyyyyy
        fromuser=xxxxxxxxxxxx
        secret=password
        type=friend
        qualify=yes
        disallow=all
        allow=all
        context=default

        Comentario


        • #5
          Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
          This is free software, with components licensed under the GNU General Public
          License version 2 and other licenses; you are welcome to redistribute it under
          certain conditions. Type 'core show license' for details.
          ================================================== =======================
          == Parsing '/etc/asterisk/asterisk.conf': == Found
          == Parsing '/etc/asterisk/extconfig.conf': == Found
          Connected to Asterisk 1.8.18.0 currently running on voipltx (pid = 3304)
          Verbosity was 8 and is now 11
          == Using SIP RTP TOS bits 184
          == Using SIP RTP CoS mark 5
          -- Executing [100@from-internal:1] Macro("SIP/200-00000021", "user-callerid,SKIPTTL,") in new stack
          -- Executing [s@macro-user-callerid:1] Set("SIP/200-00000021", "AMPUSER=200") in new stack
          -- Executing [s@macro-user-callerid:2] GotoIf("SIP/200-00000021", "0?report") in new stack
          -- Executing [s@macro-user-callerid:3] ExecIf("SIP/200-00000021", "1?Set(REALCALLERIDNUM=200)") in new stack
          -- Executing [s@macro-user-callerid:4] Set("SIP/200-00000021", "AMPUSER=200") in new stack
          -- Executing [s@macro-user-callerid:5] Set("SIP/200-00000021", "AMPUSERCIDNAME=Recepcion") in new stack
          -- Executing [s@macro-user-callerid:6] GotoIf("SIP/200-00000021", "0?report") in new stack
          -- Executing [s@macro-user-callerid:7] Set("SIP/200-00000021", "AMPUSERCID=200") in new stack
          -- Executing [s@macro-user-callerid:8] Set("SIP/200-00000021", "CALLERID(all)="Recepcion" <200>") in new stack
          -- Executing [s@macro-user-callerid:9] ExecIf("SIP/200-00000021", "0?Set(CHANNEL(language)=)") in new stack
          -- Executing [s@macro-user-callerid:10] GotoIf("SIP/200-00000021", "1?continue") in new stack
          -- Goto (macro-user-callerid,s,19)
          -- Executing [s@macro-user-callerid:19] Set("SIP/200-00000021", "CALLERID(number)=200") in new stack
          -- Executing [s@macro-user-callerid:20] Set("SIP/200-00000021", "CALLERID(name)=Recepcion") in new stack
          -- Executing [s@macro-user-callerid:21] NoOp("SIP/200-00000021", "Using CallerID "Recepcion" <200>") in new stack
          -- Executing [100@from-internal:2] NoOp("SIP/200-00000021", "Calling Out Route: NLD-Office-ext") in new stack
          -- Executing [100@from-internal:3] Set("SIP/200-00000021", "MOHCLASS=default") in new stack
          -- Executing [100@from-internal:4] Set("SIP/200-00000021", "_NODEST=") in new stack
          -- Executing [100@from-internal:5] Macro("SIP/200-00000021", "record-enable,200,OUT,") in new stack
          -- Executing [s@macro-record-enable:1] GotoIf("SIP/200-00000021", "1?check") in new stack
          -- Goto (macro-record-enable,s,4)
          -- Executing [s@macro-record-enable:4] ExecIf("SIP/200-00000021", "0?MacroExit()") in new stack
          -- Executing [s@macro-record-enable:5] GotoIf("SIP/200-00000021", "0?Group:OUT") in new stack
          -- Goto (macro-record-enable,s,15)
          -- Executing [s@macro-record-enable:15] GotoIf("SIP/200-00000021", "0?IN") in new stack
          -- Executing [s@macro-record-enable:16] ExecIf("SIP/200-00000021", "1?MacroExit()") in new stack
          -- Executing [100@from-internal:6] Macro("SIP/200-00000021", "dialout-trunk,2,100,") in new stack
          -- Executing [s@macro-dialout-trunk:1] Set("SIP/200-00000021", "DIAL_TRUNK=2") in new stack
          -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/200-00000021", "0?sub-pincheck,s,1") in new stack
          -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/200-00000021", "0?disabletrunk,1") in new stack
          -- Executing [s@macro-dialout-trunk:4] Set("SIP/200-00000021", "DIAL_NUMBER=100") in new stack
          -- Executing [s@macro-dialout-trunk:5] Set("SIP/200-00000021", "DIAL_TRUNK_OPTIONS=tr") in new stack
          -- Executing [s@macro-dialout-trunk:6] Set("SIP/200-00000021", "OUTBOUND_GROUP=OUT_2") in new stack
          -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/200-00000021", "1?nomax") in new stack
          -- Goto (macro-dialout-trunk,s,9)
          -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/200-00000021", "0?skipoutcid") in new stack
          -- Executing [s@macro-dialout-trunk:10] Set("SIP/200-00000021", "DIAL_TRUNK_OPTIONS=") in new stack
          -- Executing [s@macro-dialout-trunk:11] Macro("SIP/200-00000021", "outbound-callerid,2") in new stack
          -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/200-00000021", "0?Set(CALLERPRES()=)") in new stack
          -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/200-00000021", "0?Set(REALCALLERIDNUM=200)") in new stack
          -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/200-00000021", "1?normcid") in new stack
          -- Goto (macro-outbound-callerid,s,6)
          -- Executing [s@macro-outbound-callerid:6] Set("SIP/200-00000021", "USEROUTCID=") in new stack
          -- Executing [s@macro-outbound-callerid:7] Set("SIP/200-00000021", "EMERGENCYCID=") in new stack
          -- Executing [s@macro-outbound-callerid:8] Set("SIP/200-00000021", "TRUNKOUTCID=Oficina Laredo Texas") in new stack
          -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/200-00000021", "1?trunkcid") in new stack
          -- Goto (macro-outbound-callerid,s,12)
          -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/200-00000021", "1?Set(CALLERID(all)=Oficina Laredo Texas)") in new stack
          -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/200-00000021", "0?Set(CALLERID(all)=)") in new stack
          -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/200-00000021", "0?Set(CALLERID(all)=)") in new stack
          -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/200-00000021", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
          -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/200-00000021", "0?sub-flp-2,s,1") in new stack
          -- Executing [s@macro-dialout-trunk:13] Set("SIP/200-00000021", "OUTNUM=100") in new stack
          -- Executing [s@macro-dialout-trunk:14] Set("SIP/200-00000021", "custom=SIP/Interconexion-NLD") in new stack
          -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/200-00000021", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)) ") in new stack
          -- Executing [s@macro-dialout-trunk:16] Macro("SIP/200-00000021", "dialout-trunk-predial-hook,") in new stack
          -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/200-00000021", "") in new stack
          -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/200-00000021", "0?bypass,1") in new stack
          -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/200-00000021", "0?customtrunk") in new stack
          -- Executing [s@macro-dialout-trunk:19] Dial("SIP/200-00000021", "SIP/Interconexion-NLD/100,300,") in new stack
          == Using SIP RTP TOS bits 184
          == Using SIP RTP CoS mark 5
          -- Called SIP/Interconexion-NLD/100

          Comentario


          • #6
            == Everyone is busy/congested at this time (1:0/0/1)
            -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/200-00000025", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
            -- Executing [s@macro-dialout-trunk:21] Goto("SIP/200-00000025", "s-CHANUNAVAIL,1") in new stack
            -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
            -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/200-00000025", "RC=21") in new stack
            -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/200-00000025", "21,1") in new stack
            -- Goto (macro-dialout-trunk,21,1)
            -- Executing [21@macro-dialout-trunk:1] Goto("SIP/200-00000025", "continue,1") in new stack
            -- Goto (macro-dialout-trunk,continue,1)
            -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/200-00000025", "1?noreport") in new stack
            -- Goto (macro-dialout-trunk,continue,3)
            -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/200-00000025", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
            -- Executing [continue@macro-dialout-trunk:4] Set("SIP/200-00000025", "CALLERID(number)=200") in new stack
            -- Executing [100@from-internal:7] Macro("SIP/200-00000025", "outisbusy,") in new stack
            -- Executing [s@macro-outisbusy:1] Progress("SIP/200-00000025", "") in new stack
            -- Executing [s@macro-outisbusy:2] GotoIf("SIP/200-00000025", "0?emergency,1") in new stack
            -- Executing [s@macro-outisbusy:3] GotoIf("SIP/200-00000025", "0?intracompany,1") in new stack
            -- Executing [s@macro-outisbusy:4] Playback("SIP/200-00000025", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
            -- <SIP/200-00000025> Playing 'all-circuits-busy-now.gsm' (language 'en')
            -- <SIP/200-00000025> Playing 'pls-try-call-later.gsm' (language 'en')
            -- Executing [s@macro-outisbusy:5] Congestion("SIP/200-00000025", "20") in new stack
            == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/200-00000025' in macro 'outisbusy'
            == Spawn extension (from-internal, 100, 7) exited non-zero on 'SIP/200-00000025'
            -- Executing [h@from-internal:1] Macro("SIP/200-00000025", "hangupcall") in new stack
            -- Executing [s@macro-hangupcall:1] GotoIf("SIP/200-00000025", "1?endmixmoncheck") in new stack
            -- Goto (macro-hangupcall,s,9)
            -- Executing [s@macro-hangupcall:9] NoOp("SIP/200-00000025", "End of MIXMON check") in new stack
            -- Executing [s@macro-hangupcall:10] GotoIf("SIP/200-00000025", "1?nomeetmemon") in new stack
            -- Goto (macro-hangupcall,s,28)
            -- Executing [s@macro-hangupcall:28] NoOp("SIP/200-00000025", "End of MEETME check") in new stack
            -- Executing [s@macro-hangupcall:29] GotoIf("SIP/200-00000025", "1?noautomon") in new stack
            -- Goto (macro-hangupcall,s,34)
            -- Executing [s@macro-hangupcall:34] NoOp("SIP/200-00000025", "TOUCH_MONITOR_OUTPUT=") in new stack
            -- Executing [s@macro-hangupcall:35] GotoIf("SIP/200-00000025", "1?noautomon2") in new stack
            -- Goto (macro-hangupcall,s,41)
            -- Executing [s@macro-hangupcall:41] NoOp("SIP/200-00000025", "MONITOR_FILENAME=") in new stack
            -- Executing [s@macro-hangupcall:42] GotoIf("SIP/200-00000025", "1?skiprg") in new stack
            -- Goto (macro-hangupcall,s,45)
            -- Executing [s@macro-hangupcall:45] GotoIf("SIP/200-00000025", "1?skipblkvm") in new stack
            -- Goto (macro-hangupcall,s,48)
            -- Executing [s@macro-hangupcall:48] GotoIf("SIP/200-00000025", "1?theend") in new stack
            -- Goto (macro-hangupcall,s,50)
            -- Executing [s@macro-hangupcall:50] AGI("SIP/200-00000025", "hangup.agi") in new stack
            -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
            -- <SIP/200-00000025>AGI Script hangup.agi completed, returning 0
            -- Executing [s@macro-hangupcall:51] Hangup("SIP/200-00000025", "") in new stack
            == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/200-00000025' in macro 'hangupcall'
            == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000025'

            Comentario


            • #7
              Precisamente la parte que nos importa del envio de la llamada no alcanza a salir. Por favor, pega el faltante.

              También veo que en tu configuración tienes los campos de fromuser, los cuales según yo deberían ser iguales que en username. A reserva de ver la razón por la que la llamada no pasa, yo haría este cambio:

              A:

              Trunk Name (peer): yyyyyyyyyyy

              host=192.168.x.x ( VPN )
              username=xxxxxxxxxxxx
              fromuser=xxxxxxxxxxx
              secret=password
              type=friend
              qualify=yes
              disallow=all
              allow=all
              context=default

              B:

              Trunk Name (peer): xxxxxxxxxxxx

              host=192.168.y.y ( VPN )
              username=yyyyyyyyyy
              fromuser=yyyyyyyyyy
              secret=password
              type=friend
              qualify=yes
              disallow=all
              allow=all
              context=default
              dCAP Christian Cabrera R.
              Para aprender a usar Asterisk, asiste a uno de mis cursos Asterisk
              Si deseas asesoría pagada, por favor contáctame

              Comentario


              • #8
                Muchachos muchas gracias por su ayuda ya pude resolver el problema con esta configuración en las troncales IAX2 que me encontré en internet:

                TRUNK NAME: interconexion-123

                host=serverb
                username=interconexion-321
                secret=password
                encryption=aes128
                auth=md5
                type=friend
                context=from-internal
                trunk=yes
                requirecalltoken=no

                TRUNK NAME: interconexion-321

                host=servera
                username=interconexion-123
                secret=password
                encryption=aes128
                auth=md5
                type=friend
                context=from-internal
                trunk=yes
                requirecalltoken=no

                Comentario


                • #9
                  Justamente eso era lo que buscaba mostrarte: el TRUNK NAME tiene que ser igual que el USERNAMe del equipo que está en el otro lado,de lo contrario te daría un "No authority found"
                  dCAP Christian Cabrera R.
                  Para aprender a usar Asterisk, asiste a uno de mis cursos Asterisk
                  Si deseas asesoría pagada, por favor contáctame

                  Comentario

                  Principales Usuarios Activos

                  Colapsar

                  No hay usuarios activos superiores.
                  Trabajando...
                  X