Remote BLF's using PJSIP - filtering events

How to filter events?

To filter outbound events use @device_state_filter in type=outbound-publish configuration.

[instance1-devicestate]
type=outbound-publish
server_uri=sip:[email protected]
event=asterisk-devicestate
@device_state_filter=^PJSIP/1000    ;Send only ext 1000 events.

To filter inbound events use device_state_filter in type=asterisk-publication configuration.

[instance1]
type=asterisk-publication
devicestate_publish=instance1-devicestate
device_state=yes
device_state_filter=^PJSIP/2000    ;Accept only ext 2000 events.

Required fwconsole restart.

@body, @contex (and @exten) shown in wiki does not work with asterisk-devicestate or I failed to get it to work.

https://wiki.freepbx.org/display/FDT/Remote+BLF's+using+PJSIP

1 Like