Hi list,
I am new two OpenSER. I installed OpenSER 1.1.0-notls and I need it
to listen on both 127.0.0.1 and one of my physical interface's IP address.
The manual page states:
% -l address Listens on the specified address/interface. Multiple -l
% mean listening on multiple addresses. The address format is
% [proto:]address[:port], where proto = udp|tcp and address =
% host|ip_address|interface_name. Example: -l localhost, -l
% udp:127.0.0.1:5080, -l eth0:5062. The default behaviour is
% to listen on all the ipv4 interfaces.
I tried the following command-line, without success. I cannot connect to
either one of the IP address I specified, depending on the order I provided
them :
% openser -u voipproxy -g voipproxy -l 84.xxx.xxx.xxx -l 127.0.0.1 -D -E
And in another terminal:
% # lsof -nPi4 -ap `pgrep -d, openser`
% COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
% openser 30837 voipproxy 5u IPv4 60272 UDP 84.xxx.xxx.xxx:5060
% openser 30838 voipproxy 5u IPv4 60272 UDP 84.xxx.xxx.xxx:5060
% openser 30839 voipproxy 5u IPv4 60272 UDP 84.xxx.xxx.xxx:5060
If I turn the command-line to:
% openser -u voipproxy -g voipproxy -l 127.0.0.1 -l 84.xxx.xxx.xxx -D -E
I get:
% # lsof -nPi4 -ap `pgrep -d, openser`
% COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
% openser 30845 voipproxy 5u IPv4 60382 UDP 127.0.0.1:5060
% openser 30846 voipproxy 5u IPv4 60382 UDP 127.0.0.1:5060
% openser 30847 voipproxy 5u IPv4 60382 UDP 127.0.0.1:5060
Note that in both case I get:
% Listening on
% udp: 84.xxx.xxx.xxx [84.xxx.xxx.xxx]:5060
% udp: 127.0.0.1 [127.0.0.1]:5060
% tcp: 84.xxx.xxx.xxx [84.xxx.xxx.xxx]:5060
% tcp: 127.0.0.1 [127.0.0.1]:5060
Except the order change, following the command-line.
I could have missed something and would be glad if someone pointed it
out to me.
Thank you.
Regards,
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
Hi everybody.
I have the next enviroment.
OpenSer 1.1.X
MySQL 5.0
Linux Fedora 4
Architecture:
We have 4 servers one of them work like a LoadBalancer (openser proxy dispatcher), behind of it are the others 2 servers (openser) that have the function to kept the sessions, register, etc... they have the parameter in dbmode to 3 for kept out the cache system and the last is the MySQL DB that share the 2 sip servers.
The problem is that, when a phone register it the other server delete the register in table location like if it detect that the register expires.
Anybody have an idea of this type of performence?
Thank's advance..
---------------------------------
Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
Hi,
Is there any Ser function for lookup contents in a given column of the
subscriber table, like the *is_user_in* function that looks up in group
table?
Thanks,
Ricardo.
Hi,
While authorizing a user, auth_db only loads additional AVPs on success.
IMO it would also make sense to load them on failure, so you could
easily check if it's a known user with wrong credentials or an unknown
user.
It would especially be useful for fetching the uuid of the user although
authorization fails.
Any comments?
Andy
Hi folks,
I've been using openser for last one year and its working fine. Recently I upgraded my openser to 1.1 stable release which allows me to have more features.
But for the last 15 days I have had many discrepencies in the accounting. Among 40 clients to whom we provide service, there was one client who had around 15,000 INVITEs without BYEs in a single day. The UA is a Cisco Gateway.
I am aware of BYEs being missed with openser, but there used to be hardly 2% Byes missing. This is very unusual to me and I suffered huge losses due to this behaviour as all the calls were passed to a pstn gateway.
The method of authentication that we use for these clients are IP based authentication. I use the function allow_trusted() to get the clients authenticated and make calls. These calls are sent to some Tier1 carriers for pstn termination.
I wanted to take some expert advice on this issue.
- Is there any way that the UA can bypass the Openser after sending INVITE to openser even after record routing function is incorporated in the script.
- Is there a way that the UA can disconnect calls without sending BYEs to the openser.
- Are there many risks involved in IP based authentication? I am using IP based authentication as these clients only want to call, they dont want to be called.
- If this was a problem with all the UAs, I would have thought that there must be some problem with my openser configuration, but this is with one particular client. The same Cisco gateway at other places work perfectly with hardly 1-2% BYEs missing which is affordable.
This indicates that someone must have intentionaly done this.
If someone has come across this problem earlier please share it with me.
The query I used to find the INVITEs without BYEs is as follows:
SELECT
t1.from_uri as orig_number,
t1.to_uri as term_number,
DATE_FORMAT(t1.timestamp, '%a %b %D %Y, %h:%i:%s %p') as
calldate,
t1.sip_callid as callid
FROM
acc t1
WHERE
t1.sip_method='INVITE' AND
t1.sip_callid NOT IN (SELECT t2.sip_callid FROM acc t2 WHERE
t2.sip_method = 'BYE').
Thanks a lot in advance...
w/regards,
jayesh
---------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Is there a reason why the avp_check() function cannot be used in the
ONREPLY_ROUTE, while it can be used for example in the FAILURE_ROUTE?
Using OpenSER 1.1.0 from CVS of a few days ago.
Thanks.
--
___________________________________________________
__
|- giannici(a)neomedia.it
|ederico Giannici http://www.neomedia.it
___________________________________________________
Hi evrybody.
I want to change my implementation of openser 1.1
thati have in mysql with ORACLE and if someone knows
what implicates this change for the modules for
example "usrloc" i apreciate if give me some feedback.
Thank's.
___________________________________________________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
I like to connect Openser-1.0.1 with Freeradiuus and
radiusclient-ng. I'm following the instructions of:
http://www.openser.org/docs/openser-radius-1.0.x.html
But when I'm starting the Openser-1.0.1 and the
modules (like acc) is being initialized, some errors
appears related with " error reading radius
dictionary".
Thanks
Alberto
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
No matter what version of openser I build the PA and Jabber modules will
fail when loading up modules in Openser start up. Both modules compile
without error. Interesting enough is both these modules do not get
installed by default with "make install", so I have to install them by
hand. Anyone now what I'm missing or what isnt working.
loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/auth.so"
loadmodule "/usr/local/lib/openser/modules/auth_db.so"
loadmodule "/usr/local/lib/openser/modules/avpops.so"
loadmodule "/usr/local/lib/openser/modules/dbtext.so"
loadmodule "/usr/local/lib/openser/modules/diversion.so"
loadmodule "/usr/local/lib/openser/modules/domain.so"
loadmodule "/usr/local/lib/openser/modules/enum.so"
loadmodule "/usr/local/lib/openser/modules/flatstore.so"
loadmodule "/usr/local/lib/openser/modules/gflags.so"
loadmodule "/usr/local/lib/openser/modules/mangler.so"
loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/openser/modules/pa.so"
loadmodule "/usr/local/lib/openser/modules/options.so"
loadmodule "/usr/local/lib/openser/modules/permissions.so"
loadmodule "/usr/local/lib/openser/modules/speeddial.so"
loadmodule "/usr/local/lib/openser/modules/xlog.so"
loadmodule "/usr/local/lib/openser/modules/acc.so"
loadmodule "/usr/local/lib/openser/modules/exec.so"
loadmodule "/usr/local/lib/openser/modules/group.so"
loadmodule "/usr/local/lib/openser/modules/msilo.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
#oadmodule "/usr/local/lib/openser/modules/jabber.so"
loadmodule "/usr/local/lib/openser/modules/uri.so"
loadmodule "/usr/local/lib/openser/modules/uri_db.so"
A few months ago I downloaded example config files, as a way to
learning openser, but I'm not 100% sure where I got them.
One of them has this header:
# $Id: nat-rtpproxy.cfg 9 2005-08-19 15:30:55Z
/CN=Greger V. Teigre/emailAddress=greger(a)onsip.org $
I just found (re-found?) at onsip.org->downloads->Getting Started,
a later version of nat-rtpproxy.cfg with this header:
# $Id: nat-rtpproxy.cfg 51 2006-01-31 13:28:04Z
/CN=Paul Hazlett/emailAddress=paul(a)onsip.org $
and they appear different only in the loose_route handling:
OLD:
if (loose_route()) {
if (has_totag() && (method=="INVITE" || method=="ACK")) {
if (nat_uac_test("19")) {
setflag(6);
force_rport();
fix_nated_contact();
};
force_rtp_proxy("l");
};
route(1);
break;
};
NEW:
if (loose_route()) {
if ((method=="INVITE" || method=="REFER") && !has_totag()) {
sl_send_reply("403", "Forbidden");
break;
};
if (method=="INVITE") {
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
break;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
break;
};
consume_credentials();
if (nat_uac_test("19")) {
setflag(6);
force_rport();
fix_nated_contact();
};
force_rtp_proxy("l");
};
route(1);
break;
};
Now, who wants to take a stab at explaining why this was changed?
Why was ACK checked for in the old version and not the new?
(my guess: zero length message body messes with force_rtp_proxy)
Why does that INVITE logic appear in the new loose_route handler?
What case does that handle that the later "if (method == INVITE)"
doesn't handle? Does this have something to do with re-INVITES?
For convenience, the two files are here:
http://a.mainstreet.net/nat-rtpproxy.5.0.cfghttp://a.mainstreet.net/nat-rtpproxy-2006.cfg
And do we openser people have our own set of sample config
files somewhere on openser.org?
Thanks,
-mark