tbrummell
Guru
- Joined
- Jan 8, 2011
- Messages
- 1,280
- Reaction score
- 340
Since rebuiling my Debian based iPBX 2021 using pure PJSIP, I haven't been able to receive a call from my DryVoip.ca lines, they kept ending up in my Any/Any catch-all route. Watching the Asterisk logs, I didn't see the expected "You don't have a DID specified" or whatever that error is when it can't match the dialed DID. Checking a SIP trace, I saw that the From: had my DID in it. Strange, Asterisk/FreePBX should see that. I finally reached out to Trev and he pointed me to a Reddit thread (that I didn't find when I was searching for a solution) which states:
All of those are default, except for the Context. Once I changed that, calls came in as expected. Dropping this here for anyone else that may experience this, and of course for my future reference. 
Code:
Username = <username>
Secret = <secret>
Authentication = Outbound
Registration = Send
SIP Server = mtl.dryvoip.ca
Context = from-pstn-toheader