Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[htable] some sht indexes and values gets duplicated #191

Closed
fr6nco opened this issue Jun 3, 2015 · 2 comments
Closed

[htable] some sht indexes and values gets duplicated #191

fr6nco opened this issue Jun 3, 2015 · 2 comments

Comments

@fr6nco
Copy link

fr6nco commented Jun 3, 2015

Hello,

I have noticed, that indexes with special chars gets duplicated in htables-es.

When I insert to htable a value with index like:
1335199467::3339-516-53201517440-VM1-1-212.232.17.91::to:: some_value

then I dump the elements using fifo sht_dump I see the same entry duplicated with slightly modfied index:
1335199467::3339-516-53201517440-VM1-1-212.232.17.91::to:: some_value
1335199467::3339-516-53201517440-VM1-1-212_232_17_91::to:: some_value

So to be clear.
Only 1 value is inserted and when I dump it I see 2 values in the htable. This happens when indexes with a dot are inserted to a htable and makes me some trouble when doing replication over multiple kamailios.

I consider it as a bug as using htable.sets I cant insert the both values to another node when doing manual replication of htableses.

@miconda
Copy link
Member

miconda commented Jun 3, 2015

What is the command you use to insert the items?

From the dump, I see that the second key has '_' (underline) instead of '.' (dot).

@fr6nco
Copy link
Author

fr6nco commented Jun 3, 2015

Hello Daniel,

actually found out, it was my fault.
When sending the htable data to the second kamailio proxy via PHP (source kamailio htable.dump -> second kamailio htable.sets), dots were replaced by a _ and the "new" indexes created by the php script were inserted to the second kamailio and those were replicated via dmq back to the source kamailio proxy.

Thats the reason why indexes were duplicated on the source kamailio.

Not a bug, sorry, its solved :)
Tomas Boros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants