[asterisk-users] Extensions.conf changed but not take effect
Danny Nicholas
danny at debsinc.com
Wed Mar 10 08:11:25 CST 2010
This one is pretty clear - asterisk is expecting to go to a valid context
and tag. You are dialing 9504012345 and the goto is trying to go to
9504012345,welcome or 9504012345,3 when it should actually go to
${CALLINNUM}:0:5 to go to 95040,welcome for any call starting with 95040.
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Emanuele
Carbone
Sent: Wednesday, March 10, 2010 3:57 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [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/8ba1c3f8/attachment.htm
More information about the asterisk-users
mailing list