Hi all
I have a problem with the topos module. The contact header in OPTIONS request is not changed. It is working fine with INVITE. Is there any special configuration with OPTIONS?
 
I am using:
version: kamailio 5.3.2 (x86_64/linux) 7ba545
 
This is the debug log:
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_msg.c:934]: tps_request_sent(): handling outgoing request (0, 0)
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_msg.c:376]: tps_pack_message(): compacted headers - x_via1: [SIP/2.0/UDP 122.123.145.146;branch=z9hG4bK8ee.c6d59104d9f494f8ba1f75ed3f9ec8cf.0](79) - x_via2: [SIP/2.0/UDP 172.26.52.104:5060;branch=z9hG4bK00E0F5150A04105449BBEB83377A](73) - x_vbranch1: [z9hG4bK8ee.c6d59104d9f494f8ba1f75ed3f9ec8cf.0](45)
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_msg.c:485]: tps_pack_message(): compacted headers - a_rr: [](0) - b_rr: [](0) - s_rr: [](0)
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_msg.c:490]: tps_pack_message(): compacted headers - as_contact: [](0) - bs_contact: [](0)
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_storage.c:126]: tps_storage_lock_get(): tps lock get: 337
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos_redis [topos_redis_storage.c:764]: tps_redis_load_branch(): loading branch record for [b:x:z9hG4bK8ee.c6d59104d9f494f8ba1f75ed3f9ec8cf.0]
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos_redis [topos_redis_storage.c:782]: tps_redis_load_branch(): hmap with key [b:x:z9hG4bK8ee.c6d59104d9f494f8ba1f75ed3f9ec8cf.0] not found
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_storage.c:391]: tps_storage_link_msg(): downstream: yes - acontact: [sip:172.26.52.104:5060] - bcontact: []
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: WARNING: topos [tps_storage.c:434]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: INFO: topos_redis [topos_redis_storage.c:163]: tps_redis_insert_dialog(): no uuid for this message
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: ERROR: topos [tps_storage.c:445]: tps_storage_record(): failed to store
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [tps_storage.c:138]: tps_storage_lock_release(): tps lock release: 337
Mar 11 15:52:13 kamtest /usr/local/kamailio/sbin/kamailio[55606]: DEBUG: topos [topos_mod.c:449]: tps_msg_sent(): new outbound buffer generated

This is the config I use:
modparam("ndb_redis", "server", "name=srv8;addr=127.0.0.1;port=6379;db=8")
modparam("topos", "storage", "redis")
modparam("topos_redis", "serverid", "srv8")
modparam("topos", "branch_expire", 14400)
modparam("topos", "dialog_expire", 14400)
 
Best Regards
Enzo