Provides dialog management.
More...
Application MUST initialize the user agent layer module by calling pjsip_ua_init_module() before using any of the dialog API, and link the application with with pjsip-core library.
◆ pjsip_ua_init_module()
Initialize user agent layer and register it to the specified endpoint.
- Parameters
-
endpt | The endpoint where the user agent will be registered. |
prm | UA initialization parameter. |
- Returns
- PJ_SUCCESS on success.
◆ pjsip_ua_instance()
Get the instance of the user agent.
- Returns
- The user agent module instance.
◆ pjsip_ua_get_dlg_set_count()
Retrieve the current number of dialog-set currently registered in the hash table. Note that dialog-set is different than dialog when the request forks. In this case, all dialogs created from the original request will belong to the same dialog set. When no forking occurs, the number of dialog sets will be equal to the number of dialogs.
- Returns
- Number of dialog sets.
◆ pjsip_ua_find_dialog()
Find a dialog with the specified Call-ID and tags properties. This function may optionally lock the matching dialog instance before returning it back to the caller.
- Parameters
-
call_id | The call ID to be matched. |
local_tag | The local tag to be matched. |
remote_tag | The remote tag to be matched. |
lock_dialog | If non-zero, instruct the function to lock the matching dialog with pjsip_dlg_inc_lock(). Application is responsible to release the dialog's lock after it has finished manipulating the dialog, by calling pjsip_dlg_dec_lock(). |
- Returns
- The matching dialog instance, or NULL if no matching dialog is found.
◆ pjsip_ua_destroy()
Destroy the user agent layer.
- Returns
- PJ_SUCCESS on success.
◆ pjsip_ua_dump()
Dump user agent contents (e.g. all dialogs).
- Parameters
-
detail | If non-zero, list of dialogs will be printed. |
◆ pjsip_ua_get_endpt()
Get the endpoint instance of a user agent module.
- Parameters
-
ua | The user agent instance. |
- Returns
- The endpoint instance where the user agent is registered.