[SR-Users] Get destination out of _dsdst_

David Villasmil david.villasmil.work at gmail.com
Thu Oct 3 15:01:08 CEST 2019


Hello guys,

I've never used "ds_select" as opposed to "ds_select_dst", and i would like
to get the actual destination out of _dsdst_

I've got

modparam("dispatcher", "xavp_dst", "_dsdst_")

and then i'm trying to do:

    if(!ds_select("100", "4"))
    {
        send_reply("404", "No destination");
        exit;
    }else{
        xlog("L_ERR", "[XHTTP]: The next destination for SMS is:
[$xavp(_dsdst_)]\n");
        ds_mark_dst("d");
    }

But that's coming up with

 The next destination for SMS is: [<<xavp:0x7fbe87acdbf0>>]

I need to get the actual ip address out of the struct.


Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191003/5fecab07/attachment.html>


More information about the sr-users mailing list