Zhang Shukun
2010-Mar-10 09:38 UTC
[asterisk-users] Extensions.conf changed but not take effect
hi, All one thing confused me a long time. when i change the extensions.conf file. why not take effects after restart the asterisk? details as follow: my dailplan is : [95040] exten => _95040XXXXX,1,Set(CALLINNUM=${CALLERID(dnid)}) exten => _95040XXXXX,n(start),Answer exten => _95040XXXXX,n(welcome),Background(${welcomefile},,123) ... exten => i,1,Playback(invalid) exten => i,2,Goto(${CALLINNUM},welcome) first, i have changed _95040XXXXXX to _95040XXXXX , but when excute exten => i,2,Goto(${CALLINNUM},welcome) cli error message as follow: -- Executing [s at extinvalid:2] Goto("SIP/1000-00000005", "95040,_95040XXXXXX,welcome") in new stack [Mar 10 17:17:27] NOTICE[5057]: pbx.c:3731 pbx_extension_helper: Cannot find extension '_95040XXXXXX' in context '95040' [Mar 10 17:17:27] WARNING[5057]: pbx.c:9602 pbx_parseable_goto: Priority 'welcome' must be a number > 0, or valid label do you know what's wrong? does asterisk have some buffer or cache files? although i change but read the old file? thank you very much! -- Best regards, Sucan
Emanuele Carbone
2010-Mar-10 09:56 UTC
[asterisk-users] Extensions.conf changed but not take effect
check the Goto cmd syntax 2010/3/10 Zhang Shukun <bitzsk at gmail.com>> hi, All > > one thing confused me a long time. > when i change the extensions.conf file. why not take effects after > restart the asterisk? details as follow: > > my dailplan is : > > [95040] > > exten => _95040XXXXX,1,Set(CALLINNUM=${CALLERID(dnid)}) > exten => _95040XXXXX,n(start),Answer > exten => _95040XXXXX,n(welcome),Background(${welcomefile},,123) > ... > > exten => i,1,Playback(invalid) > exten => i,2,Goto(${CALLINNUM},welcome) > > > first, i have changed _95040XXXXXX to _95040XXXXX , but when excute > > exten => i,2,Goto(${CALLINNUM},welcome) > > cli error message as follow: > > -- Executing [s at extinvalid:2] Goto("SIP/1000-00000005", > "95040,_95040XXXXXX,welcome") in new stack > [Mar 10 17:17:27] NOTICE[5057]: pbx.c:3731 pbx_extension_helper: > Cannot find extension '_95040XXXXXX' in context '95040' > [Mar 10 17:17:27] WARNING[5057]: pbx.c:9602 pbx_parseable_goto: > Priority 'welcome' must be a number > 0, or valid label > > do you know what's wrong? does asterisk have some buffer or cache > files? although i change but read the old file? > > thank you very much! > > -- > Best regards, > Sucan > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/73d940d3/attachment.htm
Håkon Nessjøen
2010-Mar-10 09:59 UTC
[asterisk-users] Extensions.conf changed but not take effect
On Wed, Mar 10, 2010 at 10:38 AM, Zhang Shukun <bitzsk at gmail.com> wrote:> hi, All > > one thing confused me a long time. > when i change the extensions.conf file. why not take effects after > restart the asterisk? details as follow:Type "dialplan reload" in your CLI
Warren Selby
2010-Mar-10 19:15 UTC
[asterisk-users] Extensions.conf changed but not take effect
On Wed, Mar 10, 2010 at 3:38 AM, Zhang Shukun <bitzsk at gmail.com> wrote:> [95040] > > exten => _95040XXXXX,1,Set(CALLINNUM=${CALLERID(dnid)}) > exten => _95040XXXXX,n(start),Answer > exten => _95040XXXXX,n(welcome),Background(${welcomefile},,123) > ... > > exten => i,1,Playback(invalid) > exten => i,2,Goto(${CALLINNUM},welcome) >Try setting CALLINNUM to ${EXTEN}. exten => _95040XXXXX,1,Set(CALLINNUM=${EXTEN}). This way you'll capture whatever is matching the _95040XXXXX pattern, instead of the value in the CALLERID(dnid). -- Thanks, --Warren Selby http://www.selbytech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/47ba9562/attachment.htm
Philipp von Klitzing
2010-Mar-10 20:09 UTC
[asterisk-users] Extensions.conf changed but not take effect
>> exten => _95040XXXXX,1,Set(CALLINNUM=${CALLERID(dnid)})> Try setting CALLINNUM to ${EXTEN}. > exten => _95040XXXXX,1,Set(CALLINNUM=${EXTEN}).CALLERID(num) instead of CALLINNUM (which is 100% wrong)