Not sure which version you are using however, 1.8x does not support passing pseudo variable to t_relay as a parameter: http://www.opensips.org/html/docs/modules/devel/tm.html#id294571 Nick.