Functions

k/registrar/sip_msg.c File Reference

SIP registrar module - SIP message related functions. More...

#include "../../parser/hf.h"
#include "../../dprint.h"
#include "../../parser/parse_expires.h"
#include "../../ut.h"
#include "../../qvalue.h"
#include "reg_mod.h"
#include "regtime.h"
#include "rerrno.h"
#include "sip_msg.h"
#include "config.h"
#include <stdlib.h>
Include dependency graph for k/registrar/sip_msg.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file k/registrar/sip_msg.c.


Function Documentation

void calc_contact_expires ( struct sip_msg _m,
param_t _ep,
int *  _e 
)

If it is not zero, add actual time to it 2) If the contact has no expires parameter, use expires header field in the same way 3) If the message contained no expires header field, use the default value

Definition at line 248 of file k/registrar/sip_msg.c.

Referenced by insert_contacts(), and update_contacts().

Here is the caller graph for this function:

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.

Definition at line 275 of file k/registrar/sip_msg.c.

Referenced by pack_ci().

Here is the caller graph for this function: