[SR-Users] Dispatcher attributes

Jason.Park Jason.Park at target.com
Wed Jan 9 22:31:16 CET 2019


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190109/706f4f5f/attachment.html>


More information about the sr-users mailing list