2
0

amqp.conf.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <configuration name="amqp.conf" description="mod_amqp">
  2. <producers>
  3. <profile name="default">
  4. <connections>
  5. <connection name="primary">
  6. <param name="hostname" value="localhost"/>
  7. <param name="virtualhost" value="/"/>
  8. <param name="username" value="guest"/>
  9. <param name="password" value="guest"/>
  10. <param name="port" value="5673"/>
  11. <param name="heartbeat" value="0"/>
  12. </connection>
  13. <connection name="secondary">
  14. <param name="hostname" value="localhost"/>
  15. <param name="virtualhost" value="/"/>
  16. <param name="username" value="guest"/>
  17. <param name="password" value="guest"/>
  18. <param name="port" value="5672"/>
  19. <param name="heartbeat" value="0"/>
  20. </connection>
  21. </connections>
  22. <params>
  23. <param name="exchange-name" value="TAP.Events"/>
  24. <param name="exchange-type" value="topic"/>
  25. <param name="circuit_breaker_ms" value="10000"/>
  26. <param name="reconnect_interval_ms" value="1000"/>
  27. <param name="send_queue_size" value="5000"/>
  28. <param name="enable_fallback_format_fields" value="1"/>
  29. <!-- The routing key is made from the format string, using the header values in the event specified in the format_fields.-->
  30. <!-- Fields that are prefixed with a # are treated as literals rather than doing a header lookup -->
  31. <param name="format_fields" value="#FreeSWITCH,FreeSWITCH-Hostname,Event-Name,Event-Subclass,Unique-ID"/>
  32. <!-- If enable_fallback_format_fields is enabled, then you can | separate event headers, and if the first does not exist
  33. then the system will check additional configured header values.
  34. -->
  35. <!-- <param name="format_fields" value="#FreeSWITCH,FreeSWITCH-Hostname|#Unknown,Event-Name,Event-Subclass,Unique-ID"/> -->
  36. <!-- <param name="event_filter" value="SWITCH_EVENT_ALL"/> -->
  37. <param name="event_filter" value="SWITCH_EVENT_CHANNEL_CREATE,SWITCH_EVENT_CHANNEL_DESTROY,SWITCH_EVENT_HEARTBEAT,SWITCH_EVENT_DTMF"/>
  38. </params>
  39. </profile>
  40. </producers>
  41. <commands>
  42. <profile name="default">
  43. <connections>
  44. <connection name="primary">
  45. <param name="hostname" value="localhost"/>
  46. <param name="virtualhost" value="/"/>
  47. <param name="username" value="guest"/>
  48. <param name="password" value="guest"/>
  49. <param name="port" value="5672"/>
  50. <param name="heartbeat" value="0"/>
  51. </connection>
  52. </connections>
  53. <params>
  54. <param name="exchange-name" value="TAP.Commands"/>
  55. <param name="binding_key" value="commandBindingKey"/>
  56. <param name="reconnect_interval_ms" value="1000"/>
  57. <param name="queue-passive" value="false"/>
  58. <param name="queue-durable" value="false"/>
  59. <param name="queue-exclusive" value="false"/>
  60. <param name="queue-auto-delete" value="true"/>
  61. </params>
  62. </profile>
  63. </commands>
  64. <logging>
  65. <profile name="default">
  66. <connections>
  67. <connection name="primary">
  68. <param name="hostname" value="localhost"/>
  69. <param name="virtualhost" value="/"/>
  70. <param name="username" value="guest"/>
  71. <param name="password" value="guest"/>
  72. <param name="port" value="5672"/>
  73. <param name="heartbeat" value="0"/>
  74. </connection>
  75. </connections>
  76. <params>
  77. <param name="exchange-name" value="TAP.Logging"/>
  78. <param name="send_queue_size" value="5000"/>
  79. <param name="reconnect_interval_ms" value="1000"/>
  80. <param name="log-levels" value="debug,info,notice,warning,err,crit,alert"/>
  81. </params>
  82. </profile>
  83. </logging>
  84. </configuration>