Finding inbound routes

Hi friends
how can i find what is my current inbound route in asterisk programmatically? which file i must check to find the inbound routes?

The dialplan, normally configured in extensions.conf, is what defines call routing logic. If you have no knowledge of the dialplan then you’ll need to learn further about it, such as pattern matching.

my inbound route sets to custom destination currently. but when i check extension.conf i cant find it. I just find the outbound route.

Are you using FreePBX? If so, it writes out all of the dialplan and has its own file layout. To that end asking on the FreePBX forum[1] can yield a better result.

[1] https://community.freepbx.org/

yes i am using freepbx.
ok tnx.

On Tuesday 18 June 2024 at 08:30:57, saminab via Asterisk Community wrote:

Hi friends
how can i find what is my current inbound route in asterisk
programmatically?

I don’t undertand what you mean by an “inbound route”.

The context any incoming call will come into is defined in the SIP configuration
of your external providers. Any call coming from provider A will be sent to
the context you have defined for provider A, and so on.

“Routes” would normally be used in regard to outbound calls, where you are in
control of which external provider you want to dial calls out on, based on
destination, time of day, current credit level, etc.

Please explain more clearly what you are trying to find out about incoming
calls.

Antony.


“Life is just a lot better if you feel you’re having 10 [small] wins a day
rather than a [big] win every 10 years or so.”

  • Chris Hadfield, former skiing (and ski racing) instructor

                                                Please reply to the list;
                                                      please *don't* CC me.
    

for example I have a custom destination in freepbx that gose to s extension from test context like that:
s,test,1
and i set my inbound routes from connectivity tab in freepbx to this customdes. so when a caller calls to my company it follows the call to the s extension from test context in dialplan.

On Tuesday 18 June 2024 at 10:31:18, saminab via Asterisk Community wrote:

for example I have a custom destination in freepbx

Since you have now said you are using FreePBX, please ask further questions at
https://community.freepbx.org/ since they know how their dialplan and SIP
configuration work; Asterisk simply does as it’s told by that dialplan and the
SIP config.

Antony.


I want to build a machine that will be proud of me.

  • Danny Hillis, creator of The Connection Machine

                                                Please reply to the list;
                                                      please *don't* CC me.
    

I find it in extensions_additional.conf file.
tnx for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.