DID from provider breaks incoming routes (DID matching)

You need your own context to do this, it’s not overly difficult. Configure your trunk(s) with context of from-pstn-unity, then create that context in extensions_custom.conf:

[from-pstn-unity]
exten => n123456789_4,1,Goto(from-pstn,xxxxxxxxxx,1)
exten => n123456789_5,1,Goto(from-pstn,yyyyyyyyyy,1)
exten => n123456789_6,1,Goto(from-pstn,zzzzzzzzzz,1)
exten => _.,1,Goto(from-pstn,${EXTEN},1)   ; catchall in case they change format on you

Substitute your DIDs in place of the x,y,z.

7 Likes