PJSIP trunk to inbound route without DID

Hi,

I’m trying to setup a PJSIP trunk to receive calls and want a specific inbound route to catch those calls.

My supplier does not send a DID number so I was using chan_sip with a register string terminating with /DIDNUMBER

How can I make all the calls coming from this trunk to go to a specific inbound route?

Thanks!

Not sure you can do this with PJSIP. You can create a block of dialplan to do it, then change the trunk context to match:

[from-pstn-nunogato]
exten => _.,1,Noop(Entering user defined context [from-pstn-nunogato] in extensions_custom.conf)
exten => _.,n,goto(from-pstn,xxxxxxxxx,1)   ; substittue DID for x's

didn’t test; should work.