I didn't have a problem writing a client in C. There were a couple things to worry about....
I have teh code in svn on sourceforge and havn't done much w/ it anymore since i've moved jobs. Anyone want it? e-mail me directly. i'l freely hook it up. On 11/29/06, Richard Lyman <[EMAIL PROTECTED]> wrote:
TP'n to follow flow.. yes i understand the out is similar/same. i was attempting to get james to note that there already are manager commands. as a note for parsing the manager interface.. you will probably find it easier if you parse as a block, meaning *till* a blank line. then parse the block for all it's little tweaks <G> Douglas Garstang wrote: > That data is no easier to parse than the output generated from: > > Action: Command > Command: sip show peer <peer> > > Note the colons used both as a field delimiter AND stuck in the regcontact. > > CodecOrder: ulaw,g729,gsm > Status: UNKNOWN > SIP-Useragent: PolycomSoundPointIP-SPIP_601-UA/1.6.7.0098 > Reg-Contact : sip:[EMAIL PROTECTED] > ChanVariable: > parkstart,10 > > Doug. > > >> -----Original Message----- >> From: Richard Lyman [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, November 29, 2006 3:30 PM >> To: Asterisk Users Mailing List - Non-Commercial Discussion >> Subject: Re: [asterisk-users] What's up with the Manager Interface?!?! >> >> >> James Texter wrote: >> >>> Doug, >>> Your issue isn't with the manager. It's with the CLI >>> >> output you are >> >>> trying to hijack via manager :D If you run "sip show peer >>> >> 2944093" in the >> >>> CLI, you'll see a blank line, followed by a line that is "* >>> >> Name". It >> >>> appears what you really want is a manager Action to show a >>> >> sip peer, in >> >>> which case I would recommend adding a new manager command >>> >> that returns a >> >>> string which is much more machine readable. Remember, CLI output is >>> designed to be human readable. >>> >>> Just my $0.02. >>> >>> >>> >> action: sippeers >> >> or >> >> action: sipshowpeer >> peer: name >> >> maybe you should do the below to refresh your memory >> >> action: command >> command: show manager commands >> >> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
