<div dir="ltr"><div dir="ltr">Tried other way round<div>All of this is happening in FAILURE ROUTE.</div><div><br></div><div><div>ds_mark_dst("d");</div><div>ds_select_dst("1", "0")</div><div><br></div><div>But ds_select_dst still selecting for me gateway already marked with "d" on previous step. Seems, it applying states after packet sent. And any other way I can select new dst from set?</div><div><br></div><div> Idea why I'm using ds_select_dst in FAILURE_ROUTE and not ds_next_dst() that during failover timer dispatcher list could change (yes, it could be extensive process) and I want to use most fresh version.</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-08-31 13:05 GMT+02:00 Igor Olhovskiy <span dir="ltr"><<a href="mailto:igorolhovskiy@gmail.com" target="_blank">igorolhovskiy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Made a pv_xavp_print() afrer ds_select_dst</div><div><br></div><div>Seems both destinations are there. </div><div><br></div><div><br></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc835288 (level=0)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dsctx_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 1427193258</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc834ed8></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc834ed8 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: cnt</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7279890</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 2</div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc834ed8 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dispacher_dst_list_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 508490514</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc834d78></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc834d78 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: grp</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7056653</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 1</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: uri</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 8122237</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 2</div><div>13(23) INFO: <core> [core/xavp.c:558]: xavp_print_list_content(): XAVP value: sip:<a href="http://172.28.0.12:5060" target="_blank">172.28.0.12:5060</a></div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc834d78 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dispacher_dst_list_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 508490514</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc834f80></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc834f80 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: grp</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7056653</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 1</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: uri</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 8122237</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 2</div><div>13(23) INFO: <core> [core/xavp.c:558]: xavp_print_list_content(): XAVP value: sip:<a href="http://172.28.0.19:5060" target="_blank">172.28.0.19:5060</a></div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc834f80 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dsctx_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 1427193258</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc833db0></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc833db0 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: cnt</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7279890</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 2</div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc833db0 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dispacher_dst_list_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 508490514</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc833b80></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc833b80 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: grp</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7056653</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 1</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: uri</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 8122237</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 2</div><div>13(23) INFO: <core> [core/xavp.c:558]: xavp_print_list_content(): XAVP value: sip:<a href="http://172.28.0.19:5060" target="_blank">172.28.0.19:5060</a></div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc833b80 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dispacher_dst_list_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 508490514</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc833960></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc833960 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: grp</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7056653</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 1</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: uri</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 8122237</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 2</div><div>13(23) INFO: <core> [core/xavp.c:558]: xavp_print_list_content(): XAVP value: sip:<a href="http://172.28.0.12:5060" target="_blank">172.28.0.12:5060</a></div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc833960 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dsctx_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 1427193258</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc835670></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc835670 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: cnt</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7279890</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 1</div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc835670 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: _dispacher_dst_list_</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 508490514</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 6</div><div>13(23) INFO: <core> [core/xavp.c:571]: xavp_print_list_content(): XAVP value: <xavp:0x7f8bfc833580></div><div>13(23) INFO: <core> [core/xavp.c:543]: xavp_print_list_content(): +++++ start XAVP list: 0x7f8bfc833580 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: grp</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 7056653</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 1</div><div>13(23) INFO: <core> [core/xavp.c:555]: xavp_print_list_content(): XAVP value: 2</div><div>13(23) INFO: <core> [core/xavp.c:547]: xavp_print_list_content(): *** XAVP name: uri</div><div>13(23) INFO: <core> [core/xavp.c:548]: xavp_print_list_content(): XAVP id: 8122237</div><div>13(23) INFO: <core> [core/xavp.c:549]: xavp_print_list_content(): XAVP value type: 2</div><div>13(23) INFO: <core> [core/xavp.c:558]: xavp_print_list_content(): XAVP value: sip:<a href="http://172.28.0.46:5060" target="_blank">172.28.0.46:5060</a></div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc833580 (level=1)</div><div>13(23) INFO: <core> [core/xavp.c:583]: xavp_print_list_content(): ----- end XAVP list: 0x7f8bfc835288 (level=0)</div><div>…</div><div>call ds_next_dst() here</div><div>…</div><div>13(23) WARNING: dispatcher [dispatch.c:2285]: ds_update_dst(): no xavp uri field in next destination record</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2018-08-31 12:33 GMT+02:00 Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On Fri, Aug 31, 2018 at 12:11:53PM +0200, Igor Olhovskiy wrote:<br>
> Can I somehow dump xavp_dst var to check if ds_select_dst is correct?<br>
<br>
</span>You could use pv_xavp_print():<br>
<a href="https://www.kamailio.org/docs/modules/5.1.x/modules/pv.html#pv.f.pv_xavp_print" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/<wbr>modules/5.1.x/modules/pv.html#<wbr>pv.f.pv_xavp_print</a><br>
<br>
If there is a better way I'd like to know myself.<br>
<br></div></div><span class="">______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_1668983589841907383gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>
</div>