[FreePBX con Movistar] No funcionan llamadas salientes

Hola a todos.

Llevo varios días intentando poner en marcha una centralita VoIP basada en FreePBX. La tengo instalado en Docker en una NAS Synology. Entre lo que he cogido de aquí y de allá, he conseguido hablar correctamente entre extensiones (esto es lo fácil) y también recibir llamadas desde el trunk de Movistar (es decir, desde el exterior) a los softphones (utilizo la App de SessionTalk, que va bastante bien). Lo que no logro es hacer llamadas hacia el trunk de Movistar, es decir, llamar al exterior.

Normalmente no doy la lata en los foros a la primera de cambio, pero es que no sé como seguir desde donde estoy por más que lo intento. El caso es que yo creo que la config del trunk está bien. Es más... juraría que, en alguna ocasión (al principio) las llamadas externas funcionaron. Pero, sinceramente, con tanta prueba que he hecho, ya no lo tengo 100% claro. Si alguien tiene alguna config para el trunk que funcione a día de hoy para probar con ella, agradecería que me la facilitasen.

Las peticiones llegan al servidor correctamente (se aprecia en el registro de Asterisk), o sea que no parece un problema de red o de redirección de puertos. Pero por algún motivo, las llamadas desde el softphone siempre terminan con un audio reproducido por Asterisk diciendo que "Todos los circuitos están ocupados. Por favor, prueba más tarde".

Os pongo más abajo la config en la que me he quedado, aunque he probado muchas combinaciones y con ninguna logro llamar al exterior. Pongo los pantallazos de lo que es relevante, aunque si alguien echa de menos algo, no tengan problema en pedirlo.

Obviamente, en la config que tengo, el número de teléfono no es 949XXXXXX, sino el teléfono real.

Al final, pongo también en texto las configs del trunk SIP, y también los logs de salida de Asterisk. No tengo claro cómo interpretarlo, pero da la sensación que hay algún problema con el trunk de salida. He sustituido el dominio que utilizo por sip.midominio.com; el número de teléfono fijo por TEL_MOVISTAR y el de destino por TEL_DESTINO.

¡Gracias!

Trunk General.jpg


Trunk SIP Out.jpg


Trunk SIP In.jpg


Outbound Routes - Settings.jpg


Outbound Routes - Dial Patterns.jpg


OUTGOING
Código:
type=peer
user=949XXXXXX
username=949XXXXXX
fromuser=949XXXXXX
secret=949XXXXXX
fromdomain=telefonica.net
outboundproxy=10.31.255.134:5070
host=telefonica.net
port=5060
nat=force_rport,comedia
insecure=port,invite
dtmfmode=auto
disallow=all
allow=ulaw&alaw
context=casa
qualify=yes
trustpid=yes

INCOMING
Código:
type=peer
user=949XXXXXX
username=949XXXXXX
fromuser=949XXXXXX
secret=949XXXXXX
fromdomain=telefonica.net
outboundproxy=10.31.255.134:5070
host=telefonica.net
port=5060
nat=force_rport,comedia
insecure=port,invite
dtmfmode=auto
disallow=all
allow=ulaw&alaw
context=casa
qualify=yes
trustpid=yes

LOGS ASTERISK
Código:
2[2022-09-30 15:20:49] VERBOSE[8646] pbx_variables.c: Setting global variable 'SIPDOMAIN' to 'sip.mi_dominio.com'
3[2022-09-30 15:20:49] VERBOSE[8646] netsock2.c: Using SIP RTP Audio TOS bits 184
4[2022-09-30 15:20:49] VERBOSE[8646] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
5[2022-09-30 15:20:49] VERBOSE[8646] netsock2.c: Using SIP RTP Audio CoS mark 5
6[2022-09-30 15:20:49] ERROR[8646] netsock2.c: getaddrinfo("tiredofit-freepbx1", "(null)", ...): Name or service not known
7[2022-09-30 15:20:49] WARNING[8646] acl.c: Unable to lookup 'tiredofit-freepbx1'
8[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:1] Macro("PJSIP/101-00000002", "user-callerid,LIMIT,EXTERNAL,") in new stack
9[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/101-00000002", "TOUCH_MONITOR=1664551249.2") in new stack
10[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/101-00000002", "CHANCONTEXT=") in new stack
11[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:3] Set("PJSIP/101-00000002", "CHANCONTEXT=") in new stack
12[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:4] Set("PJSIP/101-00000002", "CHANEXTENCONTEXT=101-00000002") in new stack
13[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/101-00000002", "CHANEXTEN=101-00000002") in new stack
14[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:6] Set("PJSIP/101-00000002", "CALLERID(number)=101") in new stack
15[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/101-00000002", "AMPUSER=101") in new stack
16[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:8] Set("PJSIP/101-00000002", "HOTDESCKCHAN=101-00000002") in new stack
17[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:9] Set("PJSIP/101-00000002", "HOTDESKEXTEN=101") in new stack
18[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/101-00000002", "HOTDESKCALL=0") in new stack
19[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:11] ExecIf("PJSIP/101-00000002", "0?Set(HOTDESKCALL=1)") in new stack
20[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:12] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(name)=)") in new stack
21[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:13] GotoIf("PJSIP/101-00000002", "0?report") in new stack
22[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("PJSIP/101-00000002", "1?Set(REALCALLERIDNUM=101)") in new stack
23[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:15] Set("PJSIP/101-00000002", "AMPUSER=101") in new stack
24[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:16] GotoIf("PJSIP/101-00000002", "0?limit") in new stack
25[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:17] Set("PJSIP/101-00000002", "AMPUSERCIDNAME=101") in new stack
26[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:18] ExecIf("PJSIP/101-00000002", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
27[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:19] GotoIf("PJSIP/101-00000002", "0?report") in new stack
28[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:20] Set("PJSIP/101-00000002", "AMPUSERCID=101") in new stack
29[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:21] Set("PJSIP/101-00000002", "__DIAL_OPTIONS=HhTtr") in new stack
30[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:22] Set("PJSIP/101-00000002", "CALLERID(all)="101" <101>") in new stack
31[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:23] ExecIf("PJSIP/101-00000002", "0?Set(CUSDIAL=)") in new stack
32[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:24] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(all)="101" <101>)") in new stack
33[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:25] GotoIf("PJSIP/101-00000002", "0?limit") in new stack
34[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:26] ExecIf("PJSIP/101-00000002", "1?Set(GROUP(concurrency_limit)=101)") in new stack
35[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:27] ExecIf("PJSIP/101-00000002", "1?Set(CHANNEL(language)=es)") in new stack
36[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:28] NoOp("PJSIP/101-00000002", "Macro Depth is 1") in new stack
37[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:29] GotoIf("PJSIP/101-00000002", "1?report2:macroerror") in new stack
38[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-user-callerid,s,30)
39[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:30] GotoIf("PJSIP/101-00000002", "1?continue") in new stack
40[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-user-callerid,s,48)
41[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/101-00000002", "CALLERID(number)=101") in new stack
42[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:49] Set("PJSIP/101-00000002", "CALLERID(name)=101") in new stack
43[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:50] GotoIf("PJSIP/101-00000002", "0?cnum") in new stack
44[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:51] Set("PJSIP/101-00000002", "CDR(cnam)=101") in new stack
45[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:52] Set("PJSIP/101-00000002", "CDR(cnum)=101") in new stack
46[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-user-callerid:53] Set("PJSIP/101-00000002", "CHANNEL(language)=es") in new stack
47[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:2] Gosub("PJSIP/101-00000002", "sub-record-check,s,1(out,TEL_DESTINO,dontcare)") in new stack
48[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:1] GotoIf("PJSIP/101-00000002", "0?initialized") in new stack
49[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:2] Set("PJSIP/101-00000002", "__REC_STATUS=INITIALIZED") in new stack
50[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:3] Set("PJSIP/101-00000002", "NOW=1664551249") in new stack
51[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:4] Set("PJSIP/101-00000002", "__DAY=30") in new stack
52[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:5] Set("PJSIP/101-00000002", "__MONTH=09") in new stack
53[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:6] Set("PJSIP/101-00000002", "__YEAR=2022") in new stack
54[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:7] Set("PJSIP/101-00000002", "__TIMESTR=20220930-152049") in new stack
55[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:8] Set("PJSIP/101-00000002", "__FROMEXTEN=101") in new stack
56[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:9] Set("PJSIP/101-00000002", "__MON_FMT=wav") in new stack
57[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:10] NoOp("PJSIP/101-00000002", "Recordings initialized") in new stack
58[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:11] ExecIf("PJSIP/101-00000002", "0?Set(ARG3=dontcare)") in new stack
59[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:12] Set("PJSIP/101-00000002", "REC_POLICY_MODE_SAVE=") in new stack
60[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:13] ExecIf("PJSIP/101-00000002", "0?Set(REC_STATUS=NO)") in new stack
61[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:14] GotoIf("PJSIP/101-00000002", "3?checkaction") in new stack
62[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (sub-record-check,s,17)
63[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@sub-record-check:17] GotoIf("PJSIP/101-00000002", "1?sub-record-check,out,1") in new stack
64[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (sub-record-check,out,1)
65[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [out@sub-record-check:1] NoOp("PJSIP/101-00000002", "Outbound Recording Check from 101 to TEL_DESTINO") in new stack
66[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [out@sub-record-check:2] Set("PJSIP/101-00000002", "RECMODE=dontcare") in new stack
67[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [out@sub-record-check:3] ExecIf("PJSIP/101-00000002", "1?Goto(routewins)") in new stack
68[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (sub-record-check,out,7)
69[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [out@sub-record-check:7] Gosub("PJSIP/101-00000002", "recordcheck,1(dontcare,out,TEL_DESTINO)") in new stack
70[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/101-00000002", "Starting recording check against dontcare") in new stack
71[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("PJSIP/101-00000002", "dontcare") in new stack
72[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
73[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [recordcheck@sub-record-check:3] Return("PJSIP/101-00000002", "") in new stack
74[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [out@sub-record-check:8] Return("PJSIP/101-00000002", "") in new stack
75[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:3] Set("PJSIP/101-00000002", "_ROUTEID=1") in new stack
76[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:4] Set("PJSIP/101-00000002", "_ROUTENAME=Movistar OUT") in new stack
77[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:5] Set("PJSIP/101-00000002", "MOHCLASS=default") in new stack
78[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:6] Set("PJSIP/101-00000002", "_CALLERIDNAMEINTERNAL=101") in new stack
79[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:7] Set("PJSIP/101-00000002", "_CALLERIDNUMINTERNAL=101") in new stack
80[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:8] Set("PJSIP/101-00000002", "_EMAILNOTIFICATION=FALSE") in new stack
81[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:9] Set("PJSIP/101-00000002", "_NODEST=") in new stack
82[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:10] Macro("PJSIP/101-00000002", "dialout-trunk,1,TEL_DESTINO,,off") in new stack
83[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:1] Set("PJSIP/101-00000002", "DIAL_TRUNK=1") in new stack
84[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/101-00000002", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
85[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/101-00000002", "0?sub-pincheck,s,1()") in new stack
86[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(num)=101)") in new stack
87[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/101-00000002", "0?disabletrunk,1") in new stack
88[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:6] Set("PJSIP/101-00000002", "DIAL_NUMBER=TEL_DESTINO") in new stack
89[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:7] Set("PJSIP/101-00000002", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
90[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:8] Set("PJSIP/101-00000002", "OUTBOUND_GROUP=OUT_1") in new stack
91[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:9] Set("PJSIP/101-00000002", "DIAL_TRUNK_OPTIONS=T") in new stack
92[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/101-00000002", "1?nomax") in new stack
93[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-dialout-trunk,s,12)
94[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/101-00000002", "0?skipoutcid") in new stack
95[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:13] Macro("PJSIP/101-00000002", "outbound-callerid,1") in new stack
96[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/101-00000002", "101") in new stack
97[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/101-00000002", "") in new stack
98[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/101-00000002", "off") in new stack
99[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(name-pres)=)") in new stack
100[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(num-pres)=)") in new stack
101[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:6] Set("PJSIP/101-00000002", "HOTDESCKCHAN=101-00000002") in new stack
102[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:7] Set("PJSIP/101-00000002", "HOTDESKEXTEN=101") in new stack
103[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:8] Set("PJSIP/101-00000002", "HOTDESKCALL=0") in new stack
104[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/101-00000002", "0?Set(HOTDESKCALL=1)") in new stack
105[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(name)=)") in new stack
106[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:11] Set("PJSIP/101-00000002", "ALLOWTHISROUTE=NO") in new stack
107[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/101-00000002", "0?Set(ALLOWTHISROUTE=YES)") in new stack
108[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/101-00000002", "0?Hangup()") in new stack
109[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/101-00000002", "0?Set(REALCALLERIDNUM=101)") in new stack
110[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/101-00000002", "0?Set(AMPUSER=101)") in new stack
111[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/101-00000002", "1?normcid") in new stack
112[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
113[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:20] Set("PJSIP/101-00000002", "USEROUTCID=") in new stack
114[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:21] Set("PJSIP/101-00000002", "EMERGENCYCID=") in new stack
115[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/101-00000002", "0?Set(EMERGENCYCID=)") in new stack
116[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:23] Set("PJSIP/101-00000002", "TRUNKOUTCID=TEL_MOVISTAR") in new stack
117[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/101-00000002", "1?trunkcid") in new stack
118[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-outbound-callerid,s,30)
119[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/101-00000002", "1?Set(CALLERID(all)=TEL_MOVISTAR)") in new stack
120[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(all)=)") in new stack
121[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(all)=)") in new stack
122[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(all)=101)") in new stack
123[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/101-00000002", "0?Set(CALLERID(all)=101)") in new stack
124[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:35] Set("PJSIP/101-00000002", "TIOHIDE=no") in new stack
125[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
126[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
127[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
128[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/101-00000002", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
129[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:40] Set("PJSIP/101-00000002", "CDR(outbound_cnum)=TEL_MOVISTAR") in new stack
130[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outbound-callerid:41] Set("PJSIP/101-00000002", "CDR(outbound_cnam)=") in new stack
131[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/101-00000002", "0?sub-flp-1,s,1()") in new stack
132[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:15] Set("PJSIP/101-00000002", "OUTNUM=TEL_DESTINO") in new stack
133[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:16] Set("PJSIP/101-00000002", "custom=SIP/Movistar_Out") in new stack
134[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/101-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
135[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/101-00000002", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
136[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:19] Macro("PJSIP/101-00000002", "dialout-trunk-predial-hook,") in new stack
137[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/101-00000002", "") in new stack
138[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/101-00000002", "0?bypass,1") in new stack
139[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/101-00000002", "1?Set(CONNECTEDLINE(num,i)=TEL_DESTINO)") in new stack
140[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/101-00000002", "1?Set(CONNECTEDLINE(name,i)=CID:TEL_MOVISTAR)") in new stack
141[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/101-00000002", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)TEL_MOVISTAR)") in new stack
142[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/101-00000002", "0?customtrunk") in new stack
143[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/101-00000002", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
144[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:26] Set("PJSIP/101-00000002", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
145[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:27] Dial("PJSIP/101-00000002", "SIP/Movistar_Out/TEL_DESTINO,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^TEL_DESTINO^TEL_DESTINO^1^1664551249^^TEL_MOVISTAR)") in new stack
146[2022-09-30 15:20:49] WARNING[15669][C-00000003] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
147[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] app_dial.c: No devices or endpoints to dial (technology/resource)
148[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/101-00000002", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
149[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/101-00000002", "0?continue,1:s-CHANUNAVAIL,1") in new stack
150[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
151[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/101-00000002", "RC=20") in new stack
152[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/101-00000002", "20,1") in new stack
153[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-dialout-trunk,20,1)
154[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [20@macro-dialout-trunk:1] Goto("PJSIP/101-00000002", "continue,1") in new stack
155[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
156[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/101-00000002", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks") in new stack
157[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/101-00000002", "1?Set(CALLERID(number)=101)") in new stack
158[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [TEL_DESTINO@from-internal:11] Macro("PJSIP/101-00000002", "outisbusy,") in new stack
159[2022-09-30 15:20:49] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-outisbusy:1] Playback("PJSIP/101-00000002", "all-circuits-busy-now&please-try-call-later") in new stack
160[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx.c: Executing [h@from-internal:1] Macro("PJSIP/101-00000002", "hangupcall") in new stack
161[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/101-00000002", "1?theend") in new stack
162[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx_builtins.c: Goto (macro-hangupcall,s,3)
163[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/101-00000002", "0?Set(CDR(recordingfile)=)") in new stack
164[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx.c: Executing [s@macro-hangupcall:4] Hangup("PJSIP/101-00000002", "") in new stack
165[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/101-00000002' in macro 'hangupcall'
166[2022-09-30 15:20:53] VERBOSE[15669][C-00000003] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/101-00000002'
 

Adjuntos

  • Outbound Routes - Settings.jpg
    Outbound Routes - Settings.jpg
    81.7 KB · Visitas: 32
¿No será que en las cláusulas "port=" la información pudiera ser incorrecta (5060)? El proxy responde al puerto 5070, pero la propia comunicación SIP, creo que también, no por el 5060. Prueba con "port=5070" en ambos casos.

Adicionalmente, ¿estás seguro de que se resuelve internamente "telefonica.net" de manera correcta? Prueba con poner la IP correspondiente y a ver qué pasa.

Saludos,
 
¿No será que en las cláusulas "port=" la información pudiera ser incorrecta (5060)? El proxy responde al puerto 5070, pero la propia comunicación SIP, creo que también, no por el 5060. Prueba con "port=5070" en ambos casos.

Adicionalmente, ¿estás seguro de que se resuelve internamente "telefonica.net" de manera correcta? Prueba con poner la IP correspondiente y a ver qué pasa.

Saludos,
 
¿No será que en las cláusulas "port=" la información pudiera ser incorrecta (5060)? El proxy responde al puerto 5070, pero la propia comunicación SIP, creo que también, no por el 5060. Prueba con "port=5070" en ambos casos.

Adicionalmente, ¿estás seguro de que se resuelve internamente "telefonica.net" de manera correcta? Prueba con poner la IP correspondiente y a ver qué pasa.

Saludos,
Finalmente pude solucionar el problema colocando la IP de telefonica.net en el hosts del router y tocando otra cosa que, lamentablemente, no recuerdo, porque lo hice hace días antes de ver tu respuesta. El caso es que fue una combinación de dos problemas. Si lo recuerdo, actualizo el hilo. Gracias por contestar de todas formas. :)

En cualquier caso, no entiendo que tenga que ponerse la IP de telefonica.net. A no ser que yo no tenga claro cómo funciona un proxy, entiendo que, al conectar a través de uno, no tiene por qué ser necesario que telefonica.net resuelva delante del proxy. Mientras se resuelva detrás del proxy conectando a través de él, yo creo que debería funcionar.

Por cierto: el puerto del proxy es el 5070, pero la comunicación SIP va a través del 5060. Eso no lo he cambiado y todo funciona perfectamente.
 
Arriba