SIP registrar module - SIP message related functions.
More...
#include "../../qvalue.h"
#include "../../parser/msg_parser.h"
#include "../../parser/contact/parse_contact.h"
Go to the source code of this file.
Functions
- void calc_contact_expires (struct sip_msg *_m, param_t *_ep, int *_e)
- Calculate absolute expires value per contact as follows: 1) If the contact has expires value, use the value.
-
int calc_contact_q (param_t *_q, qvalue_t *_r)
- Calculate contact q value as follows: 1) If q parameter exist, use it 2) If the parameter doesn't exist, use default value.
-
int check_contacts (struct sip_msg *_m, int *_s)
- Check if the originating REGISTER message was formed correctly The whole message must be parsed before calling the function _s indicates whether the contact was star.
-
contact_t * get_first_contact (struct sip_msg *_m)
- Get the first contact in message.
-
contact_t * get_next_contact (contact_t *_c)
- Get next contact in message.
-
int parse_message (struct sip_msg *_m)
- Parse the whole message and bodies of all header fields that will be needed by registrar.
Detailed Description
Definition in file k/registrar/sip_msg.h.
Function Documentation
| void calc_contact_expires |
( |
struct sip_msg * |
_m, |
|
|
param_t * |
_ep, |
|
|
int * |
_e | |
|
) |
| | |