RFC 3265 - Session Initiation Protocol (SIP)-Specific Event Notification
- 透過 SIP SUBSCRIBE 訂閱特定事件的 SIP NOTIFY 通知,包括基於 terminal state 的 automatic callback services、用戶是否上線的 buddy lists、是否有留言的 message waiting indications、基於呼叫狀態的 PSTN and Internet Internetworking (PINT)、BLF 等。
- 典型的訊息流程:
- Subscriber Notifier |-----SUBSCRIBE---->| 訂閱 |<-------200--------| 訂閱確認 |<------NOTIFY----- | 立刻狀態通知 |--------200------->| |<------NOTIFY----- | 之後的狀態改變通知 |--------200------->|
- SUBSCRIBE 訊息
- URI:對象
- Expires:訂閱期間。類似 REGISTER,如果要持續訂閱,再到期前要再 SUBSCRIBE
- 沒有時的預設
- 不能用 Contact 的 expires 替代 (為什麼要這麼訂?)
- 0 表示停止訂閱,其附帶的立刻狀態通知 NOTIFY 的 Subscription-State 會是「terminated」、「reason」會是「timeout」。也可以用來作為 polling 方式的狀態通知。
- Event:要 subscribe 的事件,This token will be registered with the IANA and will correspond to an event package which further describes the semantics of the event or event class.
- NOTIFY message