On 13-05 11:27, Jan Janak wrote:
Hello,
first, write a proper regular expression. The expression should match
hostname AND IP address of your server in the domain. Also don't forget
to put backslashes before dots because dots are substitution characters
in regular expressions. You can use for example something like this:
if (uri=~"sip:[0-9]+@(your\.domain|10\.1\.1\.22)") {
t_relay_udp("10.1.1.240", "5060");
Sorry, I made a mistake, the function name should be t_relay_to_udp
Jan.