Module: sip-router
Branch: master
Commit: ccf3045d3d91d821081f0812336a9140856b7bf8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ccf3045…
Author: pd <peter.dunkley(a)crocodile-rcs.com>
Committer: pd <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Oct 19 11:46:36 2011 +0100
modules_k/rr: added record_route_preset() to exported API for use in app_lua
- Enhancement made by Hugh Waite at Crocodile RCS
---
modules_k/rr/api.c | 1 +
modules_k/rr/api.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/rr/api.c b/modules_k/rr/api.c
index 55af538..9e3bb46 100644
--- a/modules_k/rr/api.c
+++ b/modules_k/rr/api.c
@@ -56,6 +56,7 @@ extern int append_fromtag;
*/
int load_rr( struct rr_binds *rrb )
{
+ rrb->record_route_preset = record_route_preset;
rrb->record_route = record_route;
rrb->loose_route = loose_route;
rrb->add_rr_param = add_rr_param;
diff --git a/modules_k/rr/api.h b/modules_k/rr/api.h
index d25a13b..c0c09e9 100644
--- a/modules_k/rr/api.h
+++ b/modules_k/rr/api.h
@@ -56,6 +56,7 @@ typedef int (*loose_route_f)(struct sip_msg*);
/*! record-route API export binding */
typedef struct rr_binds {
record_route_f record_route;
+ record_route_f record_route_preset;
loose_route_f loose_route;
add_rr_param_t add_rr_param;
check_route_param_t check_route_param;