In that case do the following test. Change the main trunk number destination to a different destination and try calling a number other than the main trunk number.
I changed main trunk number destination to one extension (222) and called 445766503 instead of main trunk number. Now calling one extension (main trunk extension instead of wished extension)
Does that number now route to the main trunk number destination? If so that you are still have having routing issues as the number send by your provider does not match the number in the PBX. In that case check the Activity log and see how the number arrives from your provider and format your numbers the same way.
Also do you have multiple trunks?
I have only one trunk.
here is the activity log
04/05/2018 11:53:34 AM - [CM503003]: Call(C:229): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 127.0.0.1:5488
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 127.0.0.1:5488
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 127.0.0.1:5488
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 192.168.33.40:5062
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 192.168.33.35:5062
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 192.168.33.37:5062
04/05/2018 11:22:51 AM - [CM503003]: Call(C:228): Call to <sip:
[email protected]:5060> has failed; Cause: 487 Request Terminated/INVITE from 192.168.33.38:5062
04/05/2018 11:16:47 AM - [CM102001]: Authentication failed for AuthFail Recv Req REGISTER from 192.168.33.33:5060 tid=ae2256d0b07d0c5634d20034ab042b7 Call-ID=686549209@192_168_44_33:
REGISTER sip:192.168.33.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.33.33:5060;branch=z9hG4bKae2256d0b07d0c5634d20034ab042b7;rport=5060
Max-Forwards: 70
Contact: <sip:
[email protected]:5060>
To: <sip:
[email protected]>
From: <sip:
[email protected]>;tag=3180057152
Call-ID: 686549209@192_168_44_33
CSeq: 10243 REGISTER
Expires: 180
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY
Proxy-Authorization: Digest username="555",realm="3CXPhoneSystem",algorithm=MD5,uri="sip:192.168.33.10",nonce="414d535c10d67a7f64:1eeb2d2bc30dfbb9ac3ac9e7ec6636db",response="99f969424cf114c9baa83df8b0545373"
User-Agent: C470 IP/022270000000
Content-Length: 0
; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings