[Users] t_relay() with variables(proto:ip:port)
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Mar 19 17:21:33 CET 2007
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 at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list