[asterisk-gui] (no subject)
Oguzhan Kayhan
oguzhank at bilkent.edu.tr
Wed Jul 22 04:40:14 CDT 2009
Hi,
I'm trying to figure out the extensions.conf and trying to add some
features thru macro-stdexten file (im not sure if it is right to do that
way)
For ex, i am trying to add a lastcalled parameter to my extensions.conf to
make a manual readl function incase client phones doenst have that
function.
I read some examples regarding to it..
and modified my macro-stdexten as follows.
[macro-stdexten]
exten = s,1,Set(DB(lastcalled/${CALLERID(num)})=${ARG1})
exten = s,2,Set(__DYNAMIC_FEATURES=${FEATURES})
exten = s,3,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?9)
..
...
....
When the user has voicemail enabled script works flawlessly..
as seen on debug..
Accepting call from '1622' to '8000' on channel 0/10, span 1
-- Executing [8000 at DID_span_1:1] Goto("DAHDI/10-1", "default,8000,1")
in new stack
-- Goto (default,8000,1)
-- Executing [8000 at default:1] Macro("DAHDI/10-1",
"stdexten,8000,SIP/8000") in new stack
-- Executing [s at macro-stdexten:1] Set("DAHDI/10-1",
"DB(lastcalled/1622)=8000") in new stack
-- Executing [s at macro-stdexten:2] Set("DAHDI/10-1",
"__DYNAMIC_FEATURES=") in new stack
but strangely, when i call a number without any voicemail enabled
as seen on debug
Called 8100
-- SIP/8100-b5146b30 is ringing
== Spawn extension (default, 8100, 1) exited non-zero on
'SIP/8000-b5162eb0'
-- Accepting call from '1622' to '8100' on channel 0/11, span 1
-- Executing [8100 at DID_span_1:1] Goto("DAHDI/11-1", "default,8100,1")
in new stack
-- Goto (default,8100,1)
-- Executing [8100 at default:1] Dial("DAHDI/11-1", "SIP/8100") in new stack
Where should i add that configs according to my needs ..any idea??
Asterisk 1.6.0.9 with Asterisk GUI-version : SVN-branch-2.0-r4970
More information about the asterisk-gui
mailing list