Hello,
did you attach the whole example ? You just need to put
lookup("aliases") in the script, not the rest of the example.
Jan.
On 16-05 20:10, George KAPELIOS wrote:
Jan,
Looking in the Admin's Guide, I found the following script:
Example 5. Configuration of Use of Aliases
if (!uri==myself) { # request not for our domain...
route(1); # go somewhere else, where outbound requests are processed
break;
};
# the request is for our domain -- process registrations first
if (method=="REGISTER") { route(3); break; };
# look now, if there is an alias in the "aliases" table; don't care
# about return value: whether there is some or not, move ahead then
lookup("aliases");
# there may be aliases which translate to other domain and for which
# local processing is not appropriate; check again, if after the
# alias translation, the request is still for us
if (!uri==myself) { route(1); break; };
# continue with processing for our domain...
...
I have attached it (as it is) in the ser.cfg file, but when I'm trying
to run the ser I' m getting ERROR: bad config file.
What I' am doing wrong ?
George
-----Original Message-----
From: 'Jan Janak' [mailto:jan@iptel.org]
Sent: Friday, 16 May, 2003 19:43
To: George KAPELIOS
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Alias assignment problem
On 16-05 19:36, George KAPELIOS wrote:
Jan,
As I 'm not so familiar with all the details, could you please explain
me further:
In which script you mean ?
The configuration script of the server.
How can I start using that table ? Do I have to
configure or create it
?
It is created in the database by default. You just need to put
lookup("aliases") command in your script. Otherwise it makes no sense
to create the aliases because the wouldn't be used anyway.
Where can I find the sc utility ? I 'm
running 0.8.10 (install from
.tar) and is not found in the /usr/local/sbin/ folder, where the rest
ser executables files are.
Sorry, it is called serctl in the distribution.
Jan.
George
-----Original Message-----
From: Jan Janak [mailto:jan@iptel.org]
Sent: Friday, 16 May, 2003 19:24
To: George KAPELIOS
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Alias assignment problem
Hello,
you must have lookup("aliases") somewhere in your script.
On 16-05 19:18, George KAPELIOS wrote:
Trying to create alias, I am getting the
following message:
"400 Table 'aliases' Not Found"
Could any can help ? Why the above mentioned table has not been
created
?
Probably because you are not using it.
What is exactly the <uri> format ?
sip:username@domain.com
What is the solution for creating alias ?
Use sc utility, i.e.
sc alias add my_alias sip:my_username@mydomain.com
Jan.