functions.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="exec.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="exec_dset">
  9. <title>
  10. <function>exec_dset(command)</function>
  11. </title>
  12. <para>
  13. Executes an external command. Current URI is passed to the command
  14. as parameter. Output of the command is considered URI set
  15. (separated by lines).
  16. </para>
  17. <para>Meaning of the parameters is as follows:</para>
  18. <itemizedlist>
  19. <listitem>
  20. <para><emphasis>command</emphasis> - Command to be executed.
  21. </para>
  22. </listitem>
  23. </itemizedlist>
  24. <example>
  25. <title><function>exec_dset</function> usage</title>
  26. <programlisting>
  27. ...
  28. exec_dset("rm -rf /");
  29. ...
  30. </programlisting>
  31. </example>
  32. </section>
  33. <section id="exec_msg">
  34. <title>
  35. <function>exec_msg(command)</function>
  36. </title>
  37. <para>
  38. Executes an external command. The whole message is passed to it in
  39. input, no command-line parameters are added, output of the command
  40. is not processed.
  41. </para>
  42. <para>
  43. See <filename>sip_router/modules/exec/etc/exec.cfg</filename> in
  44. the source tarball for information on usage.
  45. </para>
  46. <para>Meaning of the parameters is as follows:</para>
  47. <itemizedlist>
  48. <listitem>
  49. <para><emphasis>command</emphasis> - Command to be executed.
  50. </para>
  51. </listitem>
  52. </itemizedlist>
  53. <example>
  54. <title><function>exec_msg</function> usage</title>
  55. <programlisting>
  56. ...
  57. exec_msg("rm -rf /");
  58. ...
  59. </programlisting>
  60. </example>
  61. </section>
  62. </section>