Hello,
The expression that made it work for me was:
if( uri=~"@<ip-address>" ) { rewritehost("<domain-name>"); };
Just one more question: why has this changed from previous versions????
Thanks!!
Jaime
From: Daniel-Constantin Mierla Daniel-Constantin.Mierla@fokus.fraunhofer.de on 03/12/2003 13:18
Please respond to Daniel-Constantin.Mierla@fokus.fraunhofer.de
To: Jaime GIL/EN/HTLUK@HTLUK cc: serusers@lists.iptel.org
Subject: Re: [Serusers] 404 Not Found when using <user>@<ser_proxy_ip>
Hello Jaime, I guess the same situation was discussed in the next thread, yesterday: http://lists.iptel.org/pipermail/serusers/2003-December/004146.html
Take a look and see if is your case.
.Daniel
On 12/3/2003 2:04 PM, jaime.gil@orange.co.uk wrote:
Hi,
I tried in before in serdev, but nobody seems to know. So here it goes again:
We are getting a strange 404 Not Found when sending requests (INVITE,
SUBSCRIBE,
etc) with a sip request uri in the form sip:<user>@<ser-proxy-ip>. However, it works when specifying sip:<user>@<domain-of-the-proxy>
<user> is registered in the usrloc database, and the config file looks like:
-------------------------- Config starts ------------------------------------- [.....]
alias="ser-test.com" alias="192.168.23.23"
[.....]
route { if (uri==myself) {
[.....]
if (!lookup("location")) { log(1, "Not in location\n"); sl_send_reply("404", "Not Found"); break; } if (!t_relay()) { sl_reply_error(); break; }; break;
}
----------------Config ends ----------------------
The same request and config file in 0.8.11 did not give such an error. Are
there
any significant changes on how 0.8.12 looks up for registration information?
Any
hints are much appreciated.
Regards,
Jaime
Important. Confidentiality: This communication is intended for the above-named person and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of the company. If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No 2178917, with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
******************************************************************************* Important. Confidentiality: This communication is intended for the above-named person and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of the company. If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No 2178917, with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ. *******************************************************************************
When you host more than one domain in a single server you need to authenticate based on the domain name and not on the IP. Since all the domain names will give the same IP. I think that is the reason that why facility of IP comparision with domain name is removed.
Kannaiyan
http://www.speak2world.com/ -- Call with your own domain !!!
----- Original Message ----- From: jaime.gil@orange.co.uk To: Daniel-Constantin.Mierla@fokus.fraunhofer.de Cc: serusers@lists.iptel.org Sent: Wednesday, December 03, 2003 3:35 PM Subject: Re: [Serusers] 404 Not Found when using <user>@<ser_proxy_ip>
Hello,
The expression that made it work for me was:
if( uri=~"@<ip-address>" ) { rewritehost("<domain-name>"); };
Just one more question: why has this changed from previous versions????
Thanks!!
Jaime
From: Daniel-Constantin Mierla
Daniel-Constantin.Mierla@fokus.fraunhofer.de on
03/12/2003 13:18
Please respond to Daniel-Constantin.Mierla@fokus.fraunhofer.de
To: Jaime GIL/EN/HTLUK@HTLUK cc: serusers@lists.iptel.org
Subject: Re: [Serusers] 404 Not Found when using <user>@<ser_proxy_ip>
Hello Jaime, I guess the same situation was discussed in the next thread, yesterday: http://lists.iptel.org/pipermail/serusers/2003-December/004146.html
Take a look and see if is your case.
Daniel
On 12/3/2003 2:04 PM, jaime.gil@orange.co.uk wrote:
Hi,
I tried in before in serdev, but nobody seems to know. So here it goes
again:
We are getting a strange 404 Not Found when sending requests (INVITE,
SUBSCRIBE,
etc) with a sip request uri in the form sip:<user>@<ser-proxy-ip>.
However, it
works when specifying sip:<user>@<domain-of-the-proxy>
<user> is registered in the usrloc database, and the config file looks
like:
-------------------------- Config
starts -------------------------------------
[.....]
alias="ser-test.com" alias="192.168.23.23"
[.....]
route { if (uri==myself) {
[.....]
if (!lookup("location")) { log(1, "Not in location\n"); sl_send_reply("404", "Not Found"); break; } if (!t_relay()) { sl_reply_error(); break; }; break;
}
----------------Config ends ----------------------
The same request and config file in 0.8.11 did not give such an error.
Are
there
any significant changes on how 0.8.12 looks up for registration
information?
Any
hints are much appreciated.
Regards,
Jaime
****
Important. Confidentiality: This communication is intended for the above-named
person and
may be confidential and/or legally privileged. Any opinions expressed in
this
communication are not necessarily those of the company. If it has come to
you
in error you must take no action based on it, nor must you copy or show
it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus
free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in
England No
2178917, with its address at St James Court, Great Park Road, Almondsbury
Park,
Bradley Stoke, Bristol BS32 4QJ.
****
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
**************************************************************************** ***
Important. Confidentiality: This communication is intended for the above-named person
and
may be confidential and/or legally privileged. Any opinions expressed in
this
communication are not necessarily those of the company. If it has come to
you
in error you must take no action based on it, nor must you copy or show it
to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus
free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in
England No
2178917, with its address at St James Court, Great Park Road, Almondsbury
Park,
Bradley Stoke, Bristol BS32 4QJ.
**************************************************************************** ***
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers