"all circuits busy" al configurar trunk con Zadarma

freepbx
Tags: #<Tag:0x00007fb47c2d3e48>

(España) #1

Hola. Por mudanza estamos valorando migrar nuestro número comercial a un operador IP para darle entrada a nuestro Freepbx y ya de paso contratar números geográficos.

He conseguido configurar un trunk de Zadarma (tanto pot PJSIP como por legacy SIP) correctamente pero al hacer pruebas con las rutas de salida el sistema me dice que no es posible.

He revisado la configuración sin éxito y en los logs lo único que veo raro podría ser esto pero no tengo ni idea de como depurarlo más:

– SIP/Zadarma_legacy_out-00000106 Internal Gosub(func-apply-sipheaders,s,1(5)) start
– Executing [s@func-apply-sipheaders:1] NoOp(“SIP/Zadarma_legacy_out-00000106”, “Applying SIP Headers to channel SIP/Zadarma_legacy_out-00000106”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“SIP/Zadarma_legacy_out-00000106”, “TECH=SIP”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“SIP/Zadarma_legacy_out-00000106”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“SIP/Zadarma_legacy_out-00000106”, “1”) in new stack
– Executing [s@func-apply-sipheaders:5] Set(“SIP/Zadarma_legacy_out-00000106”, “sipheader=unset”) in new stack
– Executing [s@func-apply-sipheaders:6] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “1?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [s@func-apply-sipheaders:7] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [s@func-apply-sipheaders:8] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [s@func-apply-sipheaders:9] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [s@func-apply-sipheaders:10] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “0?SIPAddHeader(Alert-Info:unset)”) in new stack
– Executing [s@func-apply-sipheaders:11] ExecIf(“SIP/Zadarma_legacy_out-00000106”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [s@func-apply-sipheaders:12] EndWhile(“SIP/Zadarma_legacy_out-00000106”, “”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“SIP/Zadarma_legacy_out-00000106”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“SIP/Zadarma_legacy_out-00000106”, “”) in new stack
== Spawn extension (from-trunk-sip-Zadarma_legacy_out, 174444, 1) exited non-zero on ‘SIP/Zadarma_legacy_out-00000106’
– SIP/Zadarma_legacy_out-00000106 Internal Gosub(func-apply-sipheaders,s,1(5)) complete GOSUB_RETVAL=
– Called SIP/Zadarma_legacy_out/4444

También he hecho intentos con Netelip pero en este caso aún no he conseguido siquiera registrar el SIP, parece que el soporte técnico no es el fuerte de ninguno de estos operadores.


(Ricardo) #2

No hay mucha información para poder decir cual podría ser el problema, el mensaje de error es que esta definido en la configuración de rutas salientes (mensaje “all circuits….” o congestion “ Optional Destination on Congestion “).

Por lo que deberías ver en la configuración de las rutas salientes “Outbound Routes

“ si de acuerdo al patron de marcado esta definido tu proveedor, por donde saldrán las llamadas.


(España) #3

Gracias. Sin ídeas de que más mirar. El outbound route está configurado sobre un prefijo y con un “.” para enviar todo según instrucciones de este proveedor.

Pongo el log completo de una llamada fallida por si aporta algo… para mi los logs de asterisk son un acto de fé y me encantaría disponer de alguna utilidad que los tradujera a algo interpretable:

 == Extension Changed 19[ext-local] new state InUse for Notify User 10
    -- Executing [17606964202@from-internal:1] Macro("SIP/19-00000161", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/19-00000161", "TOUCH_MONITOR=1616519245.359") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/19-00000161", "AMPUSER=19") in new stack
    -- Executing [s@macro-user-callerid:3] Set("SIP/19-00000161", "HOTDESCKCHAN=19-00000161") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/19-00000161", "HOTDESKEXTEN=19") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/19-00000161", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:6] ExecIf("SIP/19-00000161", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:7] ExecIf("SIP/19-00000161", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/19-00000161", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/19-00000161", "1?Set(REALCALLERIDNUM=19)") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/19-00000161", "AMPUSER=19") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/19-00000161", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:12] Set("SIP/19-00000161", "AMPUSERCIDNAME=Luis") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/19-00000161", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/19-00000161", "0?report") in new stack
    -- Executing [s@macro-user-callerid:15] Set("SIP/19-00000161", "AMPUSERCID=19") in new stack
    -- Executing [s@macro-user-callerid:16] Set("SIP/19-00000161", "__DIAL_OPTIONS=TtrwW") in new stack
    -- Executing [s@macro-user-callerid:17] Set("SIP/19-00000161", "CALLERID(all)="Luis" <19>") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("SIP/19-00000161", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:19] ExecIf("SIP/19-00000161", "0?Set(CALLERID(all)="Luis" <19>)") in new stack
    -- Executing [s@macro-user-callerid:20] GotoIf("SIP/19-00000161", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:21] ExecIf("SIP/19-00000161", "1?Set(GROUP(concurrency_limit)=19)") in new stack
    -- Executing [s@macro-user-callerid:22] NoOp("SIP/19-00000161", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:23] GotoIf("SIP/19-00000161", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,24)
    -- Executing [s@macro-user-callerid:24] GotoIf("SIP/19-00000161", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,42)
    -- Executing [s@macro-user-callerid:42] Set("SIP/19-00000161", "CALLERID(number)=19") in new stack
    -- Executing [s@macro-user-callerid:43] Set("SIP/19-00000161", "CALLERID(name)=Luis") in new stack
    -- Executing [s@macro-user-callerid:44] GotoIf("SIP/19-00000161", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:45] Set("SIP/19-00000161", "CDR(cnam)=Luis") in new stack
    -- Executing [s@macro-user-callerid:46] Set("SIP/19-00000161", "CDR(cnum)=19") in new stack
    -- Executing [s@macro-user-callerid:47] Set("SIP/19-00000161", "CHANNEL(language)=en") in new stack
    -- Executing [17606964202@from-internal:2] Gosub("SIP/19-00000161", "sub-record-check,s,1(out,17606964202,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/19-00000161", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/19-00000161", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/19-00000161", "NOW=1616519245") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/19-00000161", "__DAY=23") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/19-00000161", "__MONTH=03") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/19-00000161", "__YEAR=2021") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/19-00000161", "__TIMESTR=20210323-180725") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/19-00000161", "__FROMEXTEN=19") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/19-00000161", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/19-00000161", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/19-00000161", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/19-00000161", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/19-00000161", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/19-00000161", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/19-00000161", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("SIP/19-00000161", "Outbound Recording Check from 19 to 17606964202") in new stack
    -- Executing [out@sub-record-check:2] Set("SIP/19-00000161", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("SIP/19-00000161", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("SIP/19-00000161", "recordcheck,1(dontcare,out,17606964202)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/19-00000161", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/19-00000161", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/19-00000161", "") in new stack
    -- Executing [out@sub-record-check:8] Return("SIP/19-00000161", "") in new stack
    -- Executing [17606964202@from-internal:3] Set("SIP/19-00000161", "_ROUTEID=23") in new stack
    -- Executing [17606964202@from-internal:4] Set("SIP/19-00000161", "_ROUTENAME=17_test_zadarma") in new stack
    -- Executing [17606964202@from-internal:5] Set("SIP/19-00000161", "MOHCLASS=default") in new stack
    -- Executing [17606964202@from-internal:6] ExecIf("SIP/19-00000161", "1?Set(TRUNKCIDOVERRIDE=200011)") in new stack
    -- Executing [17606964202@from-internal:7] Set("SIP/19-00000161", "_CALLERIDNAMEINTERNAL=Luis") in new stack
    -- Executing [17606964202@from-internal:8] Set("SIP/19-00000161", "_CALLERIDNUMINTERNAL=19") in new stack
    -- Executing [17606964202@from-internal:9] Set("SIP/19-00000161", "_EMAILNOTIFICATION=FALSE") in new stack
    -- Executing [17606964202@from-internal:10] Set("SIP/19-00000161", "_NODEST=") in new stack
    -- Executing [17606964202@from-internal:11] Macro("SIP/19-00000161", "dialout-trunk,5,606964202,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/19-00000161", "DIAL_TRUNK=5") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/19-00000161", "0?Set(DIAL_OPTIONS=trwW)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("SIP/19-00000161", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("SIP/19-00000161", "0?Set(CALLERID(num)=19)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("SIP/19-00000161", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/19-00000161", "DIAL_NUMBER=606964202") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("SIP/19-00000161", "DIAL_TRUNK_OPTIONS=TtrwW") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("SIP/19-00000161", "OUTBOUND_GROUP=OUT_5") in new stack
    -- Executing [s@macro-dialout-trunk:9] Set("SIP/19-00000161", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/19-00000161", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:11] GotoIf("SIP/19-00000161", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:12] GotoIf("SIP/19-00000161", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:13] Macro("SIP/19-00000161", "outbound-callerid,5") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("SIP/19-00000161", "19") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("SIP/19-00000161", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/19-00000161", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/19-00000161", "HOTDESCKCHAN=19-00000161") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/19-00000161", "HOTDESKEXTEN=19") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/19-00000161", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-outbound-callerid:9] ExecIf("SIP/19-00000161", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-outbound-callerid:10] ExecIf("SIP/19-00000161", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/19-00000161", "ALLOWTHISROUTE=NO") in new stack
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/19-00000161", "0?Set(ALLOWTHISROUTE=YES)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/19-00000161", "0?Hangup()") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/19-00000161", "0?Set(REALCALLERIDNUM=19)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/19-00000161", "0?Set(AMPUSER=19)") in new stack
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/19-00000161", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,20)
    -- Executing [s@macro-outbound-callerid:20] Set("SIP/19-00000161", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("SIP/19-00000161", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/19-00000161", "0?Set(EMERGENCYCID=)") in new stack
    -- Executing [s@macro-outbound-callerid:23] Set("SIP/19-00000161", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:24] GotoIf("SIP/19-00000161", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,30)
    -- Executing [s@macro-outbound-callerid:30] ExecIf("SIP/19-00000161", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:31] ExecIf("SIP/19-00000161", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:32] ExecIf("SIP/19-00000161", "1?Set(CALLERID(all)=200011)") in new stack
    -- Executing [s@macro-outbound-callerid:33] ExecIf("SIP/19-00000161", "0?Set(CALLERID(all)=19)") in new stack
    -- Executing [s@macro-outbound-callerid:34] ExecIf("SIP/19-00000161", "0?Set(CALLERID(all)=19)") in new stack
    -- Executing [s@macro-outbound-callerid:35] Set("SIP/19-00000161", "TIOHIDE=no") in new stack
    -- Executing [s@macro-outbound-callerid:36] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:37] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:38] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:39] ExecIf("SIP/19-00000161", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:40] Set("SIP/19-00000161", "CDR(outbound_cnum)=200011") in new stack
    -- Executing [s@macro-outbound-callerid:41] Set("SIP/19-00000161", "CDR(outbound_cnam)=") in new stack
[2021-03-23 18:07:25] WARNING[2470]: func_cdr.c:377 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-dialout-trunk:14] GosubIf("SIP/19-00000161", "0?sub-flp-5,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("SIP/19-00000161", "OUTNUM=606964202") in new stack
    -- Executing [s@macro-dialout-trunk:16] Set("SIP/19-00000161", "custom=SIP/Zadarma_legacy_out") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/19-00000161", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:18] ExecIf("SIP/19-00000161", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:19] Macro("SIP/19-00000161", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/19-00000161", "") in new stack
    -- Executing [s@macro-dialout-trunk:20] GotoIf("SIP/19-00000161", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("SIP/19-00000161", "1?Set(CONNECTEDLINE(num,i)=606964202)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("SIP/19-00000161", "1?Set(CONNECTEDLINE(name,i)=CID:200011)") in new stack
    -- Executing [s@macro-dialout-trunk:23] ExecIf("SIP/19-00000161", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)200011)") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/19-00000161", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:25] ExecIf("SIP/19-00000161", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/19-00000161", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/19-00000161", "SIP/Zadarma_legacy_out/606964202,300,Tb(func-apply-sipheaders^s^1,(5))U(sub-send-obroute-email^606964202^17606964202^5^1616519245^^200011)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- SIP/Zadarma_legacy_out-00000162 Internal Gosub(func-apply-sipheaders,s,1(5)) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("SIP/Zadarma_legacy_out-00000162", "Applying SIP Headers to channel SIP/Zadarma_legacy_out-00000162") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("SIP/Zadarma_legacy_out-00000162", "TECH=SIP") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("SIP/Zadarma_legacy_out-00000162", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("SIP/Zadarma_legacy_out-00000162", "1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("SIP/Zadarma_legacy_out-00000162", "sipheader=unset") in new stack
    -- Executing [s@func-apply-sipheaders:6] ExecIf("SIP/Zadarma_legacy_out-00000162", "1?SIPRemoveHeader(Alert-Info:)") in new stack
    -- Executing [s@func-apply-sipheaders:7] ExecIf("SIP/Zadarma_legacy_out-00000162", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
    -- Executing [s@func-apply-sipheaders:8] ExecIf("SIP/Zadarma_legacy_out-00000162", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:9] ExecIf("SIP/Zadarma_legacy_out-00000162", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [s@func-apply-sipheaders:10] ExecIf("SIP/Zadarma_legacy_out-00000162", "0?SIPAddHeader(Alert-Info:unset)") in new stack
    -- Executing [s@func-apply-sipheaders:11] ExecIf("SIP/Zadarma_legacy_out-00000162", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:12] EndWhile("SIP/Zadarma_legacy_out-00000162", "") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("SIP/Zadarma_legacy_out-00000162", "0") in new stack
    -- Executing [s@func-apply-sipheaders:13] Return("SIP/Zadarma_legacy_out-00000162", "") in new stack
  == Spawn extension (from-trunk-sip-Zadarma_legacy_out, 17606964202, 1) exited non-zero on 'SIP/Zadarma_legacy_out-00000162'
    -- SIP/Zadarma_legacy_out-00000162 Internal Gosub(func-apply-sipheaders,s,1(5)) complete GOSUB_RETVAL=
    -- Called SIP/Zadarma_legacy_out/606964202
[2021-03-23 18:07:25] NOTICE[2641][C-00000090]: chan_sip.c:23808 handle_response_invite: Failed to authenticate on INVITE to '<sip:200011@sip.zadarma.com>;tag=as648563b0'
    -- SIP/Zadarma_legacy_out-00000162 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:28] NoOp("SIP/19-00000161", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("SIP/19-00000161", "0?continue,1:s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/19-00000161", "RC=21") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/19-00000161", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("SIP/19-00000161", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/19-00000161", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/19-00000161", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] ExecIf("SIP/19-00000161", "1?Set(CALLERID(number)=19)") in new stack
    -- Executing [17606964202@from-internal:12] Macro("SIP/19-00000161", "dialout-trunk,4,606964202,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/19-00000161", "DIAL_TRUNK=4") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/19-00000161", "0?Set(DIAL_OPTIONS=trwW)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("SIP/19-00000161", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("SIP/19-00000161", "0?Set(CALLERID(num)=19)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("SIP/19-00000161", "1?disabletrunk,1") in new stack
    -- Goto (macro-dialout-trunk,disabletrunk,1)
    -- Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/19-00000161", "TRUNK: PJSIP DISABLED - falling through to next trunk") in new stack
    -- Executing [17606964202@from-internal:13] Macro("SIP/19-00000161", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/19-00000161", "all-circuits-busy-now&please-try-call-later") in new stack
       > 0x7f240c073260 -- Probation passed - setting RTP source address to 192.168.0.219:5004
    -- <SIP/19-00000161> Playing 'all-circuits-busy-now.alaw' (language 'en')
    -- <SIP/19-00000161> Playing 'please-try-call-later.alaw' (language 'en')
    -- Executing [h@from-internal:1] Macro("SIP/19-00000161", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/19-00000161", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/19-00000161", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] NoOp("SIP/19-00000161", " montior file= ") in new stack
    -- Executing [s@macro-hangupcall:5] GotoIf("SIP/19-00000161", "1?skipagi") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] Hangup("SIP/19-00000161", "") in new stack
  == Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/19-00000161' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/19-00000161'
  == Extension Changed 19[ext-local] new state Idle for Notify User 11

(Ricardo) #4

El tema que la llamada no progresa y devuelve una congestión FREPBX.

"TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks"

Por lo que deberás verificar el trunk que configuraste como zadarma y ver; si esta habilitado y/o correctamente configurado.

La opción habilitado te mostrara el item de status cuando abras la opción de trunk en la opción “conectividad”.

Asumiendo esta cuestión deberías verificar si esta bien configurado la opciones de tu proveedor como dirección IP usuario clave etc., según la información que te haya pasado el proveedor es la que se define en la opción de Trunk de FreePBX

En caso que este bien podrías ir a la opción de “CLI” en admin y según el tipo de troncal “SIP” o “PJSIP” ejecutar los comandos que te indique si esta registrado o el estatus de la troncal.

Para sip seria “sip show peers ”

PJSIP “pjsip show registrations”


(system) closed #5

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