<h3>Description</h3>
<p>Currently ds_is_from_list() matches all GWs in the dispatcher list, not considering if the GW is disabled or not. It might have situation where a GW is permanently disabled but can't be removed (because of CDR references for instance). In this case it is not desired to match a disabled GW in the test.<br>
The function should accept a new parameter which will tell if it should or not match disabled GWs. For backward compatibility, it should not be a mandatory parameter and its default value should be to match disabled GW (as it is today).</p>
<h3>Expected behavior</h3>
<p>ds_is_from_list() should return false in case it matches a disabled GW and the new parameter tells not to match disabled GWs.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1908">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZaZU9_bRzRDwrtL6VNBxvApK6-67ks5vauddgaJpZM4cM4sp">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZShQa4rznVw8MMbV7cyvGA4GHFx0ks5vauddgaJpZM4cM4sp.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Add optional parameter to ds_is_from_list() to check only active GW (#1908)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1908"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1908",
"url": "https://github.com/kamailio/kamailio/issues/1908",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>