[SR-Users] Dispatcher attributes

Joel Serrano joel at textplus.com
Thu Jan 10 03:56:08 CET 2019


Hi Jason,

We are doing that and it works. I’ll send you a snippet when I get home..



On Wed, Jan 9, 2019 at 13:32 Jason.Park <Jason.Park at target.com> wrote:

> Hi.
>
>
>
> When using the attributes feature of the dispatcher module, is it possible
> to directly access/address an individual attribute directly?
>
>
>
> For example, if I use the following dispatcher text file:
>
> --
>
> # line format
>
> # setid(int) destination(sip uri) flags(int,opt) priority(int,opt)
> attributes(str,opt)
>
> 1234 sip:10.10.10.10:5060;transport=tcp 0 0 attr1=red;attr2=blue
>
> --
>
>
>
> And this config snippet, I was hoping to be able to access the attribute
> with a variable.
>
> --
>
> modparam("dispatcher", "attrs_pvname", "$vxavp(ds_attrs)")
>
> if(ds_is_from_list(1234,1)) {
>
>                 x_log(“L_NOTICE”,”attr1: $xavp(ds_attrs=>attr1)\n”);
>
> }
>
> --
>
>
>
> Jason Park | Lead Engineer | Voice Services | ¤ Target
> <http://www.target.com/> | TNC | 816-273-8336
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190109/211ffece/attachment.html>


More information about the sr-users mailing list