forked from resiprocate/resiprocate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_AMQP_Apache_Qpid_Proton.txt
96 lines (61 loc) · 2.36 KB
/
README_AMQP_Apache_Qpid_Proton.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
We have started introducing support for AMQP messaging.
AMQP allows us to send notifications about events to other
applications on topics and to receive notifications and commands
over queues.
Maintainer
----------
Daniel Pocock
daniel@pocock.pro
https://softwarefreedom.institute
Dependencies
------------
Apache Qpid Proton C++
Version tested: 0.22.0
License: Apache 2.0
Apache Qpid Proton Python (optional, for testing)
Version tested: 0.22.0
RabbitMQ (optional, can use other brokers too)
Version tested: 3.8.9
Installing dependencies and compiling reSIProcate with Qpid Proton
------------------------------------------------------------------
Debian / Ubuntu:
sudo apt install \
libqpid-proton11-dev \
libqpid-proton-cpp11-dev
./configure ... --with-qpid-proton ...
RPM:
sudo dnf install qpid-proton-cpp-devel
./configure ... --with-qpid-proton ...
Installing and configuring RabbitMQ
-----------------------------------
Debian / Ubuntu:
sudo apt install rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_amqp1_0
sudo systemctl restart rabbitmq-server
RPM:
sudo dnf install rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_amqp1_0
sudo systemctl restart rabbitmq-server
Installing and using the Python command line utilities
------------------------------------------------------
Debian / Ubuntu:
sudo apt install python3-qpid-proton
RPM:
sudo dnf install python-qpid
Example sending a JSON command to reConServer:
Uncomment the BrokerURL in reConServer.config or any of the other
reSIProcate applications, repro.config, registrationAgent.config, ...
BrokerURL = amqp://localhost:5672//queue/sip.reconserver.cmd
(re)start the reConServer
Send the command:
./tools/send-cmd.py \
-a localhost:5672/sip.reconserver.cmd \
-m '{"command":"inviteToRoom","arguments":{"destination":"sip:cisco@10.1.2.3?transport=tcp","room":"room1"}}'
Example receiving messages from the reConServer queue or topic:
Uncomment the EventTopicURL in reConServer.config or any of the other
reSIProcate applications, repro.config, registrationAgent.config, ...
EventTopicURL = amqp://localhost:5672//queue/sip.reconserver.events
(re)start the reConServer
Run the utility in the console, messages appear on stdout:
./tools/monitor-amqp-queue-topic.py \
-a localhost:5672//queue/sip.reconserver.events