Module that implements publish and subscribe support.
This configuration documentation is for functionality provided by res_pjsip_pubsub
.
pjsip.conf
subscription_persistence
Persists SIP subscriptions so they survive restarts.
Configuration Option Reference
Option Name |
Type |
Default Value |
Regular Expression |
Description |
---|---|---|---|---|
|
|
|
|
Entire SIP SUBSCRIBE packet that created the subscription |
|
|
|
|
The source address of the subscription |
|
|
|
|
The source port of the subscription |
|
|
|
|
The type of transport the subscription was received on |
|
|
|
|
The local address the subscription was received on |
|
|
|
|
The local port the subscription was received on |
|
|
|
|
The sequence number of the next NOTIFY to be sent |
|
|
|
|
The local tag of the dialog for the subscription |
|
|
|
|
The name of the endpoint that subscribed |
|
|
|
|
The time at which the subscription expires |
resource_list
Resource list configuration parameters.
Configuration Option Reference
Option Name |
Type |
Default Value |
Regular Expression |
Description |
---|---|---|---|---|
|
|
|
|
Must be of type 'resource_list' |
|
|
|
The SIP event package that the list resource belong to. |
|
|
|
|
The name of a resource to report state on |
|
|
|
|
Indicates if the entire list's state should be sent out. |
|
|
|
|
Time Asterisk should wait, in milliseconds, before sending notifications. |
Configuration Option Descriptions
event
The SIP event package describes the types of resources that Asterisk reports the state of.
presence
- Device state and presence reporting.message-summary
- Message-waiting indication (MWI) reporting.
list_item
In general Asterisk looks up list items in the following way:
1. Check if the list item refers to another configured resource list.
2. Pass the name of the resource off to event-package-specific handlers to find the specified resource.
The second part means that the way the list item is specified depends on what type of list this is. For instance, if you have the event set to presence
, then list items should be in the form of dialplan_extension@dialplan_context. For message-summary
mailbox names should be listed.
full_state
If this option is enabled, and a resource changes state, then Asterisk will construct a notification that contains the state of all resources in the list. If the option is disabled, Asterisk will construct a notification that only contains the states of resources that have changed.
notification_batch_interval
When a resource's state changes, it may be desired to wait a certain amount before Asterisk sends a notification to subscribers. This allows for other state changes to accumulate, so that Asterisk can communicate multiple state changes in a single notification instead of rapidly sending many notifications.
inbound-publication
The configuration for inbound publications
Configuration Option Reference
Option Name |
Type |
Default Value |
Regular Expression |
Description |
---|---|---|---|---|
|
|
|
|
Optional name of an endpoint that is only allowed to publish to this resource |
|
|
|
|
Must be of type 'inbound-publication'. |
Import Version
This documentation was imported from Asterisk Version SVN-branch-13-r420538