Functions

lvalue.c File Reference

SIP-router core :: lvalues (assignment)Module: SIP-router core. More...

#include "lvalue.h"
#include "dprint.h"
#include "route.h"
Include dependency graph for lvalue.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file lvalue.c.


Function Documentation

int lval_assign ( struct run_act_ctx *  h,
struct sip_msg msg,
struct lvalue *  lv,
struct rval_expr *  rve 
)
Parameters:
h - script context
msg - sip msg
lv - lvalue
rve - rvalue expression
Returns:
>= 0 on success (expr. bool value), -1 on error

Definition at line 378 of file lvalue.c.

References lval_avp_assign(), lval_pvar_assign(), rval_destroy(), and rval_expr_eval().

Here is the call graph for this function:

static int lval_avp_assign ( struct run_act_ctx *  h,
struct sip_msg msg,
struct lvalue *  lv,
struct rvalue *  rv 
) [inline, static]

eval rve and assign the result to an avp, lv->lv.avp=eval(rve) based on do_action() ASSIGN_T.

Parameters:
h - script context
msg - sip msg
lv - lvalue
rv - rvalue expression
Returns:
>= 0 on success (expr. bool value), -1 on error

Definition at line 52 of file lvalue.c.

References run_actions_safe().

Referenced by lval_assign().

Here is the call graph for this function:

Here is the caller graph for this function:

static int lval_pvar_assign ( struct run_act_ctx *  h,
struct sip_msg msg,
struct lvalue *  lv,
struct rvalue *  rv 
) [inline, static]

eval rve and assign the result to a pvar, lv->lv.pvar=eval(rve) based on do_action() ASSIGN_T.

Parameters:
h - script context
msg - sip msg
lv - lvalue
rv - rvalue expression
Returns:
>= 0 on success (expr. bool value), -1 on error

Definition at line 242 of file lvalue.c.

References run_actions_safe().

Referenced by lval_assign().

Here is the call graph for this function:

Here is the caller graph for this function: