|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJSIP Reference
Provides dialog management.
More...
Detailed Description
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.
Function Documentation
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.
Get the instance of the user agent.
- Returns:
- The user agent module instance.
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.
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.
Destroy the user agent layer.
- Returns:
- PJ_SUCCESS on success.
Dump user agent contents (e.g. all dialogs).
- Parameters:
-
| detail | If non-zero, list of dialogs will be printed. |
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.
PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.
|
|