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

Terry Wilson reviewboard at asterisk.org
Fri Mar 4 17:15:31 CST 2011


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

(Updated 2011-03-04 17:15:31.816176)


Review request for Asterisk Developers.


Changes
-------

Address russell's comments


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 (updated)
-----

  /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/bb2a0460/attachment.htm>


More information about the asterisk-dev mailing list