<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just off the top of my head have you tried /xmlapi/? or read the wiki page on this? <a href="http://wiki.freeswitch.org/wiki/Mod_xml_rpc">http://wiki.freeswitch.org/wiki/Mod_xml_rpc</a><div><br></div><div>and "show calls as xml"?</div><div><br></div><div>/b</div><div><br></div><div><br><div><div>On Mar 1, 2010, at 3:31 PM, Wellie Chao wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">I am using the xml_rpc interface like so:<br><br><a href="http://192.168.1.1:8080/webapi/show?calls">http://192.168.1.1:8080/webapi/show?calls</a><br><br>I get a response in a table, which is a little bit undesirable because I<span class="Apple-converted-space"> </span><br>want to parse the result in a program and don't want to parse a bunch of<span class="Apple-converted-space"> </span><br>HTML (just seems inelegant and wasteful), so I instead tried the following<span class="Apple-converted-space"> </span><br>request:<br><br><a href="http://192.168.1.1:8080/txtapi/show?calls">http://192.168.1.1:8080/txtapi/show?calls</a><br><br>That works better, but then another wrinkle appears. Caller ID (and Callee<span class="Apple-converted-space"> </span><br>ID) names sometimes have commas, which messes up the CSV.<br><br>This appears to be a bug in mod_commands.c (or I suppose you could call it<span class="Apple-converted-space"> </span><br>an artifact of somebody coding up something quickly and not worrying about<span class="Apple-converted-space"> </span><br>the absolute correctness of something that is not critical to the core).<span class="Apple-converted-space"> </span><br>There is also another bug with show calls via webapi in that the generated<span class="Apple-converted-space"> </span><br>HTML has spurious <td> tags. I think the spurious <td> tag bug arises due<span class="Apple-converted-space"> </span><br>to lines 3145-6 in mod/applications/mod_commands/mod_commands.c. Finally,<span class="Apple-converted-space"> </span><br>another bug (or maybe just unimplemented feature) is that xmlapl isn't<span class="Apple-converted-space"> </span><br>really different from webapi.<br><br>These problems occur in the latest source tree (20100301).<br><br>I am wondering if (a) one of the developers can fix these or (b) if I fix<span class="Apple-converted-space"> </span><br>the bugs, how can I submit patches [and if I submit patches, will they be<span class="Apple-converted-space"> </span><br>accepted into the main tree]?<br><br>The fixes are pretty trivial and I'd be happy to code them up if somebody<span class="Apple-converted-space"> </span><br>will tell me how I can submit the patches (haven't done it before).<br></span></blockquote></div><br></div></body></html>