Trouble whit FreePBX en VPN Site to Site

NethServer Version: 7.9.2009
Module: FreePBX

Good morning, I hope someone can help me. I have the following scenario:

  • A Nethserver in Colombia and another in Ecuador, which I have connected by OpenVPN Site to Site, so far everything works correctly.
  • In Colombia I have the FreePBX, in which those from Ecuador are also connected.
  • In Ecuador I have a Dinstar Gateway for SIM, to be able to make calls to Ecuador from Colombia.

The problem is that this Site to Site connection was implemented last week, previously I had it with two SonicWalls and could call from Colombia to Ecuador without problems, now with the change to Nethsever the trunk connects but sounds busy to me.
I enclose the FreePBX response, I would greatly appreciate the collaboration.
Thank you.

Connected to Asterisk 13.38.3 currently running on nethserver (pid = 2981)
[2022-01-24 07:40:58] WARNING[8138]: res_pjsip_pubsub.c:3434 pubsub_on_rx_publish_request: No registered publish handler for event presence from 212
[2022-01-24 07:40:58] WARNING[28759]: res_pjsip_pubsub.c:787 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo from 212
  == Setting global variable 'SIPDOMAIN' to '10.0.15.2'
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
    -- Executing [593992909270@from-internal:1] Macro("PJSIP/212-00004cb2", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/212-00004cb2", "TOUCH_MONITOR=1643028058.19878") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/212-00004cb2", "AMPUSER=212") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/212-00004cb2", "HOTDESCKCHAN=212-00004cb2") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/212-00004cb2", "HOTDESKEXTEN=212") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/212-00004cb2", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:6] ExecIf("PJSIP/212-00004cb2", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:7] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/212-00004cb2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("PJSIP/212-00004cb2", "1?Set(REALCALLERIDNUM=212)") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/212-00004cb2", "AMPUSER=212") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("PJSIP/212-00004cb2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:12] Set("PJSIP/212-00004cb2", "AMPUSERCIDNAME=Julian Felipe Hoyos Montoya") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/212-00004cb2", "0?Set(__CIDMASQUERADING=TRUE)") in new stack

    -- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/212-00004cb2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/212-00004cb2", "AMPUSERCID=212") in new stack
    -- Executing [s@macro-user-callerid:16] Set("PJSIP/212-00004cb2", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/212-00004cb2", "CALLERID(all)="Julian Felipe Hoyos Montoya" <212>") in new stack
    -- Executing [s@macro-user-callerid:18] Set("PJSIP/212-00004cb2", "HOTDESCKCHAN=212-00004cb2") in new stack
    -- Executing [s@macro-user-callerid:19] Set("PJSIP/212-00004cb2", "HOTDESKEXTEN=212") in new stack
    -- Executing [s@macro-user-callerid:20] Set("PJSIP/212-00004cb2", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:21] ExecIf("PJSIP/212-00004cb2", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:22] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)="" <  >)") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/212-00004cb2", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:25] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)="Julian Felipe Hoyos Montoya" <212>)") in new stack
    -- Executing [s@macro-user-callerid:26] GotoIf("PJSIP/212-00004cb2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/212-00004cb2", "1?Set(GROUP(concurrency_limit)=212)") in new stack
    -- Executing [s@macro-user-callerid:28] NoOp("PJSIP/212-00004cb2", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/212-00004cb2", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,30)
    -- Executing [s@macro-user-callerid:30] GotoIf("PJSIP/212-00004cb2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,48)
    -- Executing [s@macro-user-callerid:48] Set("PJSIP/212-00004cb2", "CALLERID(number)=212") in new stack
    -- Executing [s@macro-user-callerid:49] Set("PJSIP/212-00004cb2", "CALLERID(name)=Julian Felipe Hoyos Montoya") in new stack
    -- Executing [s@macro-user-callerid:50] GotoIf("PJSIP/212-00004cb2", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/212-00004cb2", "CDR(cnam)=Julian Felipe Hoyos Montoya") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/212-00004cb2", "CDR(cnum)=212") in new stack
    -- Executing [s@macro-user-callerid:53] Set("PJSIP/212-00004cb2", "CHANNEL(language)=es") in new stack
    -- Executing [593992909270@from-internal:2] Gosub("PJSIP/212-00004cb2", "sub-record-check,s,1(out,593992909270,yes)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/212-00004cb2", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/212-00004cb2", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/212-00004cb2", "NOW=1643028058") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/212-00004cb2", "__DAY=24") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/212-00004cb2", "__MONTH=01") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/212-00004cb2", "__YEAR=2022") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/212-00004cb2", "__TIMESTR=20220124-074058") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/212-00004cb2", "__FROMEXTEN=212") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/212-00004cb2", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/212-00004cb2", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/212-00004cb2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/212-00004cb2", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/212-00004cb2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/212-00004cb2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/212-00004cb2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("PJSIP/212-00004cb2", "Outbound Recording Check from 212 to 593992909270") in new stack
    -- Executing [out@sub-record-check:2] Set("PJSIP/212-00004cb2", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("PJSIP/212-00004cb2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("PJSIP/212-00004cb2", "recordcheck,1(yes,out,593992909270)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/212-00004cb2", "Starting recording check against yes") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/212-00004cb2", "yes") in new stack
    -- Goto (sub-record-check,recordcheck,9)
    -- Executing [recordcheck@sub-record-check:9] ExecIf("PJSIP/212-00004cb2", "0?Return()") in new stack
    -- Executing [recordcheck@sub-record-check:10] Set("PJSIP/212-00004cb2", "__REC_POLICY_MODE=YES") in new stack
    -- Executing [recordcheck@sub-record-check:11] Goto("PJSIP/212-00004cb2", "startrec") in new stack
    -- Goto (sub-record-check,recordcheck,16)
    -- Executing [recordcheck@sub-record-check:16] NoOp("PJSIP/212-00004cb2", "Starting recording: out, 593992909270") in new stack
    -- Executing [recordcheck@sub-record-check:17] Set("PJSIP/212-00004cb2", "__CALLFILENAME=out-593992909270-212-20220124-074058-1643028058.19878") in new stack
    -- Executing [recordcheck@sub-record-check:18] MixMonitor("PJSIP/212-00004cb2", "2022/01/24/out-593992909270-212-20220124-074058-1643028058.19878.wav,abi(LOCAL_MIXMON_ID),") in new stack
    -- Executing [recordcheck@sub-record-check:19] Set("PJSIP/212-00004cb2", "__MIXMON_ID=0x7f1df02e0370") in new stack
    -- Executing [recordcheck@sub-record-check:20] Set("PJSIP/212-00004cb2", "__RECORD_ID=PJSIP/212-00004cb2") in new stack
    -- Executing [recordcheck@sub-record-check:21] Set("PJSIP/212-00004cb2", "__REC_STATUS=RECORDING") in new stack
    -- Executing [recordcheck@sub-record-check:22] Set("PJSIP/212-00004cb2", "CDR(recordingfile)=out-593992909270-212-20220124-074058-1643028058.19878.wav") in new stack
    -- Executing [recordcheck@sub-record-check:23] Return("PJSIP/212-00004cb2", "") in new stack
    -- Executing [out@sub-record-check:8] Return("PJSIP/212-00004cb2", "") in new stack
    -- Executing [593992909270@from-internal:3] Set("PJSIP/212-00004cb2", "_ROUTEID=6") in new stack
    -- Executing [593992909270@from-internal:4] Set("PJSIP/212-00004cb2", "_ROUTENAME=outboundroutes-ecuador") in new stack
    -- Executing [593992909270@from-internal:5] Set("PJSIP/212-00004cb2", "MOHCLASS=default") in new stack
    -- Executing [593992909270@from-internal:6] Set("PJSIP/212-00004cb2", "_CALLERIDNAMEINTERNAL=Julian Felipe Hoyos Montoya") in new stack
    -- Executing [593992909270@from-internal:7] Set("PJSIP/212-00004cb2", "_CALLERIDNUMINTERNAL=212") in new stack
    -- Executing [593992909270@from-internal:8] Set("PJSIP/212-00004cb2", "_EMAILNOTIFICATION=FALSE") in new stack
    -- Executing [593992909270@from-internal:9] Set("PJSIP/212-00004cb2", "_NODEST=") in new stack
    -- Executing [593992909270@from-internal:10] Macro("PJSIP/212-00004cb2", "dialout-trunk,1,992909270,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/212-00004cb2", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/212-00004cb2", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/212-00004cb2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(num)=212)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/212-00004cb2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("PJSIP/212-00004cb2", "DIAL_NUMBER=992909270") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("PJSIP/212-00004cb2", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("PJSIP/212-00004cb2", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:9] Set("PJSIP/212-00004cb2", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/212-00004cb2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/212-00004cb2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/212-00004cb2", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/212-00004cb2", "212") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/212-00004cb2", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/212-00004cb2", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/212-00004cb2", "HOTDESCKCHAN=212-00004cb2") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/212-00004cb2", "HOTDESKEXTEN=212") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/212-00004cb2", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/212-00004cb2", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("PJSIP/212-00004cb2", "ALLOWTHISROUTE=NO") in new stack
    -- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/212-00004cb2", "0?Set(ALLOWTHISROUTE=YES)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/212-00004cb2", "0?Hangup()") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/212-00004cb2", "0?Set(REALCALLERIDNUM=212)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/212-00004cb2", "0?Set(AMPUSER=212)") in new stack
    -- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/212-00004cb2", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,20)
    -- Executing [s@macro-outbound-callerid:20] Set("PJSIP/212-00004cb2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("PJSIP/212-00004cb2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/212-00004cb2", "0?Set(EMERGENCYCID=)") in new stack
    -- Executing [s@macro-outbound-callerid:23] Set("PJSIP/212-00004cb2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/212-00004cb2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,30)
    -- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)=212)") in new stack
    -- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERID(all)=212)") in new stack
    -- Executing [s@macro-outbound-callerid:35] Set("PJSIP/212-00004cb2", "TIOHIDE=no") in new stack
    -- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/212-00004cb2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:40] Set("PJSIP/212-00004cb2", "CDR(outbound_cnum)=212") in new stack
    -- Executing [s@macro-outbound-callerid:41] Set("PJSIP/212-00004cb2", "CDR(outbound_cnam)=Julian Felipe Hoyos Montoya") in new stack
    -- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/212-00004cb2", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("PJSIP/212-00004cb2", "OUTNUM=992909270") in new stack
    -- Executing [s@macro-dialout-trunk:16] Set("PJSIP/212-00004cb2", "custom=PJSIP") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/212-00004cb2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/212-00004cb2", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/212-00004cb2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] AGI("PJSIP/212-00004cb2", "randomcid.php") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/randomcid.php
  == Begin MixMonitor Recording PJSIP/212-00004cb2
    -- <PJSIP/212-00004cb2>AGI Script randomcid.php completed, returning 0
    -- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/212-00004cb2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/212-00004cb2", "1?Set(CONNECTEDLINE(num,i)=992909270)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/212-00004cb2", "1?Set(CONNECTEDLINE(name,i)=CID:6025893256)") in new stack
    -- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/212-00004cb2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)6025893256)") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/212-00004cb2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/212-00004cb2", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("PJSIP/212-00004cb2", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/212-00004cb2", "PJSIP/992909270@trunk-dwg20000F,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^992909270^593992909270^1^1643028058^Julian Felipe Hoyos Montoya^6025893256)") in new stack
    -- PJSIP/trunk-dwg20000F-00004cb3 Internal Gosub(func-apply-sipheaders,s,1(1)) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/trunk-dwg20000F-00004cb3", "Applying SIP Headers to channel PJSIP/trunk-dwg20000F-00004cb3") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("PJSIP/trunk-dwg20000F-00004cb3", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/trunk-dwg20000F-00004cb3", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/trunk-dwg20000F-00004cb3", "1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/trunk-dwg20000F-00004cb3", "sipheader=unset") in new stack
    -- Executing [s@func-apply-sipheaders:6] ExecIf("PJSIP/trunk-dwg20000F-00004cb3", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2022-01-24 07:40:59] ERROR[8467]: res_pjsip_header_funcs.c:410 remove_header: No headers had been previously added to this session.
    -- Executing [s@func-apply-sipheaders:7] ExecIf("PJSIP/trunk-dwg20000F-00004cb3", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:8] ExecIf("PJSIP/trunk-dwg20000F-00004cb3", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [s@func-apply-sipheaders:9] ExecIf("PJSIP/trunk-dwg20000F-00004cb3", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:10] EndWhile("PJSIP/trunk-dwg20000F-00004cb3", "") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/trunk-dwg20000F-00004cb3", "0") in new stack
    -- Executing [s@func-apply-sipheaders:11] Return("PJSIP/trunk-dwg20000F-00004cb3", "") in new stack
  == Spawn extension (from-pstn, 593992909270, 1) exited non-zero on 'PJSIP/trunk-dwg20000F-00004cb3'
    -- PJSIP/trunk-dwg20000F-00004cb3 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
    -- Called PJSIP/992909270@trunk-dwg20000F
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/212-00004cb2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/212-00004cb2", "0?continue,1:s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("PJSIP/212-00004cb2", "RC=34") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("PJSIP/212-00004cb2", "34,1") in new stack
    -- Goto (macro-dialout-trunk,34,1)
    -- Executing [34@macro-dialout-trunk:1] Goto("PJSIP/212-00004cb2", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/212-00004cb2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/212-00004cb2", "1?Set(CALLERID(number)=212)") in new stack
    -- Executing [593992909270@from-internal:11] Macro("PJSIP/212-00004cb2", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("PJSIP/212-00004cb2", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("PJSIP/212-00004cb2", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("PJSIP/212-00004cb2", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("PJSIP/212-00004cb2", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
    -- <PJSIP/212-00004cb2> Playing 'all-circuits-busy-now.ulaw' (language 'es')
       > 0x7f1de40c2d40 -- Strict RTP learning after remote address set to: 181.129.250.251:26793
       > 0x7f1de40c2d40 -- Strict RTP qualifying stream type: audio
       > 0x7f1de40c2d40 -- Strict RTP switching source address to 10.0.15.53:8000
    -- <PJSIP/212-00004cb2> Playing 'please-try-call-later.ulaw' (language 'es')
    -- Executing [h@from-internal:1] Macro("PJSIP/212-00004cb2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/212-00004cb2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/212-00004cb2", "0?Set(CDR(recordingfile)=)") in new stack
[2022-01-24 07:41:00] WARNING[9372]: res_pjsip_pubsub.c:3434 pubsub_on_rx_publish_request: No registered publish handler for event presence from 212
    -- Executing [s@macro-hangupcall:4] NoOp("PJSIP/212-00004cb2", " montior file= /var/spool/asterisk/monitor/2022/01/24/out-593992909270-212-20220124-074058-1643028058.19878.wav") in new stack
    -- Executing [s@macro-hangupcall:5] GotoIf("PJSIP/212-00004cb2", "1?skipagi") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] Hangup("PJSIP/212-00004cb2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/212-00004cb2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/212-00004cb2'
  == MixMonitor close filestream (mixed)
  == End MixMonitor Recording PJSIP/212-00004cb2
[2022-01-24 07:41:00] WARNING[15108]: res_pjsip_pubsub.c:787 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo from 212

@support_team
Can somebody help?

I did the test configuring the freepbx in Ecuador in the Nethserver and the calls go out without problems, it seems that the problem comes from the VPN, I don’t know if it is due to a firewall issue or something like that.

You can solve this by changing my site-to-site VPN with OpenVPN to IPSec, thanks to a tip from @Andy_Wismer

2 Likes