res_pjsip_pubsub

Since 13.0.0 Module Configuration Found this useful? Upvote it. ×

Module that implements publish and subscribe support.

Last reviewed 2026-04-14

Description

pjsip.conf

[subscription_persistence]

Persists SIP subscriptions so they survive restarts.

  • packet - Entire SIP SUBSCRIBE packet that created the subscription
  • src_name - The source address of the subscription
  • src_port - The source port of the subscription
  • transport_key - The type of transport the subscription was received on
  • local_name - The local address the subscription was received on
  • local_port - The local port the subscription was received on
  • cseq - The sequence number of the next NOTIFY to be sent
  • tag - The local tag of the dialog for the subscription
  • endpoint - The name of the endpoint that subscribed
  • expires - The time at which the subscription expires
  • contact_uri - The Contact URI of the dialog for the subscription
  • prune_on_boot - If set, indicates that the contact used a reliable transport and therefore the subscription must be deleted after an asterisk restart.
  • generator_data - If set, contains persistence data for all generators of content for the subscription.
[resource_list]

Resource list configuration parameters.

  • type - Must be of type 'resource_list'
  • event - The SIP event package that the list resource belong to.
  • list_item - The name of a resource to report state on
  • full_state - Indicates if the entire list's state should be sent out.

    Note

    Even with this option disabled, there are certain situations where Asterisk is forced to send a notification with the states of all resources in the list. When a subscriber renews or terminates its subscription to the list, Asterisk MUST send a full state notification.

  • notification_batch_interval - Time Asterisk should wait, in milliseconds, before sending notifications.

  • resource_display_name - Indicates whether display name of resource or the resource name being reported.
[inbound-publication]

The configuration for inbound publications

  • endpoint - Optional name of an endpoint that is only allowed to publish to this resource
  • type - Must be of type 'inbound-publication'.

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.