<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Make sure to NOT include alias=ipaddress. However, there's probably
something wrong with the BYE, because it should have Route headers.<br>
uri=myself is fairly simple and static, so normally you would like to
use the domain module and use is_from_local()&nbsp; and is_uri_host_local().<br>
<br>
BTW, search() searches the full message,&nbsp; uri=~<a class="moz-txt-link-rfc2396E" href="mailto:sip:.*@.*:5070">"sip:.*@.*:5070"</a> would
be more precise and only search the uri.<br>
g-)<br>
<br>
Jeremy A wrote:
<blockquote cite="mid:474E68D1.6000106@electrosilk.net" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
I seem to have fixed the problem with a 'hack' that looks for packets
directed to port 5070 and sends them to route(1) <br>
  <br>
I think that is probably the correct solution and is RFC compliant?
However it puzzles me that the test uri==myself doesn't take into
account the port number.<br>
  <br>
NB my regex skills are low so the check for port 5070 is certainly
sub-optimal, however it works :-) <br>
  <br>
Thanks for your help<br>
  <br>
New routing code:<br>
  <br>
  <pre wrap="">    if (uri==myself) {

        if (method=="REGISTER") {
            # digest authentication
            if (!www_authorize("", "subscriber")) {
                www_challenge("", "0");
                break;
            };

            save("location");
            break;
        };

        lookup("aliases");
        if (!uri==myself) {
            append_hf("P-hint: outbound alias\r\n");
            route(1);
            break;
        };

        # send on any uri that goes to port 5070 - it's not us

        if (search(":5070")) {
           route(1);
           break;
        }

        # native SIP destinations are handled using our USRLOC DB
        if (!lookup("location")) {
            sl_send_reply("404", "SER says Not Found");
            break;
        };
    };</pre>
  <br>
  <br>
Greger V. Teigre wrote:
  <blockquote cite="mid:474E65FF.3060608@teigre.com" type="cite">
    <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
The BYE should have a Route header, which is used for routing. If it
does not have a Route header, the UA originating the BYE must be fixed.
Of course, you can hack the BYE by doing the same kind of alias
rewriting as the INVITE, but it is not RFC-compliant.<br>
g-)<br>
    <br>
Jeremy A wrote:
    <blockquote cite="mid:474DF0BE.1020600@electrosilk.net" type="cite">
      <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
Greger Viken Teigre wrote:
      <blockquote
 cite="mid:200711280911.lAS9BrPw006253@pontius.teigre.com" type="cite">
        <pre wrap="">If you have alias=ip-of-ser in your config, ACK with port 5070 in ruri will match uri==myself.
The ACK should just be relayed.
See example cfg for ser used for sems for an example.
g-)

  </pre>
      </blockquote>
Unfortunately I am still quite puzzled by the SER configuration
process, so I have not been able to work out exactly what to do. The
ser/sems example uses pipes which doesn't help.<br>
      <br>
So far I have simply added a clause to always forward ACK packets. This
is not sufficient.<br>
      <br>
The ACK gets through but now the BYE command gets rejected 404 not
found on the user location lookup. I think this is caused by the
aliases involved in the call ?<br>
      <br>
(Call is dialled as <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated" href="mailto:2311@fesa.sto">2311@fesa.sto</a>.
It gets reformed to <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated" href="mailto:1001@butler.fesa.sto">1001@butler.fesa.sto</a>
and passed
to the SER proxy for butler.fesa.sto.
SER knows 1001 is an alias of registered user 1009 and sends the call
to the user)<br>
      <br>
Here is a log of a call made on the SER machine butler.fesa.sto<br>
      <tt><br>
      </tt></blockquote>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>