diff --git a/src/modules/usrloc/ucontact.c b/src/modules/usrloc/ucontact.c index 95ed8d530ce..f16c35d6066 100644 --- a/src/modules/usrloc/ucontact.c +++ b/src/modules/usrloc/ucontact.c @@ -1923,9 +1923,9 @@ int uldb_insert_attrs(str *_dname, str *_user, str *_domain, if(xavp->val.type==SR_XTYPE_STR) { vals[4].val.int_val = 0; avalue = xavp->val.v.s; - } else if(xavp->val.type==SR_XTYPE_INT) { + } else if(xavp->val.type==SR_XTYPE_LONG) { vals[4].val.int_val = 1; - avalue.s = sint2str((long)xavp->val.v.i, &avalue.len); + avalue.s = sint2str(xavp->val.v.l, &avalue.len); } else { continue; } diff --git a/src/modules/usrloc/udomain.c b/src/modules/usrloc/udomain.c index 4025cc549eb..6239a8b2278 100644 --- a/src/modules/usrloc/udomain.c +++ b/src/modules/usrloc/udomain.c @@ -784,9 +784,9 @@ urecord_t* db_load_urecord(db1_con_t* _c, udomain_t* _d, str *_aor) aval.v.s = avalue; aval.type = SR_XTYPE_STR; } else if(VAL_INT(ROW_VALUES(row)+1)==1) { - /* int value */ - str2sint(&avalue, &aval.v.i); - aval.type = SR_XTYPE_INT; + /* long int value */ + str2slong(&avalue, &aval.v.l); + aval.type = SR_XTYPE_LONG; } else { /* unknown type - ignore */ continue; @@ -1636,9 +1636,9 @@ int uldb_preload_attrs(udomain_t *_d) aval.v.s = avalue; aval.type = SR_XTYPE_STR; } else if(VAL_INT(ROW_VALUES(row)+3)==1) { - /* int value */ - str2sint(&avalue, &aval.v.i); - aval.type = SR_XTYPE_INT; + /* long int value */ + str2slong(&avalue, &aval.v.l); + aval.type = SR_XTYPE_LONG; } else { /* unknown type - ignore */ continue;