o Juha Heinanen on 06/04/2011 08:34 PM:
question:  it is somehow possible to execute the same commands without
xmlrpc using sems-stat utility?

i found the answer myself.  for example, sems-sbc-get-activeprofile can
be executed like this:

# sems-stats -c "DI sbc getActiveProfile"
sending 'DI sbc getActiveProfile\n' to 127.0.0.1:5040
received:
[200, 'OK', {'active_profile': ['$(paramhdr)']}]#

note that stats uses UDP transport; being unreliable means that
- if either packet gets lost, the sems-stats utility may hang (problemantic e.g. if used from scripted environment). in that case it is not clear whether function was executed or not - with large responses, fragmentation may occur and you may receive only part of it
also
- nested structures are not supported as parameters or results


it also shows a small bug: there is no crlf after the resposne.
fixed.

Stefan
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to