Home --> Documentations --> PJSIP Reference
SIP Session Timers support (RFC 4028 - Session Timers in SIP)
More...
References
References:
◆ pjsip_timer
Opaque declaration of Session Timers.
◆ pjsip_timer_init_module()
Initialize Session Timers module. This function must be called once during application initialization, to register this module to SIP endpoint.
- Parameters
-
endpt | The SIP endpoint instance. |
- Returns
- PJ_SUCCESS if module is successfully initialized.
◆ pjsip_timer_setting_default()
Initialize Session Timers setting with default values.
- Parameters
-
setting | Session Timers setting to be initialized. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_init_session()
Initialize Session Timers for an invite session. This function should be called by application to apply Session Timers setting, otherwise invite session will apply default setting to the Session Timers.
- Parameters
-
inv | The invite session. |
setting | Session Timers setting, see pjsip_timer_setting. If setting is NULL, default setting will be applied. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_sess_expires_hdr_create()
Create Session-Expires header.
- Parameters
-
pool | Pool to allocate the header instance from. |
- Returns
- An empty Session-Expires header instance.
◆ pjsip_min_se_hdr_create()
Create Min-SE header.
- Parameters
-
pool | Pool to allocate the header instance from. |
- Returns
- An empty Min-SE header instance.
◆ pjsip_timer_update_req()
Update outgoing request to insert Session Timers headers and also signal Session Timers capability in Supported and/or Require headers.
This function will be called internally by the invite session if it detects that the session needs Session Timers support.
- Parameters
-
inv | The invite session. |
tdata | Outgoing INVITE or UPDATE request. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_process_resp()
Process Session Timers headers in incoming response, this function will only process incoming response with status code 422 (Session Interval Too Small) or 2xx (final response).
This function will be called internally by the invite session if it detects that the session needs Session Timers support.
- Parameters
-
inv | The invite session. |
rdata | Incoming response data. |
st_code | Output buffer to store corresponding SIP status code when function returning non-PJ_SUCCESS. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_handle_refresh_error()
Process Session Timers refresh error, this function will process error from refresh request. The error will be handle according the error code, i.e : BYE will be sent after error 503 (Transport Error).
- Parameters
-
inv | The invite session. |
event | The event that trigger the error. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_process_req()
Process Session Timers headers in incoming request, this function will only process incoming INVITE and UPDATE request.
This function will be called internally by the invite session if it detects that the session needs Session Timers support.
- Parameters
-
inv | The invite session. |
rdata | Incoming INVITE or UPDATE request. |
st_code | Output buffer to store corresponding SIP status code when function returning non-PJ_SUCCESS. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_update_resp()
Update outgoing response to insert Session Timers headers and also signal Session Timers capability in Supported and/or Require headers. This function will only update outgoing response with status code 422 (Session Interval Too Small) or 2xx (final response).
This function will be called internally by the invite session if it detects that the session needs Session Timers support.
- Parameters
-
inv | The invite session. |
tdata | Outgoing 422/2xx response. |
- Returns
- PJ_SUCCESS on successful.
◆ pjsip_timer_end_session()
End Session Timers in an invite session.
This function will be called internally by the invite session if it detects that the session needs Session Timers support.
- Parameters
-
- Returns
- PJ_SUCCESS on successful.
References PJ_END_DECL.
PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.
|