In my office i need to make call from gsm mobile to direct extension number like 300,
my information about lab:
. GSM device
. Asterisk server
- extension, sip like 300
- Applied trunk between asterisk server and gsm gateway so the statutes between them is ok.
Am can make call from asterisk extension “300” to call direct to gsm mobile by used (prefix and matched pattern), and finally worked as fine without any problem.
It sounds like what you’re describing is simply a dial plan to route external calls to internal extensions? The basic concept for this is in the DID-Extensions section of the basic-pbx extensions.conf file (found here: https://github.com/asterisk/asterisk/blob/master/configs/basic-pbx/extensions.conf )
This context that you create there would need to be linked to an endpoint that you create in your pjsip.conf that represents the gateway that will be directing the incoming calls to the PBX.