[Home]

Summary:ASTERISK-01947: [request] new manager API Command - 'database'
Reporter:mustdie (mustdie)Labels:
Date Opened:2004-07-03 22:36:01Date Closed:2011-06-07 14:04:46
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) cli.c.diff
( 1) cli.c.diff
( 2) cli.c.patch
Description:It is really necessary for us to get the entire database via Manager interface. (I'e database show). But unfortunately we can't use following command due to bug 1110.

Action: Command
Command: database show

Basically the same applies to 'show dialplan'.

In this new command we would love to see the same functionality as in 'database' command in CLI.

****** ADDITIONAL INFORMATION ******

Main reason for opening this bug report, is that we can't fully use Manager API's Action: Command, due to cuted content (See bug 1110). Even '--END COMMAND--' is missing, which makes Manager API half usefull.

Suggested 2 seconds timeout in bug report 1967 is not pretty.
Comments:By: Tilghman Lesher (tilghman) 2004-07-03 23:46:51

I don't know what problem you're having, because I'm using the 'database show' command through the Manager interface just fine.

By: mustdie (mustdie) 2004-07-04 00:05:37

My database is about 80Kb, which i can get about 10kb via Manager Interface. Also --END COMMAND-- is cuted out of stream.

By: mochouinard (mochouinard) 2004-07-04 00:50:17

Im looking into it at the moment

By: mochouinard (mochouinard) 2004-07-04 01:57:12

Fixed I hope

By: mochouinard (mochouinard) 2004-07-04 02:09:14

I thing about this patch, if fd die it get stuck for ever... it need better handelling, but Im sure someone that know more sockets than me can apply the right check to it

By: mochouinard (mochouinard) 2004-07-04 02:29:35

Ok new patch is the save as previous but had handelling for the resource temporary unavailable that caused the problem, so if ANY other error, resume as it did before. it 3am and I dont see how to make only 1 write line instead of 2, but it dont matter much at the moment.. Going to sleep.. cya all

By: mochouinard (mochouinard) 2004-07-04 13:40:29

Ok last patch I added in case it doesn't send the full test, it will try to send it again the missing part. also got the loop with only 1 write in in.

It fix the manager API but not the asterisk -rx

By: mochouinard (mochouinard) 2004-07-04 15:05:48

I moved my patch to new bug 1973 in case you still want a external API for database

By: mustdie (mustdie) 2004-07-05 12:49:57

Please close it. Patch from 1973 fixes the issue. Thank you all for help.