[Home]

Summary:ASTERISK-05153: [patch] [post 1.2] New application Vars2File
Reporter:Wolfgang Pichler (wuwu)Labels:
Date Opened:2005-09-26 10:36:24Date Closed:2011-06-07 14:03:17
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_vars2file.c
Description:This new application takes as first argument a filename to which it will write the variable name and value specified in the next n variables.

Resulting file is in the format:
VARNAME=VARVALUE
VARNAME=VARVALUE
...

Example Usage (for receiving faxes):
rxfax(${FAXFILE}.tif)
Vars2File(${FAXFILE}.txt,REMOTESTATIONID,FAXPAGES,FAXBITRATE,FAXRESOLUTION)
Comments:By: Michael Jerris (mikej) 2005-09-26 10:39:39

Can't this already be accomplished with cdr?

By: Kevin P. Fleming (kpfleming) 2005-09-26 11:36:48

Not in the same way, no.

By: Clod Patry (junky) 2005-10-21 23:52:02

Why not using DumpChan?

By: Wolfgang Pichler (wuwu) 2005-10-22 01:13:35

DumpChan dumps all the information to the console
Vars2File only dumps the specified variables to the specified file

By: Clod Patry (junky) 2005-10-22 19:17:56

having the output to console could be easily be written to file no?

By: Matt O'Gorman (mogorman) 2005-10-23 00:37:22

I hate to be a neigh sayer but was wrong with system(cat "${REMOTESTATIONID},${FAXPAGES},${FAXBITRATE},${FAXRESOLUTION}" > ${FAXFILE}.txt)

right??

By: Matt O'Gorman (mogorman) 2005-10-24 10:58:56

oops, anyways can wuwu please respond so we can decide what to do with this patch?

By: Wolfgang Pichler (wuwu) 2005-10-25 01:52:24

you are right, with system(echo "${REMOTESTATIONID},${FAXPAGES},${FAXBITRATE},${FAXRESOLUTION}" > ${FAXFILE}.txt) you can have nearly the same behaviour - so i think we can close this bug

By: Jason Parker (jparker) 2005-10-25 02:22:18

I actually kinda like this idea...  What would be nice, is if you could also read the vars from the file.

readfilevars(${FAXFILE}.txt,REMOTESTATIONID,FAXPAGES, etc...

By: Tilghman Lesher (tilghman) 2005-10-27 22:47:41

Closed on request of reporter