[asterisk-users] Is there a default dial plan that is not in extention.conf?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri Jun 25 08:05:12 CDT 2010
On Fri, Jun 25, 2010 at 02:25:38PM +0300, Eyal Goltzman wrote:
> Hi,
>
>
>
> I have a trivial peace of dialplan for exten 100. I try to change it to _1XX
> and the asterisk act according to a different (Default??) dial plan and not
> the one I want? Is that possible? Where is the other dialplan sits? In my
> extention.conf I can't see something that look like what asterisk is
> dialing.
>
> How can I trace\debug my dialplan?
To see where it comes from, run in the Asterisk CLI:
dialplan show <context>
or:
dialplan show <exten>@<context>
Here is a partial output from 'dialplan show' here, that shows all of
them (but is normally overly long)
[ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ]
's' => 1. NoOp() [app_queue]
[ Context 'parkedcalls' created by 'features' ]
'700' => 1. Park() [features]
[ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ]
's' => 1. NoOp() [app_dial]
[ Context 'from-pstn' created by 'pbx_config' ]
'_X.' => 1. Answer() [pbx_config]
2. Playback(demo-instruct) [pbx_config]
3. Hangup() [pbx_config]
[ Context 'ael-dundi-e164' created by 'pbx_ael' ]
's' => 1. MSet(LOCAL(exten)=${ARG1}) [pbx_ael]
2. Goto(${exten},1) [pbx_ael]
3. Return() [pbx_ael]
'pbx_config' is dialplan that was generated from your extensions.conf.
'pbx_ael' is dialplan that was generated from extensions.ael.
Various other modules include their own minor dialplan snippets.
'dialplan show <exten>@<context>' also resolves various 'include=>'
directives.
If you had:
[local]
include => phones
exten => 120,1,Dial(SIP/trunk/123456)
[phones]
exten => 100,1,Dial(SIP/phone1)
the 'dialplan show local' would show the equivalent of
include => phones
exten => 120,1,Dial(SIP/trunk/123456)
whereas 'dialplan show 100 at local would show the actual (equivalent of)
exten => 100,1,Dial(SIP/phone1)
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list