Hi,
There is one more issue. ims_usrloc_pcscf's db_insert_pcontact function is not able
to write protocol value into database.
https://github.com/kamailio/kamailio/blob/c3629f877500373028d2c7cdefd976cdd…
In db_insert_pcontact function, Value array's length is 16, but while inserting, this
value is given as 15. So contact's protocol value which is the last item of the array
is not being written to the database.
```
int db_insert_pcontact(struct pcontact* _c)
{
....
db_key_t keys[16] = {
&domain_col,
&aor_col,
&received_col,
&received_port_col, &received_proto_col,
&path_col, &rinstance_col,
&rx_session_id_col, ®_state_col,
&expires_col, &service_routes_col,
&socket_col, &public_ids_col, &host_col, &port_col,
&protocol_col
};
db_val_t values[16];
...
...
if (ul_dbf.insert(ul_dbh, keys, values, 15) < 0) {
LM_ERR("inserting contact in db failed\n");
return -1;
}
return 0;
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2871#issuecomment-936220889