| 12 | '''Telnet interface''' |
| 13 | - will provide interface exactly the same as console interface on desktop |
| 14 | - may provide different logging level for each client |
| 15 | |
| 16 | '''Command specification''' |
| 17 | |
| 18 | The command specification includes: |
| 19 | - Definition in an xml file |
| 20 | - Command/argument name |
| 21 | - Command/argument id |
| 22 | - Argument data type (int, string, choice) |
| 23 | - Argument mandatory type (optional/mandatory) |
| 24 | - Text description (to show in help screen) |
| 25 | - Each command could contain argument list or other command |
| 26 | - Callback handler |
| 27 | |
| 28 | XML example of a command specification: |
| 29 | {{{ |
| 30 | <CMD name='vid' id='0' desc=""> |
| 31 | <CMD name='help' id='0' desc='' /> |
| 32 | <CMD name='enable' id='0' desc='' /> |
| 33 | <CMD name='disable' id='0' desc='' /> |
| 34 | <CMD name='call' id='0' desc='' > |
| 35 | <CMD name='add' id='101' desc='...' /> |
| 36 | <CMD name='cap' id='102' desc='...' > |
| 37 | <ARG name='streamno' type='int' desc='...' id='1'/> |
| 38 | <ARG name='devid' type='int' optional='1' id='2'/> |
| 39 | </CMD> |
| 40 | </CMD> |
| 41 | </CMD> |
| 42 | <CMD name='disable_codec' id=0 desc=""> |
| 43 | <ARG name='codec_list' type='choice' id='3'> |
| 44 | <CHOICE value='g711'/> |
| 45 | <CHOICE value='g722'/> |
| 46 | </ARG> |
| 47 | </CMD> |
| 48 | }}} |