Getting FreePBX fully setup

Hello everyone.

I am brand new to setting up VoIP systems and I am running into some issues and unsure where to go from here after following all of the documentation.

I have gotten FreePBX set up on Debian 12 and have configured an extension, trunk, inbound and outbound routes. I have also set up Phonerlite and Bria, not exactly sure which one I will be using as of yet. I set up an account on voip.ms and bought a DID number on there and setup a sub-account.

After getting all of this setup I have the softphone pointed to FreePBX and I have FreePBX pointed to voip.ms. My apologies for not using all the proper terminology. Anyway, after getting this setup when I go into asterisk info in FreePBX GUI it shows 2 separate green statuses. It shows the voip.ms trunk that I setup and the extension that was setup, both of these are green indicating they are working? voip.ms shows that the registration is going through.

My issue is when I place an outbound call it says your call cannot be completed as dialed. When I try to receive an inbound call it just beeps like the line is busy. Any help or pointers would be greatly appreciated!

Thanks,
John

EDIT
I am able to place outgoing calls now, I was not dialing the number proper. I didn’t realize I needed to add the country code before the number when dialing. But incoming calls still won’t go through.

I recall having the same issue and solving this by making sure the “NAT Settings” were set correctly:

/admin/config.php?display=sipsettings

I just went and checked there, and the external address and Local Networks are correct. Thank you for your response; I appreciate it!

If anyone needs any additional information please feel free to ask, I am so close to getting it all setup and would really love to finish it.

Need to get further informations.
If you can’t receive a call, that means your inbound route can be wrong. (Maybe).
If you can’t do a external call, then you outbound route is not correctly configured (Maybe).

Use SSH console and run : asterisk -rvvvvvv

Make a call and capture the dump.

Do that for both directions.
your call cannot be completed as dialed, means the number dialed is not recognized by the dialplan. So, need to check you outbound route.

I had problems where my ISP block traffic on port 5060, this might be an issue.

This wouldn’t produce the “cannot be completed as dialled” message. As noted, that is most likely that no outbound route matches the dialled number, although it is possible that the provider, rather than Asterisk, is producing the message, in which case the number is in the wrong format. The logs requested will make it clear which of these, although the wrong outbound route definition is most likely.

1 Like

Correct.
There are countries that block port 5060 (even SIP protocol).
I saw that in Tunisia if I remember correctly.
I don’t know if that’s true today.

So I have gotten my outbound calls to work but the inbound calls will not go through. When I run sngrep in the cli and make a phone call out I see the INVITE pop up along with a few other logs. When I try and call in from a device outside it does not log anything which would seem to be a firewall issue? I have opened port 5060, 5061, 5160, 10000-20000.

Any advice welcome.

EDIT
When I set these 2 settings in SIP Settings to yes (Allow Anonymous Inbound SIP Calls, Allow SIP Guests) the inbound calls worked for like 60 seconds and then stopped again.

I am using Xfinity, and their firewall options are very limited with what I can do.

Don’t enable them. It’s dangerous.
Some external firewall hate Sip Algo filter. Disable it if present.

I have customers with Xfinity at their houses and using softphones. Things work just fine.

Where are you doing the NAT for all this? Is the Xfinity router the only router being used and the PBX is on that network?

Hey there, thank you for your response. Here is what I get when I place an outbound and inbound call. Nothing happened in the log during the inbound, so this is all with the outbound. I have not changed any settings on FreePBX and now my outgoing calls say, “that number has not been assigned” or it will say, “all circuits are busy now”. The inbound calls still just beep like its busy.

Here is the code (I changed a phone number to ########### for privacy):

Running as user ‘asterisk’
Running under group ‘asterisk’
Connected to Asterisk 21.6.0 currently running on FreePBX17 (pid = 997)
== 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 [###########@from-internal:1] Gosub(“PJSIP/101-00000011”, “macro-user-callerid,s,1(LIMIT,EXTERNAL)”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/101-00000011”, “TOUCH_MONITOR=1736106635.17”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/101-00000011”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:3] Set(“PJSIP/101-00000011”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/101-00000011”, “CHANEXTENCONTEXT=101-00000011”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/101-00000011”, “CHANEXTEN=101-00000011”) in new stack
– Executing [s@macro-user-callerid:6] Set(“PJSIP/101-00000011”, “CALLERID(number)=101”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/101-00000011”, “AMPUSER=101”) in new stack
– Executing [s@macro-user-callerid:8] Set(“PJSIP/101-00000011”, “HOTDESCKCHAN=101-00000011”) in new stack
– Executing [s@macro-user-callerid:9] Set(“PJSIP/101-00000011”, “HOTDESKEXTEN=101”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/101-00000011”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“PJSIP/101-00000011”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“PJSIP/101-00000011”, “0?report”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/101-00000011”, “1?Set(REALCALLERIDNUM=101)”) in new stack
– Executing [s@macro-user-callerid:15] Set(“PJSIP/101-00000011”, “AMPUSER=101”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“PJSIP/101-00000011”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:17] Set(“PJSIP/101-00000011”, “AMPUSERCIDNAME=LINDA SNYDER”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“PJSIP/101-00000011”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:19] GotoIf(“PJSIP/101-00000011”, “0?report”) in new stack
– Executing [s@macro-user-callerid:20] Set(“PJSIP/101-00000011”, “AMPUSERCID=101”) in new stack
– Executing [s@macro-user-callerid:21] Set(“PJSIP/101-00000011”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:22] Set(“PJSIP/101-00000011”, “CALLERID(all)=“LINDA SNYDER” <101>”) in new stack
– Executing [s@macro-user-callerid:23] ExecIf(“PJSIP/101-00000011”, “0?Set(CUSDIAL=)”) in new stack
– Executing [s@macro-user-callerid:24] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(all)=“LINDA SNYDER” <101>)”) in new stack
– Executing [s@macro-user-callerid:25] GotoIf(“PJSIP/101-00000011”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:26] ExecIf(“PJSIP/101-00000011”, “1?Set(GROUP(concurrency_limit)=101)”) in new stack
– Executing [s@macro-user-callerid:27] NoOp(“PJSIP/101-00000011”, “Macro depricated!! To keep the same line numbers”) in new stack
– Executing [s@macro-user-callerid:28] NoOp(“PJSIP/101-00000011”, “Macro depricated !! To keep the same line numbers”) in new stack
– Executing [s@macro-user-callerid:29] GotoIf(“PJSIP/101-00000011”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,47)
– Executing [s@macro-user-callerid:47] Set(“PJSIP/101-00000011”, “CALLERID(number)=101”) in new stack
– Executing [s@macro-user-callerid:48] Set(“PJSIP/101-00000011”, “CALLERID(name)=LINDA SNYDER”) in new stack
– Executing [s@macro-user-callerid:49] GotoIf(“PJSIP/101-00000011”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:50] Set(“PJSIP/101-00000011”, “__MCNUM=101”) in new stack
– Executing [s@macro-user-callerid:51] Set(“PJSIP/101-00000011”, “__MCNAME=LINDA SNYDER”) in new stack
– Executing [s@macro-user-callerid:52] Set(“PJSIP/101-00000011”, “__MCEXTEN=101”) in new stack
– Executing [s@macro-user-callerid:53] Set(“PJSIP/101-00000011”, “__MCORGCHAN=PJSIP/101-00000011”) in new stack
– Executing [s@macro-user-callerid:54] Set(“PJSIP/101-00000011”, “CDR(cnam)=LINDA SNYDER”) in new stack
– Executing [s@macro-user-callerid:55] Set(“PJSIP/101-00000011”, “CDR(cnum)=101”) in new stack
– Executing [s@macro-user-callerid:56] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [###########@from-internal:2] Gosub(“PJSIP/101-00000011”, “sub-record-check,s,1(out,###########,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/101-00000011”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/101-00000011”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/101-00000011”, “NOW=1736106635”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/101-00000011”, “__DAY=05”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/101-00000011”, “__MONTH=01”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/101-00000011”, “__YEAR=2025”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/101-00000011”, “__TIMESTR=20250105-115035”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/101-00000011”, “__FROMEXTEN=101”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/101-00000011”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/101-00000011”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/101-00000011”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/101-00000011”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/101-00000011”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/101-00000011”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/101-00000011”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“PJSIP/101-00000011”, “Outbound Recording Check from 101 to ###########”) in new stack
– Executing [out@sub-record-check:2] Set(“PJSIP/101-00000011”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“PJSIP/101-00000011”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“PJSIP/101-00000011”, “recordcheck,1(dontcare,out,###########)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/101-00000011”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/101-00000011”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [###########@from-internal:3] Set(“PJSIP/101-00000011”, “_ROUTEID=1”) in new stack
– Executing [###########@from-internal:4] Set(“PJSIP/101-00000011”, “_ROUTENAME=Linda Outbound”) in new stack
– Executing [###########@from-internal:5] Set(“PJSIP/101-00000011”, “MOHCLASS=default”) in new stack
– Executing [###########@from-internal:6] ExecIf(“PJSIP/101-00000011”, “1?Set(TRUNKCIDOVERRIDE=“LINDA SNYDER” <4804471797>)”) in new stack
– Executing [###########@from-internal:7] Set(“PJSIP/101-00000011”, “_CALLERIDNAMEINTERNAL=LINDA SNYDER”) in new stack
– Executing [###########@from-internal:8] Set(“PJSIP/101-00000011”, “_CALLERIDNUMINTERNAL=101”) in new stack
– Executing [###########@from-internal:9] Set(“PJSIP/101-00000011”, “_EMAILNOTIFICATION=FALSE”) in new stack
– Executing [###########@from-internal:10] Set(“PJSIP/101-00000011”, “_NODEST=”) in new stack
– Executing [###########@from-internal:11] Gosub(“PJSIP/101-00000011”, “macro-dialout-trunk,s,1(###########,off)”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“PJSIP/101-00000011”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_OPTIONS=HhTr)”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:5] GosubIf(“PJSIP/101-00000011”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:6] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(num)=101)”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“PJSIP/101-00000011”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“PJSIP/101-00000011”, “DIAL_NUMBER=###########”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“PJSIP/101-00000011”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“PJSIP/101-00000011”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:11] Set(“PJSIP/101-00000011”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:13] GotoIf(“PJSIP/101-00000011”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,15)
– Executing [s@macro-dialout-trunk:15] GotoIf(“PJSIP/101-00000011”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:16] Gosub(“PJSIP/101-00000011”, “macro-outbound-callerid,s,1(1)”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“PJSIP/101-00000011”, “101”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“PJSIP/101-00000011”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“PJSIP/101-00000011”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] Set(“PJSIP/101-00000011”, “HOTDESCKCHAN=101-00000011”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“PJSIP/101-00000011”, “HOTDESKEXTEN=101”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“PJSIP/101-00000011”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-outbound-callerid:9] ExecIf(“PJSIP/101-00000011”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-outbound-callerid:10] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“PJSIP/101-00000011”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [s@macro-outbound-callerid:12] ExecIf(“PJSIP/101-00000011”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“PJSIP/101-00000011”, “0?Hangup()”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“PJSIP/101-00000011”, “0?Set(REALCALLERIDNUM=101)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“PJSIP/101-00000011”, “0?Set(AMPUSER=101)”) in new stack
– Executing [s@macro-outbound-callerid:16] GotoIf(“PJSIP/101-00000011”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] Set(“PJSIP/101-00000011”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“PJSIP/101-00000011”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“PJSIP/101-00000011”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [s@macro-outbound-callerid:23] Set(“PJSIP/101-00000011”, “TRUNKOUTCID=“LINDA SNYDER” <4804471797>”) in new stack
– Executing [s@macro-outbound-callerid:24] GotoIf(“PJSIP/101-00000011”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [s@macro-outbound-callerid:30] ExecIf(“PJSIP/101-00000011”, “1?Set(CALLERID(all)=“LINDA SNYDER” <4804471797>)”) in new stack
– Executing [s@macro-outbound-callerid:31] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:32] ExecIf(“PJSIP/101-00000011”, “1?Set(CALLERID(all)=LINDA SNYDER <4804471797>)”) in new stack
– Executing [s@macro-outbound-callerid:33] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(all)=101)”) in new stack
– Executing [s@macro-outbound-callerid:34] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(all)=101)”) in new stack
– Executing [s@macro-outbound-callerid:35] Set(“PJSIP/101-00000011”, “TIOHIDE=no”) in new stack
– Executing [s@macro-outbound-callerid:36] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:37] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:38] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:39] ExecIf(“PJSIP/101-00000011”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:40] Set(“PJSIP/101-00000011”, “CDR(outbound_cnum)=4804471797”) in new stack
– Executing [s@macro-outbound-callerid:41] Set(“PJSIP/101-00000011”, “CDR(outbound_cnam)=LINDA SNYDER”) in new stack
– Executing [s@macro-outbound-callerid:42] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GosubIf(“PJSIP/101-00000011”, “1?sub-flp-1,s,1()”) in new stack
– Executing [s@sub-flp-1:1] ExecIf(“PJSIP/101-00000011”, “0?Return()”) in new stack
– Executing [s@sub-flp-1:2] ExecIf(“PJSIP/101-00000011”, “0?Set(TARGET_FLP_1=713732974)”) in new stack
– Executing [s@sub-flp-1:3] GotoIf(“PJSIP/101-00000011”, “0?match”) in new stack
– Executing [s@sub-flp-1:4] ExecIf(“PJSIP/101-00000011”, “0?Set(TARGET_FLP_1=3732974)”) in new stack
– Executing [s@sub-flp-1:5] GotoIf(“PJSIP/101-00000011”, “0?match”) in new stack
– Executing [s@sub-flp-1:6] ExecIf(“PJSIP/101-00000011”, “0?Return()”) in new stack
– Executing [s@sub-flp-1:7] ExecIf(“PJSIP/101-00000011”, “0?Return()”) in new stack
– Executing [s@sub-flp-1:8] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] Set(“PJSIP/101-00000011”, “OUTNUM=###########”) in new stack
– Executing [s@macro-dialout-trunk:19] Set(“PJSIP/101-00000011”, “custom=PJSIP”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_TRUNK_MOH=default)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_TRUNK_OPTIONS=TU(macro-confirm))”) in new stack
– Executing [s@macro-dialout-trunk:22] Gosub(“PJSIP/101-00000011”, “macro-dialout-trunk-predial-hook,s,1()”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] Return(“PJSIP/101-00000011”, “”) in new stack
– Executing [s@macro-dialout-trunk:23] GotoIf(“PJSIP/101-00000011”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:24] ExecIf(“PJSIP/101-00000011”, “1?Set(CONNECTEDLINE(num,i)=###########)”) in new stack
– Executing [s@macro-dialout-trunk:25] ExecIf(“PJSIP/101-00000011”, “1?Set(CONNECTEDLINE(name,i)=CID:4804471797)”) in new stack
– Executing [s@macro-dialout-trunk:26] ExecIf(“PJSIP/101-00000011”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4804471797)”) in new stack
– Executing [s@macro-dialout-trunk:27] GotoIf(“PJSIP/101-00000011”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“PJSIP/101-00000011”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:29] Set(“PJSIP/101-00000011”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [s@macro-dialout-trunk:30] Gosub(“PJSIP/101-00000011”, “trunk-dial-with-exten,###########()”) in new stack
– Executing [###########@trunk-dial-with-exten:1] Dial(“PJSIP/101-00000011”, “PJSIP/###########@VoIP.ms,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^###########^^1^1736106635^LINDA SNYDER^4804471797,^)”) in new stack
– PJSIP/VoIP.ms-00000012 Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [s@func-apply-sipheaders:1] NoOp(“PJSIP/VoIP.ms-00000012”, “Applying SIP Headers to channel PJSIP/VoIP.ms-00000012”) in new stack
– Executing [s@func-apply-sipheaders:2] Set(“PJSIP/VoIP.ms-00000012”, “localchan=VoIP.ms-00000012”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/VoIP.ms-00000012”, “DialMCEXT=VoIP.ms”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/VoIP.ms-00000012”, “CHANNEL(hangup_handler_push)=app-missedcall-hangup,VoIP.ms,1”) in new stack
– Executing [s@func-apply-sipheaders:5] Set(“PJSIP/VoIP.ms-00000012”, “Dchan=VoIP.ms-00000012”) in new stack
– Executing [s@func-apply-sipheaders:6] Set(“PJSIP/VoIP.ms-00000012”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:7] Set(“PJSIP/VoIP.ms-00000012”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [s@func-apply-sipheaders:8] While(“PJSIP/VoIP.ms-00000012”, “1”) in new stack
– Executing [s@func-apply-sipheaders:9] Set(“PJSIP/VoIP.ms-00000012”, “sipheader=unset”) in new stack
– Executing [s@func-apply-sipheaders:10] ExecIf(“PJSIP/VoIP.ms-00000012”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2025-01-05 11:50:35] ERROR[1116]: res_pjsip_header_funcs.c:723 remove_header: No headers had been previously added to this session.
– Executing [s@func-apply-sipheaders:11] ExecIf(“PJSIP/VoIP.ms-00000012”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [s@func-apply-sipheaders:12] ExecIf(“PJSIP/VoIP.ms-00000012”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [s@func-apply-sipheaders:13] ExecIf(“PJSIP/VoIP.ms-00000012”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [s@func-apply-sipheaders:14] EndWhile(“PJSIP/VoIP.ms-00000012”, “”) in new stack
– Executing [s@func-apply-sipheaders:8] While(“PJSIP/VoIP.ms-00000012”, “0”) in new stack
– Executing [s@func-apply-sipheaders:15] Return(“PJSIP/VoIP.ms-00000012”, “”) in new stack
== Spawn extension (from-pstn, ###########, 1) exited non-zero on ‘PJSIP/VoIP.ms-00000012’
– PJSIP/VoIP.ms-00000012 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called PJSIP/###########@VoIP.ms
> 0x7fe3f4276360 – Strict RTP learning after remote address set to: 208.100.60.41:16834
– PJSIP/VoIP.ms-00000012 answered PJSIP/101-00000011
– PJSIP/VoIP.ms-00000012 Internal Gosub(sub-send-obroute-email,s,1(###########,1,1736106635,LINDA SNYDER,4804471797,)) start
– Executing [s@sub-send-obroute-email:1] GosubIf(“PJSIP/VoIP.ms-00000012”, “0?macro-setmusic,s,1()”) in new stack
– Executing [s@sub-send-obroute-email:2] GotoIf(“PJSIP/VoIP.ms-00000012”, “0?gosubconfirm:normal”) in new stack
– Goto (sub-send-obroute-email,s,4)
– Executing [s@sub-send-obroute-email:4] GotoIf(“PJSIP/VoIP.ms-00000012”, “0?sendEmail”) in new stack
– Executing [s@sub-send-obroute-email:5] NoOp(“PJSIP/VoIP.ms-00000012”, “email notifications disabled…exiting.”) in new stack
– Executing [s@sub-send-obroute-email:6] Return(“PJSIP/VoIP.ms-00000012”, “”) in new stack
== Spawn extension (from-pstn, , 1) exited non-zero on ‘PJSIP/VoIP.ms-00000012’
– PJSIP/VoIP.ms-00000012 Internal Gosub(sub-send-obroute-email,s,1(###########,1,1736106635,LINDA SNYDER,4804471797,)) complete GOSUB_RETVAL=
> 0x7fe3f4314ae0 – Strict RTP learning after remote address set to: 192.168.23.1:5082
– Channel PJSIP/VoIP.ms-00000012 joined ‘simple_bridge’ basic-bridge
– Channel PJSIP/101-00000011 joined ‘simple_bridge’ basic-bridge
> 0x7fe3f4314ae0 – Strict RTP switching to RTP target address 192.168.23.1:5082 as source
> 0x7fe3f4276360 – Strict RTP switching to RTP target address 208.100.60.41:16834 as source
– Channel PJSIP/101-00000011 left ‘simple_bridge’ basic-bridge
– Channel PJSIP/VoIP.ms-00000012 left ‘simple_bridge’ basic-bridge
== Spawn extension (trunk-dial-with-exten, ###########, 1) exited non-zero on ‘PJSIP/101-00000011’
– PJSIP/VoIP.ms-00000012 Internal Gosub(app-missedcall-hangup,VoIP.ms,1) start
– Executing [VoIP.ms@app-missedcall-hangup:1] NoOp(“PJSIP/VoIP.ms-00000012”, “Dialed: VoIP.ms”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:2] NoOp(“PJSIP/VoIP.ms-00000012”, “Caller: 101”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:3] GotoIf(“PJSIP/VoIP.ms-00000012”, “0?exit”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:4] Set(“PJSIP/VoIP.ms-00000012”, “EXTENNUM=VoIP.ms”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:5] Set(“PJSIP/VoIP.ms-00000012”, “FEXTENNUM=VoIP.ms”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:6] GotoIf(“PJSIP/VoIP.ms-00000012”, “0?exit”) in new stack
– Executing [VoIP.ms@app-missedcall-hangup:7] AGI(“PJSIP/VoIP.ms-00000012”, “agi://127.0.0.1/missedcallnotify.php,VoIP.ms,VoIP.ms,0,PJSIP/VoIP.ms-00000012,”) in new stack
– <PJSIP/VoIP.ms-00000012>AGI Script agi://127.0.0.1/missedcallnotify.php completed, returning 0
– Executing [VoIP.ms@app-missedcall-hangup:8] Return(“PJSIP/VoIP.ms-00000012”, “”) in new stack
== Spawn extension (from-pstn, , 1) exited non-zero on ‘PJSIP/VoIP.ms-00000012’
– PJSIP/VoIP.ms-00000012 Internal Gosub(app-missedcall-hangup,VoIP.ms,1) complete GOSUB_RETVAL=

Okay, I just disabled those 2 settings I previously mentioned. One thing worth noting, is yesterday when I restarted my Debian 12 system the calls worked inbound/outbound for like 60 seconds and then stopped working again. I don’t know if that helps any?

I changed the port to 5080 and I am still getting the same issues.

And you restarted Asterisk after changing the port?

Yes I restarted Asterisk, I restarted the whole system after the change.

Actually after restarting the system again my softphone won’t register to FreePBX with port 5080. I changed the port on FreePBX in these settings:

PJSIP Trunk in the general settings
Asterisk SIP Settings under the 0.0.0.0 (udp) section
Phonerlite phone system

Please let me know if I missed a setting where it needs to be changes. I have also opened port 5080 through Xfinity

I asked if the Xfinity router was the only one being used or if there was another router behind it. Is the Xfinity router the only one?

My apologies I missed your message! Yes the Xfinity router is the only router I am running on. I do have Norton 360 Smart Firewall and have also opened the required ports on there. I turned the firewall off to just to see if that was the issue but there was no change.