Home --> Documentations --> PJSIP Reference
Method names and manipulation.
More...
◆ pjsip_method_e
This enumeration declares SIP methods as described by RFC3261. Additional methods do exist, and they are described by corresponding RFCs for the SIP extentensions. Since they won't alter the characteristic of the processing of the message, they don't need to be explicitly mentioned here.
Enumerator |
---|
PJSIP_INVITE_METHOD | INVITE method, for establishing dialogs.
|
PJSIP_CANCEL_METHOD | CANCEL method, for cancelling request.
|
PJSIP_ACK_METHOD | ACK method.
|
PJSIP_BYE_METHOD | BYE method, for terminating dialog.
|
PJSIP_REGISTER_METHOD | REGISTER method.
|
PJSIP_OPTIONS_METHOD | OPTIONS method.
|
PJSIP_OTHER_METHOD | Other method.
|
◆ pjsip_get_invite_method()
Get INVITE method constant.
◆ pjsip_get_cancel_method()
Get CANCEL method constant.
◆ pjsip_get_ack_method()
◆ pjsip_get_bye_method()
◆ pjsip_get_register_method()
Get REGISTER method constant.
◆ pjsip_get_options_method()
Get OPTIONS method constant.
◆ pjsip_method_init()
Initialize the method structure from a string. This function will check whether the method is a known method then set both the id and name accordingly.
- Parameters
-
m | The method to initialize. |
pool | Pool where memory allocation will be allocated from, if required. |
str | The method string. |
◆ pjsip_method_init_np()
Initialize the method structure from a string, without cloning the string. See pjsip_method_init.
- Parameters
-
m | The method structure to be initialized. |
str | The method string. |
◆ pjsip_method_set()
Set the method with the predefined method ID. This function will also set the name member of the structure to the correct string according to the method.
- Parameters
-
m | The method structure. |
id | The method ID. |
◆ pjsip_method_copy()
Copy one method structure to another. If the method is of the known methods, then memory allocation is not required.
- Parameters
-
pool | Pool to allocate memory from, if required. |
method | The destination method to copy to. |
rhs | The source method to copy from. |
◆ pjsip_method_cmp()
Compare one method with another, and conveniently determine whether the first method is equal, less than, or greater than the second method.
- Parameters
-
m1 | The first method. |
m2 | The second method. |
- Returns
- Zero if equal, otherwise will return -1 if less or +1 if greater.
◆ pjsip_invite_method
◆ pjsip_cancel_method
◆ pjsip_ack_method
◆ pjsip_bye_method
◆ pjsip_register_method
◆ pjsip_options_method
PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.
|