[asterisk-dev] [Code Review] Add setvar option to calendaring

Russell Bryant reviewboard at asterisk.org
Fri Mar 4 17:03:12 CST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1134/#review3230
-----------------------------------------------------------



/trunk/include/asterisk/calendar.h
<https://reviewboard.asterisk.org/r/1134/#comment6703>

    Can you use a struct varshead here so that you can use the AST_LIST macros?


- Russell


On 2011-03-04 15:25:57, Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1134/
> -----------------------------------------------------------
> 
> (Updated 2011-03-04 15:25:57)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> There is currently no way to set dialplan variables or callerid on an event notification channel without using a local channel. Adding the setvar option with variable substitution on the value allows things like setting the outbound caller id name to the summary of a calendar event, etc. Values could be chained together as they are appended in order to do some scripting if necessary.
> 
> 
> Diffs
> -----
> 
>   /trunk/configs/calendar.conf.sample 309629 
>   /trunk/include/asterisk/calendar.h 309629 
>   /trunk/res/res_calendar.c 309629 
> 
> Diff: https://reviewboard.asterisk.org/r/1134/diff
> 
> 
> Testing
> -------
> 
> setvar=CALLERID(name)=${CALENDAR_EVENT(summary)}
> setvar=CALLERID(num)=$MYGLOBALVAR
> 
> Verified that the values were set in the notification.
> 
> 
> Thanks,
> 
> Terry
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110304/91aebc2b/attachment.htm>


More information about the asterisk-dev mailing list