No, use
attr_destination("$realy_to_udp"); t_relay();
or if you need combine the string before, you can use
xlset_destination("%@ruri.host:%@ruri.port";transport=%
@via[1].transport); t_relay()
Michal
On Mon, 2007-04-30 at 14:33 +0200, tzieleniewski wrote:
Hi,
Is it possible to pass the ip address in the function t_relay_to_udp(..)
in the m module using avp.
For instance:
...
t_relay_to_udp("$relay_to_udp","5060");
...
When I try to do it this way I get the following error:
Apr 30 14:30:03 sen /home/ser/ser/ser-2.0/ser[7552]: Maxfwd module- initializing
Apr 30 14:30:03 sen ser[7552]: AVPops - initializing
Apr 30 14:30:03 sen ser[7552]: ERROR: mk_proxy: could not resolve hostname:
"$relay_to_udp"
Apr 30 14:30:03 sen ser[7552]: ERROR: fixup_hostport2proxy: bad host name in URI
<$relay_to_udp>
Apr 30 14:30:03 sen ser[7552]: ERROR: fix_expr : fix_actions error
Cheers
Tomasz
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers