the result would be something like this
1010
then in some way i need to pass this value to asterisk, and after that just
do :
database put fromlog 110 1010
how can a do that ??? i can put that value after the tail in a file but then??..or if there is another easy way would be better
Hi What value are you trying to get from the log file. are you sure you cant get it internally, Not much isnt written to log that cant be got internally
Ok but what is it you are after is the channel UA or what ?
Perhaps if you showed the FULL line of the log file and then highlight the data you want, we may be able to assist more. personally I dont see why you are trying to extract it from the logfile.
So you are you want the called channel ? the MAJOR flaw with what you are trying to do is that you cannot be sure that the line you read is the line that references the call. logging is a low priorty so if two calls answer at teh same time there is a change that the log will have the second calls data before teh first call looks at it or even some other data totaly inconnected…
I would look at getting the data via variables not trying to read from a logfile. its just not going to scale much beyond a test enviroment of a couple of phones.