Hi
I have beed trying to setup SER for the last two weeks
but with little success. My end devices can register
with SER with the Default config but if I enable
disgest authentication. The end devices can not
register and I get "401 unathorised (binding 0)"
I created two user accout using "serctl add username
password " and it says the user was added successful.
below is my ser.cfg file.
Yoru help is really appreciated. Thanks in advance
Mohamed omar
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei
Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters
------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
alias=sipproxy.amatek.net
alias=192.168.77.151
alias=amatek.net
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
#port=5060
#children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading
----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters
---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which
true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic
-------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy;
that's
# particularly good if upstream and downstream
entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following
command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest
authentication
if (!www_authorize("sipproxy.amatek.net",
"subscriber")) {
www_challenge("sipproxy.ametek.net", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our
USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful
forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
Hello,
I would like to do the following.
an INVITE msg need to be redirected to an available server.
So when I get an INVITE, SER will respond with "Temporarily moved" and
will provide the IP of the available destination.
To be able to obtain this info, I have written a module that
has an exported function that I can call from within the .cfg
file. This function communicates with a TCP server and obtains
the IP address of the next available destination. The TCP server maintains
the status and load balance info of all the available destinations.
I know that I can use rewritehost cmd from within the .cfg file and
change the host IP and then call sl_reply() to redirect the INVITE.
How do I change the IP info from within the function that I have written
Hopefully I am making sense here.
thanks,
Jignesh Gandhi
Hello List.
I'm using SER as my SIP platform, i'm still using it in a lab
enviroment, i need to solve some issues before move it to a "normal"
enviroment.
What i want to do is make some changes in the authorization of a call. Now,
when a INVITE arrives to my SER platform the user is challenged by radius in
my DB. This is done by the : radius_proxy_authorize. For the other hand
I'm able to return any parameter in the radius Access-Response message. So,
here is my question: Is possible for SER to "understand" this
access-response and the parameters that contains in it?. For example is
possible to return in a radius access-response a parameter called
"Redirect-Number" that changes the original dialed number by the user for
another number?. In a diagram may look like this :(this is a very easy
example)
User dial 00-562-2408190 ----------- Challenged with Radius --------
Radius Return Parameter Redirect-Number=56-2-2204567 ---- The call is
placed.
Is possible to do this?.
Do i have to use maybe a exec module or something like this?
Any idea?
Thanks in advace.
Best Regards
Ricardo Martinez.
I am trying to register Windows Messenger 5 with SER and am getting
the following error:
Signing into SIP Communications Service has failed beacuse the
service is temporarily unavailable.
I've looked at other forums and they suggested that I make sure the
domains are the same....I think they are. My user is
aisling(a)10.0.1.12 and my server domain is 10.0.1.12.....
Any other suggestions as to what the problem maybe??
Many Thanks,
Aisling.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
----------------------------------------------------------------------------------------
Hi All
I need your assistance,
On the serweb! Note: I have created all the needed files prolog separator
and epilog
Warning: virtual(): Unable to include '/prolog.html' - request execution
failed in /usrlocal/apache2/htdocs/html/page.php on line 48
Warning: virtual(): Unable to include '/separator.html' - request execution
failed in /usrlocal/apache2/htdocs/html/page.php on line 50
Warning: virtual(): Unable to include '/epilog.html' - request execution
failed in /usrlocal/apache2/htdocs/html/page.php on line 147
And with the
Serctl command I get
ERROR 1045: Access denied for user: 'serro@localhost' (Using password: YES)
Although it is updating the DB and I have granted all privileges to 'ser'
and 'serro' users
Shiran Guez
Andreas,
Could you provide a tcpdump trace with your call scenario to
support(a)ag-projects.com? We have no device with which to replicate the
problem ourselves and I think is a valid call flow you describe.
Regards,
Adrian
========
Hi,
I've tried mediaproxy and it works for "normal" audio streams, but
doesn't work for T.38 reINVITES with different RTP ports. Can anyone
confirm this or does anyone have a solution?
Scenario:
A sends INVITE to SER with SDP audio, port=5004
SER sends INVITE to B with SDP audio, port=35004 (mediaproxy port)
B sends OK to SER with SDP audio, port=5004
SER sends OK to B with SDP audio, port=35004
Now G.729 audio is proxied via mediaproxy correctly, until:
A sends reINVITE to SER with SDP image, port=6004
SER sends reINVITE to B with SDP image, port=35004
B sends OK to SER with SDP image, port=6004
SER sends OK to B with SDP image, port=35004
A and B now send T.38-packets to mediaproxy, which doesn't forward them
to the endpoints (neither to port 6004 nor to 5004). There is also only
one session shown with session.py (I guess the G.729-session on ports
5004-5004). It seems that mediaproxy doesn't open a new pair of ports
for this reinvite.
It then works again with G.729-audio after the fallback:
A sends reINVITE to SER with SDP audio, port=5004
SER sends reINVITE to B with SDP audio, port=35004
B sends OK to SER with SDP audio, port=5004
SER sends OK to B with SDP audio, port=35004
It's not possible to configure the UACs to use the same port for G.729
and T.38 (Mediatrix 2102) for a workaround.
Andy
Ok thanks to everyone who answered my questions about setting up a
mysql database. Im after realising though that my sip client should
be able to register without setting up a database. However my client
wont register. I run SER and it says:
Listening on
10.0.1.4[10.0.1.4]5060
So SER is running.
In my ser.cfg file I've changed the 'if (!www_authorize)' bit to my
domain which I've set as 10.0.1.4. I've also used the 'export
SIP_DOMAIN=10.0.1.4' command. Is this the correct way to set my
domain/realm??.......If i give a windows messenger client an address
od aisling(a)10.0.1.4, it should connect, yes?
Please please help-I should have had this working days ago.
Thanks again,
Aisling.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
----------------------------------------------------------------------------------------
I have just downloaded ser-0.8.14_linux_i386.tar and unziped it...
when i run the serctl start i get the error
Starting SER : cat: /var/run/ser.pid: No such file or directory
started pid()
when i type "ser" on the command line i get :
ERROR: bad config file (1 errors)
and when i search for the ser.cfg i find that there is more than one
copy if this file...which on of these does the sertctl and/or ser read?
there is:
/usr/local/etc/ser/ser.cfg
/usr/local/etc/ser.cfg
and since i ran the command 'tar -xvf ser-0.8.18_linux_i386.tar' from
the root directory there is now a 'usr' directory in my root directory.
therefore there is also a
/root/local/etc/ser/ser.cfg and
/root/local/etc/ser.cfg
files
which one of these files is used when i run ser and/or serctl start ser?
Please help!!
Ok Im totally stuck - I am trying to use the serctl facility to set
up user accounts on ser. This seems to ask for a mysql password. I
have installed the mysql modules on my pc but didnt set up a password
so why has it asked for a password??....Is there a default
one?.....It wont let add a user because it says I keep adding the
wrong password
Any help appreciated
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
----------------------------------------------------------------------------------------