[Asterisk-Dev] Asterisk channel variable access: a proposal

Alexander Lopez alex.lopez at opsys.com
Wed Aug 18 08:39:02 MST 2004


I think a basic requirement for any and all applications that would
provide this information would be that it is accessible from "OUTSIDE"
of the asterisk program. I am repeating previous posts by others. But
having the info external to * would be great for scripts, php pages, web
front ends, logging programs, etc.

Placing it in astdb would be fine as long as astdb could be accessed
from outside * without the risk of data corruption.



-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of Holger Schurig
Sent: Wednesday, August 18, 2004 3:15 AM
To: asterisk-dev at lists.digium.com
Subject: Re: [Asterisk-Dev] Asterisk channel variable access: a proposal

> The "rings" element is part of ast_channel structure. I do not know
how
> it is used, but its there.

I have not looked at this part of the source, but maybe "rings" is only 
used for zaptel FXS devices. Because then you know how often it ringed. 
For many other channels, the number of rings is out of your control,
here 
only a the duration of the ringing state could be used statistically.


> Maybe its not so hard to add the information to astdb, but it 'might'
> have performance issues. And then you have to perform some kind of
> garbage collection to clean old channel data.

Putting it into astdb would be fine, because it's simply there. However,

John made a comparison to /proc in Linux, and the data there isn't
there, 
except when you ask for it. There is no garbage collection there,
because 
the info is always generated on the fly.

That brings me to the idea of an app_chanstat, where an application

  GetChanStat(temp, "reversedialed")

(or whatever field from struct ast_channel) would return a field from
the 
channel into the variable "temp").

That should be easy to code.

_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list