Hello,
I’ve recently reinstalled FreePBX into a virtual machine after decommissioning my physical PC. It is only for family and home business use so not business critical as I have all calls forwarded to my mobile through my trunk provider.
I am only able to receive calls on my main number, any other numbers fail to register at the INVITE stage and I am not receiving any DID from the trunk so all calls are played the ‘not in service’ message as I have no default inbound route. I have been in touch with my provider and they have given me snippets of logs and it looks like the problem is at my end - I was wondering if anyone had any ideas to get this working, I have copied settings from my previous physical install so I’m not sure what exactly is happening.
These are the logs, the provider is Andrews and Arnold in the UK.
My Log when I attempt to dial in with a secondary number:
193[2021-02-19 11:02:38] NOTICE[30173] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"07969 XXXXXX" <sip:[[email protected]](mailto:[email protected])>' failed for '81.187.30.XXX:5060' (callid: [email protected]) - Failed to authenticate
194[2021-02-19 11:02:38] NOTICE[30173] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"07969 127392" <sip:[[email protected]](mailto:[email protected])>' failed for '81.187.30.XXX:5060' (callid: [email protected]) - Failed to authenticate
195[2021-02-19 11:02:38] NOTICE[30173] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"07969 XXXXXX" <sip:[[email protected]](mailto:[email protected])>' failed for '81.187.30.XXX:5060' (callid: [email protected]) - Failed to authenticate
My provider says:
Our SIP logs show the initial invite followed
by us sending a 401 asking you to authenticate, which you ack but then
send another invite, which looks to be ignoring our request for you to
authenticate
When I attempt to dial in with my main number:
196[2021-02-19 11:04:25] VERBOSE[3377] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '212.XX.XX.XXX'
197[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:1] Set("PJSIP/aa-00000002", "GROUP()=OUT_2") in new stack
198[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:2] Goto("PJSIP/aa-00000002", "from-trunk,s,1") in new stack
199[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx_builtins.c: Goto (from-trunk,s,1)
200[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/aa-00000002", "No DID or CID Match") in new stack
201[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:2] Answer("PJSIP/aa-00000002", "") in new stack
202[2021-02-19 11:04:25] NOTICE[30173] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"07969 XXXXXX" <sip:[[email protected]](mailto:[email protected])>' failed for '81.187.30.114:5060' (callid: [email protected]) - Failed to authenticate
203[2021-02-19 11:04:25] WARNING[22100][C-00000003] chan_sip.c: This function can only be used on SIP channels.
204[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:3] Log("PJSIP/aa-00000002", "WARNING,Friendly Scanner from ") in new stack
205[2021-02-19 11:04:25] WARNING[22100][C-00000003] Ext. s: Friendly Scanner from
206[2021-02-19 11:04:25] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:4] Wait("PJSIP/aa-00000002", "2") in new stack
207[2021-02-19 11:04:27] VERBOSE[22100][C-00000003] pbx.c: Executing [[email protected]:5] Playback("PJSIP/aa-00000002", "ss-noservice") in new stack
208[2021-02-19 11:04:27] VERBOSE[22100][C-00000003] file.c: <PJSIP/aa-00000002> Playing 'ss-noservice.ulaw' (language 'en_GB')
This is my providers INVITE to my PBX for dialing into my main account number:
[81.187.30.XXX:5060](https://81.187.30.118:5060) - [212.XX.XX.XXX:5060](https://212.56.94.122:5060)
2021-02-18T21:46:02.302094Z
INVITE sip:[[email protected]](mailto:[email protected]):5060;line=cpazlet SIP/2.0
Via: SIP/2.0/UDP [81.187.30.XXX](https://81.187.30.XXX);branch=z9hG4bK2021021821460200001-1;rport
CSeq: 1 INVITE
Max-Forwards: 68
User-Agent: FireBrick/1.55.008
Call-ID: [email protected]
From: "07969 XXXXXX"
<[sip:[email protected]](mailto:sip:[email protected])>;tag=2021021821460200001
To: <sip:[[email protected]](mailto:[email protected]):5060;line=cpazlet>
Contact: <[sip:[email protected]](mailto:sip:[email protected])XX>
Content-Type: application/sdp
Content-Length: 188
v=0
o=- 21780 0 IN IP4 [81.187.30.X](https://81.187.30.118)XX
s=call
c=IN IP4 [81.187.30.](https://81.187.30.118)XXX
t=0 0
m=audio 21780 RTP/AVP 8 101
a=rtpmap:8 pcma/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv
I am thinking about trying to set the trunk up with chan_sip but as it will, at some point, be depreceated I feel like it would be best to get this working properly with PJSIP now rather than later.
I am running my PBX through one-to-one NAT with all ports directly mapped between the public IP and the private IP.
If anyone has any suggestions of what to try or even where to look to get it working I’d be appreciative. It might be a simple oversight on my part as I am not particularly experienced in SIP, I do have experience with networking as a whole though.
FreePBX 15.0.17.24
Asterisk 16.13.0