Asterisk-13-Configuration_res_pjsip_pubsub_29394799.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Configuration_res_pjsip_pubsub</title>
  5. <link rel="stylesheet" href="styles/site.css" type="text/css" />
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. </head>
  8. <body class="theme-default aui-theme-default">
  9. <div id="page">
  10. <div id="main" class="aui-page-panel">
  11. <div id="main-header">
  12. <div id="breadcrumb-section">
  13. <ol id="breadcrumbs">
  14. <li class="first">
  15. <span><a href="index.html">Asterisk Project</a></span>
  16. </li>
  17. <li>
  18. <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
  19. </li>
  20. <li>
  21. <span><a href="Asterisk-13-Module-Configuration_29394289.html">Asterisk 13 Module Configuration</a></span>
  22. </li>
  23. </ol>
  24. </div>
  25. <h1 id="title-heading" class="pagetitle">
  26. <span id="title-text">
  27. Asterisk Project : Asterisk 13 Configuration_res_pjsip_pubsub
  28. </span>
  29. </h1>
  30. </div>
  31. <div id="content" class="view">
  32. <div class="page-metadata">
  33. Created by <span class='author'> wikibot</span> on Aug 08, 2014
  34. </div>
  35. <div id="main-content" class="wiki-content group">
  36. <h1 id="Asterisk13Configuration_res_pjsip_pubsub-Modulethatimplementspublishandsubscribesupport.">Module that implements publish and subscribe support.</h1>
  37. <p>This configuration documentation is for functionality provided by <code>res_pjsip_pubsub</code>.</p>
  38. <h2 id="Asterisk13Configuration_res_pjsip_pubsub-pjsip.conf">pjsip.conf</h2>
  39. <h3 id="Asterisk13Configuration_res_pjsip_pubsub-subscription_persistence">subscription_persistence</h3>
  40. <p>Persists SIP subscriptions so they survive restarts.</p>
  41. <h4 id="Asterisk13Configuration_res_pjsip_pubsub-ConfigurationOptionReference">Configuration Option Reference</h4>
  42. <div class="table-wrap"><table class="confluenceTable"><tbody>
  43. <tr>
  44. <th class="confluenceTh"><p> Option Name </p></th>
  45. <th class="confluenceTh"><p> Type </p></th>
  46. <th class="confluenceTh"><p> Default Value </p></th>
  47. <th class="confluenceTh"><p> Regular Expression </p></th>
  48. <th class="confluenceTh"><p> Description </p></th>
  49. </tr>
  50. <tr>
  51. <td class="confluenceTd"><p> <code>packet</code> </p></td>
  52. <td class="confluenceTd"><p> <code>String</code> </p></td>
  53. <td class="confluenceTd"><p> </p></td>
  54. <td class="confluenceTd"><p> <code>false</code> </p></td>
  55. <td class="confluenceTd"><p> Entire SIP SUBSCRIBE packet that created the subscription </p></td>
  56. </tr>
  57. <tr>
  58. <td class="confluenceTd"><p> <code>src_name</code> </p></td>
  59. <td class="confluenceTd"><p> <code>String</code> </p></td>
  60. <td class="confluenceTd"><p> </p></td>
  61. <td class="confluenceTd"><p> <code>false</code> </p></td>
  62. <td class="confluenceTd"><p> The source address of the subscription </p></td>
  63. </tr>
  64. <tr>
  65. <td class="confluenceTd"><p> <code>src_port</code> </p></td>
  66. <td class="confluenceTd"><p> <code>Unsigned Integer</code> </p></td>
  67. <td class="confluenceTd"><p> <code>0</code> </p></td>
  68. <td class="confluenceTd"><p> <code>false</code> </p></td>
  69. <td class="confluenceTd"><p> The source port of the subscription </p></td>
  70. </tr>
  71. <tr>
  72. <td class="confluenceTd"><p> <code>transport_key</code> </p></td>
  73. <td class="confluenceTd"><p> <code>String</code> </p></td>
  74. <td class="confluenceTd"><p> <code>0</code> </p></td>
  75. <td class="confluenceTd"><p> <code>false</code> </p></td>
  76. <td class="confluenceTd"><p> The type of transport the subscription was received on </p></td>
  77. </tr>
  78. <tr>
  79. <td class="confluenceTd"><p> <code>local_name</code> </p></td>
  80. <td class="confluenceTd"><p> <code>String</code> </p></td>
  81. <td class="confluenceTd"><p> </p></td>
  82. <td class="confluenceTd"><p> <code>false</code> </p></td>
  83. <td class="confluenceTd"><p> The local address the subscription was received on </p></td>
  84. </tr>
  85. <tr>
  86. <td class="confluenceTd"><p> <code>local_port</code> </p></td>
  87. <td class="confluenceTd"><p> <code>Unsigned Integer</code> </p></td>
  88. <td class="confluenceTd"><p> <code>0</code> </p></td>
  89. <td class="confluenceTd"><p> <code>false</code> </p></td>
  90. <td class="confluenceTd"><p> The local port the subscription was received on </p></td>
  91. </tr>
  92. <tr>
  93. <td class="confluenceTd"><p> <code>cseq</code> </p></td>
  94. <td class="confluenceTd"><p> <code>Unsigned Integer</code> </p></td>
  95. <td class="confluenceTd"><p> <code>0</code> </p></td>
  96. <td class="confluenceTd"><p> <code>false</code> </p></td>
  97. <td class="confluenceTd"><p> The sequence number of the next NOTIFY to be sent </p></td>
  98. </tr>
  99. <tr>
  100. <td class="confluenceTd"><p> <code>tag</code> </p></td>
  101. <td class="confluenceTd"><p> <code>Custom</code> </p></td>
  102. <td class="confluenceTd"><p> </p></td>
  103. <td class="confluenceTd"><p> <code>false</code> </p></td>
  104. <td class="confluenceTd"><p> The local tag of the dialog for the subscription </p></td>
  105. </tr>
  106. <tr>
  107. <td class="confluenceTd"><p> <code>endpoint</code> </p></td>
  108. <td class="confluenceTd"><p> <code>Custom</code> </p></td>
  109. <td class="confluenceTd"><p> </p></td>
  110. <td class="confluenceTd"><p> <code>false</code> </p></td>
  111. <td class="confluenceTd"><p> The name of the endpoint that subscribed </p></td>
  112. </tr>
  113. <tr>
  114. <td class="confluenceTd"><p> <code>expires</code> </p></td>
  115. <td class="confluenceTd"><p> <code>Custom</code> </p></td>
  116. <td class="confluenceTd"><p> </p></td>
  117. <td class="confluenceTd"><p> <code>false</code> </p></td>
  118. <td class="confluenceTd"><p> The time at which the subscription expires </p></td>
  119. </tr>
  120. </tbody></table></div>
  121. <h3 id="Asterisk13Configuration_res_pjsip_pubsub-resource_list">resource_list</h3>
  122. <p>Resource list configuration parameters.</p>
  123. <h4 id="Asterisk13Configuration_res_pjsip_pubsub-ConfigurationOptionReference.1">Configuration Option Reference</h4>
  124. <div class="table-wrap"><table class="confluenceTable"><tbody>
  125. <tr>
  126. <th class="confluenceTh"><p> Option Name </p></th>
  127. <th class="confluenceTh"><p> Type </p></th>
  128. <th class="confluenceTh"><p> Default Value </p></th>
  129. <th class="confluenceTh"><p> Regular Expression </p></th>
  130. <th class="confluenceTh"><p> Description </p></th>
  131. </tr>
  132. <tr>
  133. <td class="confluenceTd"><p> <code>type</code> </p></td>
  134. <td class="confluenceTd"><p> <code>None</code> </p></td>
  135. <td class="confluenceTd"><p> </p></td>
  136. <td class="confluenceTd"><p> <code>false</code> </p></td>
  137. <td class="confluenceTd"><p> Must be of type 'resource_list' </p></td>
  138. </tr>
  139. <tr>
  140. <td class="confluenceTd"><p> <a href="Asterisk-13-Configuration_res_pjsip_pubsub_29394799.html"><code>event</code></a> </p></td>
  141. <td class="confluenceTd"><p> <code>String</code> </p></td>
  142. <td class="confluenceTd"><p> </p></td>
  143. <td class="confluenceTd"><p> <code>false</code> </p></td>
  144. <td class="confluenceTd"><p> The SIP event package that the list resource belong to. </p></td>
  145. </tr>
  146. <tr>
  147. <td class="confluenceTd"><p> <a href="Asterisk-13-Configuration_res_pjsip_pubsub_29394799.html"><code>list_item</code></a> </p></td>
  148. <td class="confluenceTd"><p> <code>Custom</code> </p></td>
  149. <td class="confluenceTd"><p> </p></td>
  150. <td class="confluenceTd"><p> <code>false</code> </p></td>
  151. <td class="confluenceTd"><p> The name of a resource to report state on </p></td>
  152. </tr>
  153. <tr>
  154. <td class="confluenceTd"><p> <a href="Asterisk-13-Configuration_res_pjsip_pubsub_29394799.html"><code>full_state</code></a> </p></td>
  155. <td class="confluenceTd"><p> <code>Boolean</code> </p></td>
  156. <td class="confluenceTd"><p> <code>no</code> </p></td>
  157. <td class="confluenceTd"><p> <code>false</code> </p></td>
  158. <td class="confluenceTd"><p> Indicates if the entire list's state should be sent out. </p></td>
  159. </tr>
  160. <tr>
  161. <td class="confluenceTd"><p> <a href="Asterisk-13-Configuration_res_pjsip_pubsub_29394799.html"><code>notification_batch_interval</code></a> </p></td>
  162. <td class="confluenceTd"><p> <code>Unsigned Integer</code> </p></td>
  163. <td class="confluenceTd"><p> <code>0</code> </p></td>
  164. <td class="confluenceTd"><p> <code>false</code> </p></td>
  165. <td class="confluenceTd"><p> Time Asterisk should wait, in milliseconds, before sending notifications. </p></td>
  166. </tr>
  167. </tbody></table></div>
  168. <h4 id="Asterisk13Configuration_res_pjsip_pubsub-ConfigurationOptionDescriptions">Configuration Option Descriptions</h4>
  169. <p><span class="confluence-anchor-link" id="Asterisk13Configuration_res_pjsip_pubsub-resource_list_event"></span></p>
  170. <h5 id="Asterisk13Configuration_res_pjsip_pubsub-event">event</h5>
  171. <p>The SIP event package describes the types of resources that Asterisk reports the state of.</p>
  172. <ul>
  173. <li><code>presence</code> - Device state and presence reporting.</li>
  174. <li><code>message-summary</code> - Message-waiting indication (MWI) reporting.</li>
  175. </ul>
  176. <p><span class="confluence-anchor-link" id="Asterisk13Configuration_res_pjsip_pubsub-resource_list_list_item"></span></p>
  177. <h5 id="Asterisk13Configuration_res_pjsip_pubsub-list_item">list_item</h5>
  178. <p>In general Asterisk looks up list items in the following way:</p>
  179. <p>1. Check if the list item refers to another configured resource list.</p>
  180. <p>2. Pass the name of the resource off to event-package-specific handlers to find the specified resource.</p>
  181. <p>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 <em>event</em> set to <code>presence</code>, then list items should be in the form of dialplan_extension@dialplan_context. For <code>message-summary</code> mailbox names should be listed.</p>
  182. <p><span class="confluence-anchor-link" id="Asterisk13Configuration_res_pjsip_pubsub-resource_list_full_state"></span></p>
  183. <h5 id="Asterisk13Configuration_res_pjsip_pubsub-full_state">full_state</h5>
  184. <p>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.</p>
  185. <div class="aui-message hint shadowed information-macro">
  186. <p class="title">Note</p>
  187. <span class="aui-icon icon-hint">Icon</span>
  188. <div class="message-content">
  189. <p>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.</p>
  190. </div>
  191. </div>
  192. <p><span class="confluence-anchor-link" id="Asterisk13Configuration_res_pjsip_pubsub-resource_list_notification_batch_interval"></span></p>
  193. <h5 id="Asterisk13Configuration_res_pjsip_pubsub-notification_batch_interval">notification_batch_interval</h5>
  194. <p>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.</p>
  195. <h3 id="Asterisk13Configuration_res_pjsip_pubsub-inbound-publication">inbound-publication</h3>
  196. <p>The configuration for inbound publications</p>
  197. <h4 id="Asterisk13Configuration_res_pjsip_pubsub-ConfigurationOptionReference.2">Configuration Option Reference</h4>
  198. <div class="table-wrap"><table class="confluenceTable"><tbody>
  199. <tr>
  200. <th class="confluenceTh"><p> Option Name </p></th>
  201. <th class="confluenceTh"><p> Type </p></th>
  202. <th class="confluenceTh"><p> Default Value </p></th>
  203. <th class="confluenceTh"><p> Regular Expression </p></th>
  204. <th class="confluenceTh"><p> Description </p></th>
  205. </tr>
  206. <tr>
  207. <td class="confluenceTd"><p> <code>endpoint</code> </p></td>
  208. <td class="confluenceTd"><p> <code>Custom</code> </p></td>
  209. <td class="confluenceTd"><p> </p></td>
  210. <td class="confluenceTd"><p> <code>false</code> </p></td>
  211. <td class="confluenceTd"><p> Optional name of an endpoint that is only allowed to publish to this resource </p></td>
  212. </tr>
  213. <tr>
  214. <td class="confluenceTd"><p> <code>type</code> </p></td>
  215. <td class="confluenceTd"><p> <code>None</code> </p></td>
  216. <td class="confluenceTd"><p> </p></td>
  217. <td class="confluenceTd"><p> <code>false</code> </p></td>
  218. <td class="confluenceTd"><p> Must be of type 'inbound-publication'. </p></td>
  219. </tr>
  220. </tbody></table></div>
  221. <h3 id="Asterisk13Configuration_res_pjsip_pubsub-ImportVersion">Import Version</h3>
  222. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  223. </div>
  224. </div> </div>
  225. <div id="footer">
  226. <section class="footer-body">
  227. <p>Document generated by Confluence on Aug 11, 2014 13:49</p>
  228. </section>
  229. </div>
  230. </div> </body>
  231. </html>