<!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>Thanks a lot :)</FONT></DIV>
<DIV><FONT face=Arial size=2>It works now!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Pavel Siderov</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ron@carithers.net href="mailto:ron@carithers.net">Ron Carithers</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=pi@hostmates.com 
  href="mailto:pi@hostmates.com">Pavel Siderov</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 13, 2005 9:51 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] Forwarding 
  according to prefix</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>i think inside the [ ] is an OR, so if it starts 
  with any of those numbers it will go to the first gateway. i think if you 
  remove the [ ] it will do what you want.</FONT></DIV>
  <DIV><FONT face=Arial size=2>ron</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=pi@hostmates.com href="mailto:pi@hostmates.com">Pavel Siderov</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org 
    href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 12, 2005 6:47 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] Forwarding 
    according to prefix</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>if (uri=~"^sip:[559881]") 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(0, 
    "\n\n************&nbsp; Forwarding to sip1 ! 
    ***********\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rewritehostport("siphost1.com:5060");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    append_branch("siphost1.com");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: 
    VoipSwitch GATEWAY\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    log(0, 
    "********************************************\n\n\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    break;<BR>};</FONT></DIV><FONT face=Arial size=2>
    <DIV><BR>if (uri=~"^sip:[559888]") 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(0, 
    "\n\n************&nbsp; Forwarding to sip2 ! 
    ***********\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rewritehostport("siphost2.com:5060");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    append_branch("siphost2.com");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: 
    VoipSwitch GATEWAY\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    log(0, 
    "********************************************\n\n\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    break;<BR>};<BR></DIV>
    <DIV>&nbsp;</DIV>
    <DIV>If I call number&nbsp;for example&nbsp;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>&nbsp;</DIV>
    <DIV>Any suggestions what maybe&nbsp;wrong?</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Thanks in advance :)!</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Pavel Siderov</DIV></FONT>
    <P>
    <HR>

    <P></P>_______________________________________________<BR>Serusers mailing 
    list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>