Peer to peer sip trunk - incoming

Please explain what is going on. Why did you set up a chan_sip trunk? In your thread Custom extensions , you said that all was working and now you are changing everything?

Hello
every thing is indeed working…
i can
-make outbound calls from freepbx via matrix
-make outbound calls from matrix
-freepbx to matrix extension and vice versa calling is working
-feature codes are working - abbriviated dialing, custom extensions

as i wrote in the thread earlier, i am trying to implement IVR on the freepbx.
So i want to forward all external calls from matrix CO lines to freepbx and then to IVR menu thru inbound route setting.

Line 4: 1. INVITE sip:192.168.1.81 SIP/2.0
shows that the Matrix is configured incorrectly, because there is no number that it is calling. On an incoming call, the user part of the SIP URI (and the To header) should normally be the DID number that is being called.

its well over my level of understanding.
Also with reference to the Custom extensions thread the matrix gateway has a lot of settings in a very complicated UI and its very hard to get around it.

if you are comfortable we can do a anydesk session if you want to see the matrix setup with live changes feedback.