@petermarianF commented on this pull request.
@@ -301,7 +307,7 @@ int db_insert_pcontact(struct
pcontact* _c)
SET_PROPER_NULL_FLAG(_c->rinstance, values, LP_RINSTANCE_IDX);
SET_PROPER_NULL_FLAG(_c->rx_session_id, values, LP_RX_SESSION_ID_IDX);
- VAL_DOUBLE(GET_FIELD_IDX(values, LP_REG_STATE_IDX)) = _c->reg_state;
+ VAL_INT(GET_FIELD_IDX(values, LP_REG_STATE_IDX)) = _c->reg_state;
The download also uses VAL_INT and not VAL_DOUBLE:
src/modules/ims_usrloc_pcscf/udomain.c:
static inline pcontact_info_t* dbrow2info( db_val_t *vals, str *contact)
.....
ci.reg_state = VAL_INT(vals + 8);
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3279#discussion_r1039679731
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3279/review/1204666012(a)github.com>