[sr-dev] git:master:0d0bf309: geoip: continent code attribute name changed to contc

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 12 10:06:24 CET 2015


Module: kamailio
Branch: master
Commit: 0d0bf30963e24cd8218f2edd3f26a16dd6e66ee5
URL: https://github.com/kamailio/kamailio/commit/0d0bf30963e24cd8218f2edd3f26a16dd6e66ee5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-12T09:48:08+01:00

geoip: continent code attribute name changed to contc

- similar pattern like for the other attributes

---

Modified: modules/geoip/geoip_pv.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0d0bf30963e24cd8218f2edd3f26a16dd6e66ee5.diff
Patch: https://github.com/kamailio/kamailio/commit/0d0bf30963e24cd8218f2edd3f26a16dd6e66ee5.patch

---

diff --git a/modules/geoip/geoip_pv.c b/modules/geoip/geoip_pv.c
index e52d4da..46c4dff 100644
--- a/modules/geoip/geoip_pv.c
+++ b/modules/geoip/geoip_pv.c
@@ -210,10 +210,7 @@ int pv_parse_geoip_name(pv_spec_p sp, str *in)
 		case 5: 
 			if(strncmp(pvs.s, "metro", 5)==0)
 				gpv->type = 12;
-			else goto error;
-		break;
-		case 6:
-			if(strncmp(pvs.s, "contid", 6)==0)
+			else if(strncmp(pvs.s, "contc", 5)==0)
 				gpv->type = 13;
 			else goto error;
 		break;
@@ -354,7 +351,7 @@ int pv_get_geoip(struct sip_msg *msg, pv_param_t *param,
 				return pv_get_null(msg, param, res);
 			return pv_get_sintval(msg, param, res,
 					gpv->item->r.record->metro_code);
-		case 13: /* contid */
+		case 13: /* contc */
 			if(gpv->item->r.record==NULL)
 				return pv_get_null(msg, param, res);
 			return pv_geoip_get_strzval(msg, param, res,




More information about the sr-dev mailing list