[asterisk-dev] [Code Review] New Application: Originate

Russell Bryant russell at digium.com
Thu Dec 18 10:04:19 CST 2008


Atis Lezdins wrote:
> On Thu, Dec 18, 2008 at 4:44 PM, Russell Bryant <russell at digium.com> wrote:
>> What I intended was for ORIGINATE_VAR to be a dialplan function:
>>
>> Set(ORIGINATE_VAR(MYVAR)=foo)
>>
>> To unset it after it has been set, you would do:
>>
>> Set(ORIGINATE_VAR(MYVAR)=)
>>
>> This function would store these variables in a special datastore on the
>> channel to be used when Originate() runs.  Multiple variables would be
>> supported.
>>
> 
> Isn't associative arrays best way how to handle this? This syntax is
> just moving Asterisk dialplan further away from programming.

This is the closest thing that we have available for doing associated 
array like functionality in Asterisk dialplan.

-- 
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list