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 |
TNC | 816-273-8336