<head><title></title></head>
<body><div class="iw_mail" dir="ltr">Thanks to Liviu we got the issue resolve.<div><br></div>
<div>There were really two things.</div>
<div><br></div>
<div>1) I had read the flags parameter as being Uppercase = set and Lowercase = unset. The flags are case insensitive. I was trying to have flags "f" and "s" set and "u" and "d" unset, so I needed to use a value of "fs" instead of "FuSd".</div>
<div><br></div>
<div>2) When setting the default flag "d", the last destination is not being hit (at least not as a first value in the AVP - I didn't check to see if there were multiple values). If I use the value of "fs" the system works as I was wanting, but with "fsd", it skips the last one.</div>
<div><br></div>
<div>Thanks again Liviu.<br><br><div class="signature">
<div style="font-family: arial, helvetica, sans-serif; font-size: 16px;"><span data-mce-style="color: #808080; font-family: arial,helvetica,sans-serif; font-size: 11pt;" style="color: rgb(128, 128, 128); font-size: 11pt;">Regards,</span></div>
<div style="font-family: arial, helvetica, sans-serif; font-size: 16px;">
<span data-mce-style="color: #808080; font-family: arial,helvetica,sans-serif; font-size: 11pt;" style="color: rgb(128, 128, 128); font-size: 11pt;"><strong>Pat Burke</strong></span><br><br><div><img alt="Voxtelesys | solutions to grow your business" src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png" data-mce-src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png" data-mce-style="color: #00274c; font-family: arial,helvetica,sans-serif; font-size: 16pt; font-weight: bold; text-decoration: none;" style="color: rgb(0, 39, 76); font-size: 16pt; font-weight: bold;"></div>
<div><span data-mce-style="color: #999999; font-size: 8pt;" style="color: rgb(153, 153, 153); font-size: 8pt;">______________________________________________________________________________________</span></div>
<div><span data-mce-style="font-size: 11pt; font-family: arial,helvetica,sans-serif; color: #808080;" style="font-size: 11pt; color: rgb(128, 128, 128);">Direct: (402) 403-5121 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Cell: (402) 443-8929 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Email: <a href="mailto:pat@voxtelesys.com">pat@voxtelesys.com</a></span></div>
<div><span data-mce-style="font-size: 11pt; font-family: arial,helvetica,sans-serif; color: #808080;" style="font-size: 11pt; color: rgb(128, 128, 128);">1801 23rd Avenue North <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Suite 217 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Fargo, North Dakota 58102</span></div>
</div>
</div>
<br><blockquote class="reply_block" dir="ltr" style="border-left: 2px solid blue; margin: 5pt 0 5pt 10pt; padding: 0 0 0 5pt; font-size: 13px; font-family: tahoma,helvetica,sans-serif;">
<hr size="1">-----Original Message-----<br>From: "Pat Burke" <<a href="mailto:pat@voxtelesys.com">pat@voxtelesys.com</a>><br>To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>Date: 02/06/17 23:21<br>Subject: ds_select_dst with algorithm 6 is not using the last destination<br><br><div class="iw_mail" dir="ltr">
<div>Hello,</div>
<div><br></div>
<div>It appears that 2.2.2 ds_select_dst with the parameters that I have below is not using the last destination in the set. </div>
<div><br></div>
<div>...</div>
<div>if (!ds_select_dst("$avp(core_server_group)","6","FuSd")) {</div>
<div>...</div>
<div><br></div>
<div>Here is the results from ds_list full.</div>
<div><br></div>
<div>(with 2 destinations in the set)</div>
<div>PARTITION:: default</div>
<div>SET:: 10005</div>
<div>URI:: sip:216.147.191.143:5060 state=Active first_hit_counter=16</div>
<div>weight:: 1</div>
<div>priority:: 0</div>
<div>description:: DEV Ingress-DEV Core</div>
<div>URI:: sip:216.147.191.144:5060 state=Active first_hit_counter=0</div>
<div>weight:: 1</div>
<div>priority:: 0</div>
<div>description:: DEV Ingress-DEV Core</div>
<div>SET:: 10002</div>
<div><br></div>
<div><br></div>
<div>(with 3 destinations in the set)</div>
<div>PARTITION:: default</div>
<div>SET:: 10005</div>
<div>URI:: sip:216.147.191.143:5060 state=Active first_hit_counter=13</div>
<div>weight:: 1</div>
<div>priority:: 0</div>
<div>description:: DEV Ingress-DEV Core</div>
<div>URI:: sip:216.147.191.144:5060 state=Active first_hit_counter=15</div>
<div>weight:: 1</div>
<div>priority:: 0</div>
<div>description:: DEV Ingress-DEV Core</div>
<div>URI:: sip:216.147.191.142:5060 state=Active first_hit_counter=0</div>
<div>weight:: 1</div>
<div>priority:: 0</div>
<div>description:: DEV Ingress-DEV Core</div>
<div>SET:: 10002</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>What I am after is the functionality that I had in 1.11 which was a random use of all destinations in the set. I had the following setting</div>
<div><br></div>
<div><br></div>
<div>modparam("dispatcher", "force_dst", 1)</div>
<div>modparam("dispatcher", "flags", 2)</div>
<div><br></div>
<div>and called using</div>
<div><br></div>
<div>...</div>
<div> if (!ds_select_dst("$avp(core_server_group)","6")) {</div>
<div>...</div>
<div><br></div>
<br><div>
<div style="font-family: arial, helvetica, sans-serif; font-size: 16px;"><span data-mce-style="color: #808080; font-family: arial,helvetica,sans-serif; font-size: 11pt;" style="color: rgb(128, 128, 128); font-size: 11pt;">Regards,</span></div>
<div style="font-family: arial, helvetica, sans-serif; font-size: 16px;">
<span data-mce-style="color: #808080; font-family: arial,helvetica,sans-serif; font-size: 11pt;" style="color: rgb(128, 128, 128); font-size: 11pt;"><strong>Pat Burke</strong></span><br><br><div><img alt="Voxtelesys | solutions to grow your business" src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png" data-mce-src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png" data-mce-style="color: #00274c; font-family: arial,helvetica,sans-serif; font-size: 16pt; font-weight: bold; text-decoration: none;" style="color: rgb(0, 39, 76); font-size: 16pt; font-weight: bold;"></div>
<div><span data-mce-style="color: #999999; font-size: 8pt;" style="color: rgb(153, 153, 153); font-size: 8pt;">______________________________________________________________________________________</span></div>
<div><span data-mce-style="font-size: 11pt; font-family: arial,helvetica,sans-serif; color: #808080;" style="font-size: 11pt; color: rgb(128, 128, 128);">Direct: (402) 403-5121 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Cell: (402) 443-8929 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Email: <a href="mailto:pat@voxtelesys.com">pat@voxtelesys.com</a></span></div>
<div><span data-mce-style="font-size: 11pt; font-family: arial,helvetica,sans-serif; color: #808080;" style="font-size: 11pt; color: rgb(128, 128, 128);">1801 23rd Avenue North <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Suite 217 <span data-mce-style="font-size: 14pt;" style="font-size: 14pt;">|</span> Fargo, North Dakota 58102</span></div>
</div>
</div>
</div>
</blockquote>
</div>
</div></body>