<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have problem with forwarding. Here is what I'm
trying to make</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if (uri=~"^sip:[559881]")
{<BR> log(0, "\n\n************
Forwarding to sip1 !
***********\n");<BR>
rewritehostport("siphost1.com:5060");<BR>
append_branch("siphost1.com");<BR>
t_relay();<BR> append_hf("P-hint:
VoipSwitch GATEWAY\r\n");<BR> log(0,
"********************************************\n\n\n");<BR>
break;<BR>};</FONT></DIV><FONT face=Arial size=2>
<DIV><BR>if (uri=~"^sip:[559888]")
{<BR> log(0, "\n\n************
Forwarding to sip2 !
***********\n");<BR>
rewritehostport("siphost2.com:5060");<BR>
append_branch("siphost2.com");<BR>
t_relay();<BR> append_hf("P-hint:
VoipSwitch GATEWAY\r\n");<BR> log(0,
"********************************************\n\n\n");<BR>
break;<BR>};<BR></DIV>
<DIV> </DIV>
<DIV>If I call number for example 35988123 it goes to the right sip
server - siphost1.com</DIV>
<DIV>If I call number for example 359888123 it goes again to sip server -
siphost1.com but it has to go to siphost2.com.</DIV>
<DIV> </DIV>
<DIV>Any suggestions what maybe wrong?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks in advance :)!</DIV>
<DIV> </DIV>
<DIV>Pavel Siderov</DIV></FONT></BODY></HTML>