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

Russell Bryant reviewboard at asterisk.org
Fri Mar 4 17:16:50 CST 2011


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

Ship it!


Update CHANGES and you're set

- Russell


On 2011-03-04 17:15:31, Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1134/
> -----------------------------------------------------------
> 
> (Updated 2011-03-04 17:15:31)
> 
> 
> 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/c7eef06d/attachment.htm>


More information about the asterisk-dev mailing list