
; Receive publications of device state from pbx1

[pbx1]
type=endpoint
transport=transport-udp

[pbx1]
type=inbound-publication
event_asterisk-devicestate=pbx1

[pbx1]
type=asterisk-publication
devicestate_publish=pbx1-devstate
device_state=yes

; Receive publications of device state from pbx2

[pbx2]
type=endpoint
transport=transport-udp

[pbx2]
type=inbound-publication
event_asterisk-devicestate=pbx2

[pbx2]
type=asterisk-publication
devicestate_publish=pbx2-devstate
device_state=yes

; Receive publications of device state from pbx3

[pbx3]
type=endpoint
transport=transport-udp

[pbx3]
type=inbound-publication
event_asterisk-devicestate=pbx3

[pbx3]
type=asterisk-publication
devicestate_publish=pbx3-devstate
device_state=yes


; Publish device state events to our presence server which will distribute them to all other pbxs.
[presence-publish]
type=outbound-publish
server_uri=sip:pbx1@10.71.19.178
from_uri=sip:10.71.19.164
event=asterisk-devicestate

