[sr-dev] git:master: ims_usrloc_pcscf: Set proper field for service routes, when saving to DB

Carsten Bock carsten at ng-voice.com
Wed Sep 10 21:52:54 CEST 2014


Module: sip-router
Branch: master
Commit: fc103f947d2c2eeb4ed6f6e30f45bc9603ca86c4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fc103f947d2c2eeb4ed6f6e30f45bc9603ca86c4

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date:   Wed Sep 10 21:52:11 2014 +0200

ims_usrloc_pcscf: Set proper field for service routes, when saving to DB

---

 modules/ims_usrloc_pcscf/usrloc_db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/ims_usrloc_pcscf/usrloc_db.c b/modules/ims_usrloc_pcscf/usrloc_db.c
index cc85163..015b602 100644
--- a/modules/ims_usrloc_pcscf/usrloc_db.c
+++ b/modules/ims_usrloc_pcscf/usrloc_db.c
@@ -306,8 +306,8 @@ int db_insert_pcontact(struct pcontact* _c)
 	/* add service routes */
 	service_routes.len = service_routes_as_string(_c, &service_route_buffer);
 	service_routes.s = service_route_buffer.buf;
-	SET_PROPER_NULL_FLAG(service_routes, values, LP_PUBLIC_IPS_IDX);
-	SET_STR_VALUE(GET_FIELD_IDX(values, LP_PUBLIC_IPS_IDX), service_routes);
+	SET_PROPER_NULL_FLAG(service_routes, values, LP_SERVICE_ROUTES_IDX);
+	SET_STR_VALUE(GET_FIELD_IDX(values, LP_SERVICE_ROUTES_IDX), service_routes);
 
 	if (use_location_pcscf_table(_c->domain) < 0) {
 		LM_ERR("Error trying to use table %.*s\n", _c->domain->len, _c->domain->s);




More information about the sr-dev mailing list