Hello,
On 03/19/07 17:14, Benko wrote:
Hello!
I would like to relay messages to a location("proto:ip:port") i retrieve from a db-table with avp_db_query, unfortunately t_relay doesn't allow using avps or pseudo-variables currently(iirc). Do you know a workaround without using t_relay or is there a way to use avps/pseudo-variables with t_relay() since 1.2?
you can do it via destiantion uri, which is a field in the internal structure of a SIP message. You can access it from the script via $duri (or $du) pseud-variable.
$duri = "sip:openser.org"; t_relay();
will send the request to openser.org nomater what is in the R-URI.
Cheers, Daniel
Thx Christian
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users