Como crear SIP TRUNK PJSIP

freepbx
pjsip
siptrunk
Tags: #<Tag:0x00007ff2f0171700> #<Tag:0x00007ff2f01711d8> #<Tag:0x00007ff2f0170d50>

(Laloxo Hernandez) #1

Hola Comunidad

Estoy intentado crear una troncal PJSIP , ya me quedaron las llamadas entrantes pero no las salientes, ya cree mi ruta saliente pero las llamadas se quedan en el Free.

Esta es mi configuración:

Espero me pueda apoyar esta comunidad tan grande.
Saludos desde MX
Eduardo


(Lorne Gaetz) #2

Bienvenido

It may be helpful to see the entire call trace beginning to end. You can isolate and share via pastebin:
https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII


(Laloxo Hernandez) #3


(Laloxo Hernandez) #4

[2021-06-10 18:17:58] ERROR[7197] res_pjsip.c: Endpoint ‘6007275389’: Could not create dialog to invalid URI ‘6007275389’. Is endpoint registered and reachable?
[2021-06-10 18:17:58] ERROR[7197] chan_pjsip.c: Failed to create outgoing session to endpoint ‘6007275389’
[2021-06-10 18:17:58] WARNING[12552][C-00000019] app_dial.c: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] app_dial.c: No devices or endpoints to dial (technology/resource)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:35] NoOp(“PJSIP/201-00000011”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 3”) in new stack
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:36] GotoIf(“PJSIP/201-00000011”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:1] Set(“PJSIP/201-00000011”, “RC=3”) in new stack
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:2] Goto(“PJSIP/201-00000011”, “3,1”) in new stack
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx_builtins.c: Goto (macro-dialout-trunk,3,1)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:1] Goto(“PJSIP/201-00000011”, “continue,1”) in new stack
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/201-00000011”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 3 - failing through to other trunks”) i


(Gerardo Barajas) #5

Revisa que tu troncal esté registrada correctamente:

[2021-06-10 18:17:58] ERROR[7197] res_pjsip.c: Endpoint ‘6007275389’: Could not create dialog to invalid URI ‘6007275389’. Is endpoint registered and reachable?
[2021-06-10 18:17:58] ERROR[7197] chan_pjsip.c: Failed to create outgoing session to endpoint ‘6007275389’
[2021-06-10 18:17:58] WARNING[12552][C-00000019] app_dial.c: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
[2021-06-10 18:17:58] VERBOSE[12552][C-00000019] app_dial.c: No devices or endpoints to dial (technology/resource)

También revisa que el CallerID de salida sea el esperado por tu troncal.

Saludos.


(Ricardo) #6

Verifica en la ruta saliente en la solapa "Configuración de Ruta" en el ultimo ítem "Secuencia troncal para rutas…" si esta asignado el proveedor que configuraste (Net2phone )


(Laloxo Hernandez) #7

Hola, un gusto, si me aparece registrada, pero en el endpoints me aparece unavailible.

image


(Laloxo Hernandez) #8

image


(Laloxo Hernandez) #9

Hola , un gusto, si la tengo asignada, no se si sea un tema de mi Ext o de la cuenta, si recibe llamadas la troncal pero me manda ese error al realizar una llmada saliente.

[2021-06-10 18:52:20] ERROR[14409] res_pjsip.c: Endpoint ‘6007275389’: Could not create dialog to invalid URI ‘6007275389’. Is endpoint registered and reachable?
[2021-06-10 18:52:20] ERROR[14409] chan_pjsip.c: Failed to create outgoing session to endpoint ‘6007275389’
[2021-06-10 18:52:20] WARNING[17989][C-00000028] app_dial.c: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] app_dial.c: No devices or endpoints to dial (technology/resource)
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:35] NoOp(“PJSIP/201-00000022”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 3”) in new stack
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:36] GotoIf(“PJSIP/201-00000022”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:1] Set(“PJSIP/201-00000022”, “RC=3”) in new stack
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:2] Goto(“PJSIP/201-00000022”, “3,1”) in new stack
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx_builtins.c: Goto (macro-dialout-trunk,3,1)
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:1] Goto(“PJSIP/201-00000022”, “continue,1”) in new stack
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2021-06-10 18:52:20] VERBOSE[17989][C-00000028] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/201-00000022”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 3 - failing through to other trunks”)


(Ricardo) #10

Podrías modificar el nombre de la troncal?? se hace confuso con el URI

Mejor usar nombres como "ruta_net2phone" y de paso revisar los parámetros para conectarte al proveedor.


(Laloxo Hernandez) #11

Listo, ya lo cambie pero sigue igual


(Ricardo) #12

Gracias, un detalle, que modo de autenticación esta requiriendo net2phone?? (depende de la información que te haya pasado Net2phone para configurar la troncales).

(IP Authentication (IP address) o Digest Authentication) si es Digest Authentication en la configuración de la troncal activa el Registro ya que esta en la opción Nada.


(system) closed #13

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.