[asterisk-users] Asterisk extension not found problem...
abhinav anand
a.abhinav100 at gmail.com
Wed Jan 19 18:05:57 CST 2011
Hi Steve,
I am using Asterisk version 1.6.2.5-0. Surprisingly, I don't see "dialplan
reload". When I do "core show help dialplan" I get list of commands as:
*
moment-portable*CLI> core show help dialplan
dialplan debug Show fast extension pattern matching data
structures
dialplan set chanvar Set a channel variable
dialplan set extenpatternmatch Use the Old extension pattern
matching algorithm.
dialplan set extenpatternmatch Use the New extension pattern
matching algorithm.
dialplan set global Set global dialplan variable
dialplan show chanvar Show channel variables
dialplan show globals Show global dialplan variables
dialplan show Show dialplan
*
Also executing "echo $(cat /proc/<pid-of-asterisk>cmdline)" returned this
path
*/usr/sbin/asterisk-p-Uasterisk*
I have verified the symlink between two extensions.conf files. It is okay
now.
My dialplan show returns some 28 contexts (*all pbx_ael and no pbx_config*)
and looks like this
(seems context are read from extensions.ael file only)
*[ Context 'default' created by 'pbx_lua' ]
Alt. Switch => 'Lua/' [pbx_lua]
moment-portable*CLI>
[ Context 'demo' created by 'pbx_lua' ]
Alt. Switch => 'Lua/' [pbx_lua]
moment-portable*CLI>
[ Context 'local' created by 'pbx_lua' ]
Alt. Switch => 'Lua/' [pbx_lua]
moment-portable*CLI>
[ Context 'ael-default' created by 'pbx_ael' ]
Include => 'ael-demo' [pbx_ael]
[ Context 'ael-demo' created by 'pbx_ael' ]
'#' => 1. Playback(demo-thanks) [pbx_ael]
2. Hangup() [pbx_ael]
'1000' => 1. Goto(ael-default,s,1) [pbx_ael]
'2' => 1. Background(demo-moreinfo) [pbx_ael]
2. Goto(s,instructions) [pbx_ael]
'3' => 1. Set(LANGUAGE()=fr) [pbx_ael]
2. Goto(s,restart) [pbx_ael]
'500' => 1. Playback(demo-abouttotry) [pbx_ael]
2. Dial(IAX2/guest at misery.digium.com/s at default)
[pbx_ael]
3. Playback(demo-nogo) [pbx_ael]
4. Goto(s,instructions) [pbx_ael]
'600' => 1. Playback(demo-echotest) [pbx_ael]
2. Echo() [pbx_ael]
3. Playback(demo-echodone) [pbx_ael]
4. Goto(s,instructions) [pbx_ael]
'8500' => 1. VoicemailMain() [pbx_ael]
2. Goto(s,instructions) [pbx_ael]
'i' => 1. Playback(invalid) [pbx_ael]
's' => 1. Wait(1) [pbx_ael]
2. Answer() [pbx_ael]
3. Set(TIMEOUT(digit)=5) [pbx_ael]
4. Set(TIMEOUT(response)=10) [pbx_ael]
[restart] 5. Background(demo-congrats) [pbx_ael]
[instructions] 6. MSet(x=$[0]) [pbx_ael]
7. GotoIf($[ ${x} < 3]?8:12) [pbx_ael]
8. Background(demo-instruct) [pbx_ael]
9. WaitExten() [pbx_ael]
10. MSet(x=$[${x} + 1]) [pbx_ael]
11. Goto(7) [pbx_ael]
12. NoOp(Finish for-ael-demo-3) [pbx_ael]
't' => 1. Goto(#,1) [pbx_ael]
'_1234' => 1. Gosub(ael-std-exten-ael,s,1(${EXTEN}, "IAX2"))
[pbx_ael]
[ Context 'ael-local' created by 'pbx_ael' ]
Include => 'ael-default' [pbx_ael]
Include => 'ael-trunklocal' [pbx_ael]
Include => 'ael-iaxtel700' [pbx_ael]
Include => 'ael-trunktollfree' [pbx_ael]
Include => 'ael-iaxprovider' [pbx_ael]
Ignore pattern => '9' [pbx_ael]
[ Context 'ael-longdistance' created by 'pbx_ael' ]
Include => 'ael-local' [pbx_ael]
Include => 'ael-trunkld' [pbx_ael]
Ignore pattern => '9' [pbx_ael]
[ Context 'ael-international' created by 'pbx_ael' ]
Include => 'ael-longdistance' [pbx_ael]
Include => 'ael-trunkint' [pbx_ael]
Ignore pattern => '9' [pbx_ael]
moment-portable*CLI>
*
Thanks,
Abhinav
On Wed, Jan 19, 2011 at 3:44 PM, Steve Edwards <asterisk.org at sedwards.com>wrote:
> Please do not add me or yourself to the address list. We should keep the
> discussion on the list (and just the list) so it is available to everyone.
>
> Also, top-posting is 'frowned upon.'
>
>
> On Wed, 19 Jan 2011, abhinav anand wrote:
>
> Here are the answers to the questions.
>>
>> 1) Do you need to do a 'dialplan reload?'
>>
>
> I don't need to do a dialplan reload. Infact there is no such command as
>> "dialplan reload". I simply do a "reload" each time I make a config change.
>>
>
> What version of Asterisk are you using?
>
> 1.2 = 'extensions reload'
>
> 1.6 = 'dialplan reload'
>
> (I don't have a 1.4 or 1.8 on hand.)
>
> If you don't have one of these, something is seriously wrong.
>
>
> 2) Are you sure you are editing the extensions.conf that your Asterisk is
>> configured to read?
>>
>
> There are two extensions.conf files present in
>> /etc/asterisk/extensions.conf
>> /home/moment/openbts-uhd/public-trunk/AsteriskConfig/extensions.conf
>>
>
> I am making the changes in /etc/asterisk file. However, when I have tried
>> putting same changes in other file too but again no success.
>>
>
> 3) Do you start Asterisk with the -C command line option?
>>
>
> I start Asteisk using "sudo asterisk -vvvvvvvgcr" or "sudo asterisk -r".
>> "-c" says Asterisk already running on /var/run/asterisk/asterisk.ctl. Use
>> 'asterisk -r' to connect.
>>
>
> The 'r' command line option asks to connect to an existing instance, so
> this is not the command you use to start Asterisk.
>
> The 'upper-case C' command line option allows you to specify location other
> than /etc/asterisk/ for asterisk.conf.
>
> Typing 'echo $(cat /proc/<pid-of-asterisk>/cmdline)' will show the command
> line and options Asterisk was started with.
>
>
> 4) What is the value of 'astetcdir' in asterisk.conf?
>> The value is as astetcdir => /etc/asterisk and other values are:
>> [directories](!) ; remove the (!) to enable this
>> astetcdir => /etc/asterisk
>> astmoddir => /usr/lib/asterisk/modules
>> astvarlibdir => /var/lib/asterisk
>> astdbdir => /var/lib/asterisk
>> astkeydir => /var/lib/asterisk
>> astdatadir => /usr/share/asterisk
>> astagidir => /usr/share/asterisk/agi-bin
>> astspooldir => /var/spool/asterisk
>> astrundir => /var/run/asterisk
>> astlogdir => /var/log/asterisk
>>
>
> Some extra information:
>>
>
> - My asterisk version is Asterisk 1.6.2.5-0ubuntu1.1 built by buildd @
>> palmer on a i686 running Linux on 2010-07-16 13:24:33 UTC
>>
>
> So 'dialplan reload' would be the proper command to just reload the
> dialplan.
>
>
> - I am not able to verify the symlink between the two extensions.conf
>> files
>>
>
> If you edit one and your edits don't magically appear in the other, they
> are not linked.
>
> The 'ls' command can also be use to confirm 'linkness.'
>
> When you do a 'dialplan show' do you see lines like:
>
> 1. mumble-mumble [pbx_config]
>
> or
>
> 1. mumble-mumble [pbx_ael]
>
> or both?
>
> (pbx_config means extensions.conf, pbx_ael means extensions.ael)
>
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
ABHINAV ANAND
3GPP Modem Lab., Modem R&D Team
Telecommunication R&D Center
Information & Communication Business
SAMSUNG ELECTRONICS Co., Ltd.
SUWON, SOUTH KOREA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110119/c186a499/attachment.htm>
More information about the asterisk-users
mailing list