> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Attardi, Joseph (BL60:9D30)
> Sent: Wednesday, November 05, 2008 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [sipX-dev] supervisor work for next sprint
>
> Carolyn Beeton wrote:
> > I had thought of providing a more general "getStatusMessage" query
> > which would return whatever info sipxsupervisor has collected (e.g.
> > missing resources, configtest errors, possibly even output during
> > Running phase). Does this sound reasonable? supervisor
> would return
> > a list of strings which sipXconfig could then display.
>
> This could be good - though I echo Damian's concern about
> localization.
> I like Dale's idea, though - return just a key or tag - for
> example, "error.missingfile" that would map to a localized
> message in sipXconfig.
> Then any details such as the name of the missing file, for
> example, could be sent along with it.
>
How about returning a list of {type, string} structures, such as
{stderr.msg, "*** PULSEAUDIO: Unable to connect: Connection refused"}
{stdout.msg, "Message: Element 'regularhours' is not valid for content
model: '((id,monday,tuesday),sunday)'"}
{config.mismatch, "software '3.11.8' != config '3.11.7"}
{file.missing,
"/home/cbeeton/commit/out/main/etc/sipxpbx/sipxpage.properties.in"}
(note that there could be many pairs sent for any given process).
I know there is an xmlrpc structure for passing around a vector (list).
Is there one for an array? Hashtable won't work as the "types" are not
unique.
Carolyn
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev