[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serdev
Subject:    Re: [Serdev] ser.cfg : uri==myself
From:       Andrei Pelinescu-Onciul <andrei () iptel ! org>
Date:       2006-06-12 16:47:39
Message-ID: 20060612164739.GC27859 () shell
[Download RAW message or body]

On Jun 12, 2006 at 17:14, Lol Zimmerli <lolzim@worldcom.ch> wrote:
> Hi,
> 
> In the default ser.cfg, we ca read:
> 
> (...)
>         if (uri==myself) {
> (...)
>                 lookup("aliases");
>                 if (!uri==myself) {
>                         append_hf("P-hint: outbound alias\r\n");
>                         route(1);
>                         break;
>                 };
> (...)
>         };
> 
> 
> Is there a special case in SER that would allow the append_hf(), route
> (1) and break to be ever launched, since a "if (!uri==myself)" is
> inside a "if (uri==myself)" block??
> 

Yes, on success lookup("aliases") will change the uri, so the second
uri==myself might not match.


Andrei
_______________________________________________
Serdev mailing list
Serdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serdev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic