Hi there,
I have a question concerning the following situation:
One client makes a call to another client in the same (private) LAN over a SER
located in the public network. It is easy to check if both clients are behind
the same NAT. So one can avoid using the mediaproxy and therefore the
mediastream stays in the local LAN.
But there is a problem if one client uses STUN to detect the outbound IP of the
NAT-Box and changes the IP-Address of his SDP body. This value must be
recovered by SER - otherwise the RTP-stream of this local connection is relayed
over the public internet.
I managed getting the original IP-Address (external script which extracts the
IP-Addr from the Call-ID header, if it is there...) and store it persistant in
the Location Database.
My question: How is it possible to mangle the SDP-body by SER with the
sdp_mangle_ip() - function and a non static argument. I have to use this
function with an argument given by an external script. Is it possible or does
anybody know another possibility to get rid of this mess?
regards,
Philipp
I configured ser using MySQL as DB.
Now I have to fix the problem that I can login more then one time with the same user and password.
I'm sure I can do this using radius, but I'm afraid to instal another radius server.
Can I do it by mysql.so alone?
thanks
Rosario
What exactly is a ruri? I'm trying to push a packet into the fifo
buffers using serctl, a packet like this:
serctl fifo t_uac_dlg 'BYE sip:116@xxx.xxx.55.252:5060' 'Via:
SIP/2.0/UDP xxx.xxx.138.139:5060;branch=z9hG4bKjqQ5yqXAE' 'From:
82616925 <sip:82616925@xxx.xxx.131.216>;tag=as67ffe585' 'To: 116
<sip:116@xxx.xxx.131.216>;tag=lZfPgRflzRRtcGgg' 'Contact:
<sip:82616925@xxx.xxx.138.139>' 'Call-ID:
OmyJNtz3QH1n0deX(a)xxx.xxx.55.252' 'CSeq: 102 BYE' . .
and i get:
400 fifo_uac: ruri invalid
In addition to what the ruri is, if anyone knows what's wrong with my
packet there, i'd love to know.
Thank you.
hi
i config my windows messenger as you tell in your docs. but messenger
don't login and return this error message : invalid address.
Regards
Seyyed Abbas Hosseini
Hi All
---------------------------------
These is my configuration file
---------------------------------
#
# $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)
#Uncomment these lines to enter debugging mode
debug=8
fork=yes
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
----------------------------------
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
# ----------------- setting module-specific parameters
---------------
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
#modparam("auth_radius", "service_type", 15)
# ------------------------- request routing logic
-------------------
route{
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;
}
;
# authenticate register message using radius
if (method=="REGISTER") {
# Uncomment this if you want to use digest
authentication
if (!radius_www_authorize("")) {
www_challenge("","0");
break;
};
save("location");
break;
};
# route (proxy) invite message to gateway
# if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest
authentication
# if (!radius_www_authorize("")) {
# www_challenge("", "0");
# break;
# };
if (method=="INVITE") || (method=="CANCEL") {
# Uncomment this if you want to use digest
authentication
if (!radius_www_authorize("")) {
www_challenge("","0");
break;
};
record_route();
rewritehostport("cisco_sip_gw_ip:5060");
if (!t_relay()) {
sl_reply_error();
};
break;
};
}
--------------------------------------------
When it is running it showes the this result
--------------------------------------------
0(14249) DEBUG: init_mod: auth
0(14249) auth module - initializing
0(14249) find_export: found <sl_send_reply> in module
sl_module [/usr/local/lib/ser/modules/sl.so]
0(14249) DEBUG: init_mod: auth_radius
0(14249) auth_radius - Initializing
Upto this it shows after this it does not says SER is
ready
when i run ./serctl moni
[cycle #: 1; if constant make sure server lives and
fifo is on]
SER is not showing server is ready
please tell me
Thank u
Silatha
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
Hi All,
Is there a way (A script or something) to load SER so
that we can monitor server performance once realtime
traffic passes through it?
regards,
Lakmal
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
Hi,
I want to know if there is some configuration with which SER can
update the user status upon an Unclean Shutdown of UA. SER tends to
keep showing the user status as logged in with ' serctl ul show '
command.
Moreover, i wanna know if we enable voice converstaion between SER
Clients, say Windows Messenger and Kphone, Will they exchange voice
packets using the SER gateway or will they communicate directly
(p2p)...
I'm a newbie, and your help is highly appreciated...
I use ser-0.8.12-0.i386, below is my ser.cfg file
------------------------------------------------------------------------------------------
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
fifo="/tmp/ser_fifo"
loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/acc.so"
loadmodule "/usr/lib/ser/modules/domain.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"
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
loadmodule "/usr/lib/ser/modules/xlog.so"
loadmodule "/usr/lib/ser/modules/pa.so"
loadmodule "/usr/lib/ser/modules/msilo.so"
modparam("registrar", "default_expires", 120)
modparam("auth_db", "db_url", "sql://ser:heslo@localhost/ser")
modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser")
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
# main routing logic
route{
# initial sanity checks -- messages with
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;
};
if (loose_route()) {
route(2);
break;
};
record_route();
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("192.168.0.220", "subscriber")) {
www_challenge("192.168.0.220", "0");
break;
};
save("location");
break;
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (uri=~"^sip:44*@") {
rewritehostport ("192.168.0.220:5060");
forward(192.168.0.220, 5060);
}
else {
# it is an IP destination -- try to lookup it up in
user location DB
forward(uri:host,uri:port);
}
if (!t_relay()) {
sl_reply_error();
};
}
-------------------------------------------------------------------------------------------
Best regards,
A. A. Mughal
Hi,
I want to know if there is some configuration with which SER can
update the user status upon an Unclean Shutdown of UA. SER tends to
keep showing the user status as logged in with ' serctl ul show '
command.
Moreover, i wanna know if we enable voice converstaion between SER
Clients, say Windows Messenger and Kphone, Will they exchange voice
packets using the SER gateway or will they communicate directly
(p2p)...
I'm a newbie, and your help is highly appreciated...
I use ser-0.8.12-0.i386, below is my ser.cfg file
------------------------------------------------------------------------------------------
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
fifo="/tmp/ser_fifo"
loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/acc.so"
loadmodule "/usr/lib/ser/modules/domain.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"
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
loadmodule "/usr/lib/ser/modules/xlog.so"
loadmodule "/usr/lib/ser/modules/pa.so"
loadmodule "/usr/lib/ser/modules/msilo.so"
modparam("registrar", "default_expires", 120)
modparam("auth_db", "db_url", "sql://ser:heslo@localhost/ser")
modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser")
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
# main routing logic
route{
# initial sanity checks -- messages with
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;
};
if (loose_route()) {
route(2);
break;
};
record_route();
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("192.168.0.220", "subscriber")) {
www_challenge("192.168.0.220", "0");
break;
};
save("location");
break;
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (uri=~"^sip:44*@") {
rewritehostport ("192.168.0.220:5060");
forward(192.168.0.220, 5060);
}
else {
# it is an IP destination -- try to lookup it up in user location DB
forward(uri:host,uri:port);
}
if (!t_relay()) {
sl_reply_error();
};
}
-------------------------------------------------------------------------------------------
Best regards,
A. A. Mughal
Hi All,
I have Aastra 480i and Cisco both behind a Netscreen firewall. When rebooted the Aastra registers with the SER. The re-registration time is around an hour (it cannot be changed for some reason!). Now after say about 7 mins when I do "serctl ul show" I cannot see the Aastra in the SER at all. The Cisco is still present. Also the Aastra can still make outgoing calls but cannot receive any incoming calls(thats because the SER doesnt have it anymore.)
If the NAT bindings are lost, once you make an outgoing call, the phone should receive an incoming call afterwards. But for Aastra something very strange is going on.
I cant figure out that why after a short period itself the SER no more has the Aastra in its memory?
Does anyone has any clue whats going on? Is there a problem with the phone or SER?
Thanks,
Hitesh.