registrar: Fix harmless compiler warning
dialplan: move the "attrs" pvar into the "dp_translate" param list

* simplifies the scripting logic
* more efficient - it is now a local option, as opposed to a global one