Greetings,
i’ve setup network with:
- a server with the asteriskNOW 1.4.25.1 with Freepbx
- a patton fxs/fxo gateway, with 2 analog extensions and 1 analog pstn line
- 3 others extensions in the network
I already created all my extensions, trunks and rings groups and everything is working, except one thing.
Because my patton gateway extensions are connected between a trunk, every call i make to asterisk is intercepted as external call, and it activates the default inbound route. What i would like to do is:
1 - Asterisk receives call from gateway extension
1.1 - If dialed number is not registered as extension, it forwards rightful trunk
1.2 - If is registered, then it forwards it to the extension.
I know i could create an inbound route and relate each extension with the dialed number, but i would have to create one by one if i want to add more extensions. And i don’t know what to do to forward all other numbers that aren’t extensions.
Here is the config of my patton trunk:
Outbound Settings:
canreinvite=no
dtmfmode=auto
host=192.168.1.151
insecure=very
port=5060
qualify=yes
type=peer
context=from-trunk (i already tried from-internal, but then i can’t make any call at all).
Both gateway extensions are dynamic and from-trunk (i also tried from-internal, but it didn’t make any difference).
Best regards,
Jaime.
PS: All my config was by freepbx interface, so i don’t know much of configuring by config files, but i can tried them anyway.