[asterisk-gui] (no subject)

Oguzhan Kayhan oguzhank at bilkent.edu.tr
Wed Jul 22 07:49:25 CDT 2009


About the question below,
I found out that in users.conf file there is a comment as follows:
Create voicemail mailbox and use use macro-stdexten
;
hasvoicemail = yes

So that explains my question..but not the solution..
I want to learn that how can i make a pre-dial configuration for all calls
making from asterisk users.
I am asking to this forum because it seems there are some changes for the
asterisk-gui on the configuration files.
All i need is to run the following line before any calls.

I can add this script to all my outgoing dialplans for example
as
[local]
exten =  _8XXX,1,Set(DB(lastcalled/${CALLERID(num)})=${EXTEN:0})
exten => _8XXX,2,Goto(default,${EXTEN:0},1)
[international]
exten =  _NXXXXXXXXXXX,1,Set(DB(lastcalled/${CALLERID(num)})=${EXTEN:0})
exten => _nXXXXXXXXXXX,2,Goto(default,${EXTEN:0},1)


etc...but that doesnt sound much correct to me.
Better to add that to default context makes much sense i think.





s,1,Set(DB(lastcalled/${CALLERID(num)})=${ARG1}) (or similar to that command)


I want to record all dialed numbers of the clients for redial function of
asterisk.


> 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
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-gui mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-gui
>





More information about the asterisk-gui mailing list