I’ve configured single trunk to my provider but cannot get it to work with my 2 DIDs. It only works when my registration string is configured in following way: my_username:[email protected]/my_DID1
I have incoming rules configured for my_DID1 > exte1 and my_DID2 > ext2.
In this configuration I am able to receive calls to both DIDs but they are both routed to same extension.
If I remove my_DID1 part from registration string(my_username:[email protected]) then no DID is being presented.
putting in “/my_DID1” is going to make it come in with that DID because that is what you are telling it to do in the registration.
You need to find out from your provider HOW or IF they are sending the DID to you. If they are sending it in the TO Header only then you can try using “from-pstn-toheader” as your context for the trunk.