[Asterisk-Dev] PATCH - Adds a set'able text string for each channel

asterisk at billheckel.com asterisk at billheckel.com
Thu May 20 06:00:36 MST 2004


It might be nice if this information was retreivable after hangup somehow at least from AGI.

Bill

Adam Goryachev wrote:

>>It sounds like what I want to do is simply use the same manager
>>interface like this:
>>Action: Setvar
>>Channel: Zap/1-1
>>Variable: mytext
>>Value: blahblah
>>
>>This would be the same as:
>>Setvar(mytext=blahblah)
>>when channel zap/1-1 was still running through the dialplan.
>>
> 
> 
> Well, actually, that was really easy to implement.
> 
> The question now is, how to implement/allow the manager interface to
> retrieve channel variables?
> 
> In the dialplan they are accessed as ${foo} but in the manager API I
> suppose we need something more like:
> Action: Getvar
> Channel: Zap/1-1
> Variable: blahblah
> 
> or should it be Action: Readvar ?
> 
> What about setting/reading global vars?
> Perhaps:
> Action: Getvar
> Channel: Global
> Variable: blahblah



More information about the asterisk-dev mailing list