<div dir="ltr">Hi,<div>xavps are structs, not plain strings: <a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#xavp_id_-_xavps" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#xavp_id_-_xavps</a>.</div><div>To get the ip of the currently selected destination you should use</div><div>$xavp(_dsdst_=>uri)<br></div><div>(<a href="http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.xavp_dst" target="_blank">http://www.kamailio.org/docs/modules/5.2.x/modules/dispatcher.html#dispatcher.p.xavp_dst</a>)</div><div>Anyway after using ds_select the destination is set in $du.</div><div><br></div><div>Cheers,</div><div><br></div><div>Federico</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 3, 2019 at 3:02 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello guys,<br></div><div><br></div><div>I've never used "ds_select" as opposed to "ds_select_dst", and i would like to get the actual destination out of _dsdst_</div><div><br></div><div>I've got </div><div><br></div><div>modparam("dispatcher", "xavp_dst", "_dsdst_")<br></div><div><br></div><div>and then i'm trying to do:</div><div><br></div><div>    if(!ds_select("100", "4"))<br>    {<br>        send_reply("404", "No destination");<br>        exit;<br>    }else{<br>        xlog("L_ERR", "[XHTTP]: The next destination for SMS is: [$xavp(_dsdst_)]\n");<br>        ds_mark_dst("d");<br>    }<br></div><div><br></div><div>But that's coming up with</div><div><br></div><div> The next destination for SMS is: [<<xavp:0x7fbe87acdbf0>>]<br></div><div><br></div>I need to get the actual ip address out of the struct.<div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
_______________________________________________<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-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>