rpc.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!-- Include general documentation entities -->
  5. <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
  6. %docentities;
  7. ]>
  8. <section id="ctl.rpcs" xmlns:xi="http://www.w3.org/2001/XInclude">
  9. <sectioninfo>
  10. <revhistory>
  11. <revision>
  12. <revnumber>$Revision$</revnumber>
  13. <date>$Date$</date>
  14. </revision>
  15. </revhistory>
  16. </sectioninfo>
  17. <title>SIP-router RPC Functions</title>
  18. <section id="ctl.listen">
  19. <title> <function>ctl.listen</function></title>
  20. <para>
  21. List all the sockets on which the ctl module listens.
  22. </para>
  23. <example>
  24. <title><function>print</function> usage</title>
  25. <programlisting>
  26. $ &sercmd; -f"[%v] %v:%v %v\n" ctl.listen
  27. [binrpc] unix_stream:/tmp/&ctlsocket;
  28. # note: the above command is equivalent with &sercmd; listen
  29. </programlisting>
  30. </example>
  31. </section>
  32. <section id="ctl.connections">
  33. <title> <function>ctl.connections</function></title>
  34. <para>
  35. Returns the number of open binrpc connections (to the ctl module).
  36. </para>
  37. <example>
  38. <title><function>ctl.connections</function> usage</title>
  39. <programlisting>
  40. $ &sercmd; ctl.connections
  41. 1
  42. </programlisting>
  43. </example>
  44. </section>
  45. <section id="ctl.who">
  46. <title> <function>ctl.who</function></title>
  47. <para>
  48. List open binrpc connections (to the ctl module).
  49. </para>
  50. <example>
  51. <title><function>ctl.who</function> usage</title>
  52. <programlisting>
  53. $ &sercmd; -f"[%v] %v: %v %v -> %v %v\n" ctl.who
  54. [binrpc] unix_stream: &lt;anonymous unix socket&gt; -> /tmp/&ctlsocket;
  55. # note the above command is equivalent to &sercmd; who
  56. </programlisting>
  57. </example>
  58. </section>
  59. </section>