Outbound Calls not working. Inbound is fine

Hello everyone,

I have been using FreePBX system for the past few weeks and cant make outgoing calls. I set it up for my plumbing business in Boston, MA, and while inbound calls work perfectly, I’m unable to make outbound calls. This means I’ve been resorting to my Verizon cellphone for outgoing communication. For example A customer calls me I set up a time when I will be there. If I have to call the customer back I use my personal cell phone.

To troubleshoot the issue, I’ve tried various approaches:

  • Dialing different numbers (cell phone, landline) with and without prefixes (1, +1).
  • Adjusting the codecs within the trunk settings (like testing g722 and g729).

Unfortunately, none of these attempts have resolved the problem.

I’m can share more log files if it would be helpful.

Thanks PBX community your my only hope.

Freepbx hosted on digital ocean using that 1 click setup app
Voip.ms with a positive balance. (it shows registered in green)
Softphone - Microsip


9664	[2024-07-10 16:31:43] VERBOSE[15071][C-0000007b] netsock2.c: Using SIP RTP TOS bits 184	
9665	[2024-07-10 16:31:43] VERBOSE[15071][C-0000007b] netsock2.c: Using SIP RTP CoS mark 5	
9666	[2024-07-10 16:31:43] WARNING[15071][C-0000007b] res_format_attr_siren7.c: Got Siren7 offer at 24000 bps, but only 32000 bps supported; ignoring.	
9667	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-sip-external:1] NoOp("SIP/206.189.202.87-0000002c", "Received incoming SIP connection from unknown peer to 17743342638") in new stack	
9668	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-sip-external:2] Set("SIP/206.189.202.87-0000002c", "DID=17743342638") in new stack	
9669	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-sip-external:3] Goto("SIP/206.189.202.87-0000002c", "s,1") in new stack	
9670	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (from-sip-external,s,1)	
9671	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/206.189.202.87-0000002c", "1?setlanguage:checkanon") in new stack	
9672	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (from-sip-external,s,2)	
9673	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-sip-external:2] Set("SIP/206.189.202.87-0000002c", "CHANNEL(language)=en") in new stack	
9674	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/206.189.202.87-0000002c", "0?noanonymous") in new stack	
9675	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-sip-external:4] Goto("SIP/206.189.202.87-0000002c", "from-trunk,17743342638,1") in new stack	
9676	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (from-trunk,17743342638,1)	
9677	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-trunk:1] Set("SIP/206.189.202.87-0000002c", "__FROM_DID=17743342638") in new stack	
9678	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-trunk:2] NoOp("SIP/206.189.202.87-0000002c", "Received an unknown call with DID set to 17743342638") in new stack	
9679	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [17743342638@from-trunk:3] Goto("SIP/206.189.202.87-0000002c", "s,a2") in new stack	
9680	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (from-trunk,s,2)	
9681	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:2] Answer("SIP/206.189.202.87-0000002c", "") in new stack	
9682	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:3] Log("SIP/206.189.202.87-0000002c", "WARNING,Friendly Scanner from 47.14.82.99") in new stack	
9683	[2024-07-10 16:31:43] WARNING[3795][C-0000007b] Ext. s: Friendly Scanner from 47.14.82.99	
9684	[2024-07-10 16:31:43] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:4] Wait("SIP/206.189.202.87-0000002c", "2") in new stack	
9685	[2024-07-10 16:31:45] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:5] Playback("SIP/206.189.202.87-0000002c", "ss-noservice") in new stack	
9686	[2024-07-10 16:31:45] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'ss-noservice.ulaw' (language 'en')	
9687	[2024-07-10 16:31:50] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:6] SayAlpha("SIP/206.189.202.87-0000002c", "17743342638") in new stack	
9688	[2024-07-10 16:31:50] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/1.ulaw' (language 'en')	
9689	[2024-07-10 16:31:51] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/7.ulaw' (language 'en')	
9690	[2024-07-10 16:31:52] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/7.ulaw' (language 'en')	
9691	[2024-07-10 16:31:52] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/4.ulaw' (language 'en')	
9692	[2024-07-10 16:31:53] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/3.ulaw' (language 'en')	
9693	[2024-07-10 16:31:54] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/3.ulaw' (language 'en')	
9694	[2024-07-10 16:31:55] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/4.ulaw' (language 'en')	
9695	[2024-07-10 16:31:56] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/2.ulaw' (language 'en')	
9696	[2024-07-10 16:31:57] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/6.ulaw' (language 'en')	
9697	[2024-07-10 16:31:57] WARNING[22620] res_pjsip_registrar.c: Endpoint 'anonymous' (178.32.103.144:52160) has no configured AORs	
9698	[2024-07-10 16:31:57] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/3.ulaw' (language 'en')	
9699	[2024-07-10 16:31:58] VERBOSE[3795][C-0000007b] file.c: <SIP/206.189.202.87-0000002c> Playing 'digits/8.ulaw' (language 'en')	
9700	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@from-trunk:7] Hangup("SIP/206.189.202.87-0000002c", "") in new stack	
9701	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Spawn extension (from-trunk, s, 7) exited non-zero on 'SIP/206.189.202.87-0000002c'	
9702	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [h@from-trunk:1] Macro("SIP/206.189.202.87-0000002c", "hangupcall,") in new stack	
9703	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/206.189.202.87-0000002c", "1?theend") in new stack	
9704	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (macro-hangupcall,s,3)	
9705	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/206.189.202.87-0000002c", "0?Set(CDR(recordingfile)=)") in new stack	
9706	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@macro-hangupcall:4] NoOp("SIP/206.189.202.87-0000002c", " montior file= ") in new stack	
9707	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("SIP/206.189.202.87-0000002c", "1?skipagi") in new stack	
9708	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx_builtins.c: Goto (macro-hangupcall,s,7)	
9709	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Executing [s@macro-hangupcall:7] Hangup("SIP/206.189.202.87-0000002c", "") in new stack	
9710	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/206.189.202.87-0000002c' in macro 'hangupcall'	
9711	[2024-07-10 16:31:59] VERBOSE[3795][C-0000007b] pbx.c: Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/206.189.202.87-0000002c'

The call is being treated as an incoming call to an unknown DID.

You have probably allowed guest and anonymous calls and the originating phone is not being recognized as a known extension.

Also, you are using an obsolete and unsupported channel driver. If you have only been using FreePBX, you should change your configuration to use chan_pjsip, rather than chan_sip. Amongst other things, chan_pjsip eliminates most of the cases where chan_sip requires anonymous callers to be enabled, which will help you debug why your extension is not being recognized.

Hey David thanks for the input! I have tried for days getting my microsip to connect but it only works with anonymous mode as yes. It dpont believe its the password/username because if I change my password to be wrong it wont connect on microsip. So therefore pbx only accepts connections using
Allow Anonymous Inbound SIP Calls:Yes
Allow SIP Guests:Yes

Screenshot_20240710_130035

I believe I have chan_pjsip enabled for everything? Not sure why it would show up as other in the logs.

from where is the call made? ( use sngrep)

Trying to use microsip to call my cellphone . Is that what you mean?

According to the log the incoming call from MicroSIP is coming in via chan_sip. Is MicroSIP configured to use the correct port for talking to FreePBX? That is: The one chan_pjsip is listening on.

Hmm Thats a very good catch. Is there a way to change microsip? Im just using the most recommended softphone I could fine that didnt have ads everywhere.

Ive tried using linphone and setting port from 5160 to 5060 on both softphones. I read that chan_sip is 5160? It doesnt reach the log files on freepbx when I do that though. Im able to receive a call still on on microsip and linphone still no outgoing calls.

I have solved the issues after about 10 more hours of intense focus. I had :5160 on micropsip so it was using chan_sip not chan_jsip. By removing that I was able to set debug mode on. Second I called voip.ms and they said everything looked fine but switch udp to tcp. I thought this was odd but I enabled both on freepbx. I also changed my setting on microsip from udp to udp + tcp.
Restarted server and I could make inbound and outbound calls.