al286320 created an issue (kamailio/kamailio#4298)

Hi all,

I'm new to Kamailio, and maybe this is a silly question.

I’ve set up Kamailio as a SIP proxy with two Asterisk servers acting as media services.

This is my configuration for the dispatcher module:

loadmodule "dispatcher.so"

modparam("dispatcher", "db_url", DBURL)
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "ds_ping_interval", 20)
modparam("dispatcher", "ds_ping_method", "OPTIONS")
modparam("dispatcher", "ds_probing_threshold", 5)
modparam("dispatcher", "ds_inactive_threshold", 5)
modparam("dispatcher", "ds_ping_latency_stats", 1)
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_ping_reply_codes", "class=2;code=403;code=488;class=3")
modparam("dispatcher", "ds_ping_from", SIPCALL)

I can see the SIP OPTIONS requests going from Kamailio to Asterisk and receiving 200 OK responses.

image.png (view on web)

However, the dispatcher is still setting the IP (Inactive Probing) flag on the servers:

kamcmd dispatcher.list
{
	NRSETS: 1
	RECORDS: {
		SET: {
			ID: 1
			TARGETS: {
				DEST: {
					URI: sip:172.16.254.21:5060
					FLAGS: IP
					PRIORITY: 0
					LATENCY: {
						AVG: 0
						STD: 0
						EST: 0
						MAX: 0
						TIMEOUT: 183
					}
				}
				DEST: {
					URI: sip:172.16.254.20:5060
					FLAGS: IP
					PRIORITY: 0
					LATENCY: {
						AVG: 0
						STD: 0
						EST: 0
						MAX: 0
						TIMEOUT: 183
					}
				}
			}
		}
	}
}

So when I try to use ds_select_dst("1", "4"), it always fails.

Did I miss something in my configuration?

Thanks!


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/4298@github.com>