Hi all !
I trying to complie openser-1.1.0-notls in my netbsd host and not compile.
My system is: NetBSD 3.1_RC4
Thanks for any help !!
roberto
My output is:
smtp2: {6} gmake mode=debug all
Compiling cfg.tab.c
gcc -DNAME='"openser"' -DVERSION='"1.1.0-notls"' -DARCH='"i386"'
-DOS='"netbsd"' -DCOMPILER='"gcc 3.3.3"' -D__CPU_i386 -D__OS_netbsd
-D__SMP_no -DCFG_DIR='"/usr/pkg/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DF_MALLOC -DSTATISTICS -DEXTRA_DEBUG -DFAST_LOCK
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN
-DHAVE_GETHOSTBYNAME2 -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_SELECT -c cfg.tab.c
-o cfg.tab.o
cfg.y: In function `yyparse':
cfg.y:859: error: `IPTOS_MINCOST' undeclared (first use in this function)
cfg.y:859: error: (Each undeclared identifier is reported only once
cfg.y:859: error: for each function it appears in.)
gmake: *** [cfg.tab.o] Error 1
smtp2: {7}
--
Ing. Roberto Pereyra
ContenidosOnline
Looking for Linux Virtual Private Servers ? Click here:
http://www.spry.com/hosting-affiliate/scripts/t.php?a_aid=426&a_bid=56
Hi,
Can someone give me some idea of how i can obtain CDR from Openser please?
I saw a open source software called cdrtools, however, i don't want to
install apache on my machine.
Any other CDR software will work with openser?
Regards,
Howard
Hi all,
i have ser-0.9.6 and serweb (0.9.6), with mysql support and SQL
accounting enabled (DEFS+=-DSQL_ACC). Unfortunately i am not able to
configure missed calls correctely (not being displayed in serweb and
no entry in mysql).
mysql> select * from missed_calls;
Empty set (0.01 sec)
what's wrong with my config?
thx a lot...
my config looks like:
[...]
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
modparam("auth_db|acc|uri_db|usrloc", "db_url",
"mysql://ser:heslo@localhost/ser")
modparam("acc", "log_missed_flag", 3 )
modparam("acc", "db_missed_flag", 3)
modparam("acc", "db_flag", 1)
modparam("acc", "log_level", 1)
route{
[....]
if (!lookup("location")) {
if ((method=="INVITE" || method=="ACK") && t_newtran() ) {
t_reply("404", "Not Found");
acc_log_request("404 Not Found");
acc_db_request("404 missed call", "missed_calls");
break;
};
sl_send_reply("404", "User Not Found");
break;
}else {
setflag(3);
t_relay();
break;
};
Hello list,
I have 2 avps containing a username ($avp(s:usr))and a domain
($avp(s:domain)) retrieved from db and I would like to build an uri by
joining this 2 avps with an '@' in the middle.
I have checked avp_subst and avp_printf but it doesn't work as, for
what I have understood, they only accept pseudo variables (and not
other avps) for the replacement. For example,
avp_printf("$avp(s:uri)", "$avp(s:usr)@$avp(s:domain)")
is not valid.
Is there a (simple) way to achieve what I want (I am using version
1.1.0-notls) ?
Thank you,
-vma
.
Hi,
I can't get dialog:active_dialogs statistic in my custom module.
There is a fragment of my code:
stat_var *psvActive_dlg_stat;
str sActive_dlg;
long lCurrentNumActiveDlg =0;
char szStatisticName[ 25];
strcpy( szStatisticName, "dialog:active_dialogs");
sActive_dlg.s = szStatisticName;
sActive_dlg.len = strlen( szStatisticName);
psvActive_dlg_stat = get_stat( &sActive_dlg );
if (psvActive_dlg_stat)
lCurrentNumActiveDlg = get_stat_val( psvActive_dlg_stat );
....
The problem is that get_stat() always returns 0.
Also I get error when I try to get the statistic by using openserctl:
# openserctl fifo get_statistics dialog:active_dialogs
404 Statistic not found
But the following works ok:
ClaroSIS22:/usr/local/sbin# openserctl fifo get_statistics dialog:
200 OK
Module name = dialog; statistics=3
dialog:active_dialogs = 0
dialog:processed_dialogs = 0
dialog:expired_dialogs = 0
What could be the problem?
Thank you in advance,
Leonid Fainshtein
********************************************
This outgoing mail message was scanned by McAfee GroupShield Engine
%tn%
Hi!
append_rpid_hf() was removed from CVS in 2005 with the following note:
"Rpid support dropped, it will be implemented using AVPs."
Is there a standard way of implementing this?
OpenSER utilizes avp_printf() for this which isn't part of SER:
http://www.mail-archive.com/devel@openser.org/msg02248.html
What is the Best Current Practice to add the Rpid header?
If there is none I'd help implementing something new since I'm already
tackling some Rpid to P-Asserted-Identity transformation things.
It would also be handy to add the privacy tag according to another
AVP (although I'm not using it).
Cheers,
Hendrik
--
freenet Cityline GmbH, Hamburger Chaussee 2-4, 24114 Kiel, Germany
Phone: +49 (0)431 9020552, Fax: +49 (0)431 9020559
Internet: http://www.freenet.de, eMail: hendrik.scholz(a)freenet-ag.de
Hi all,
Just wondering if anyone else has had this problem. I have noticed while
tracing on my OpenSER server, that every now and then the server receives a
packet which it does to respond to immediately, resulting in a string of
packets being sent to the server and then the server responding a few
seconds later. This does not happen all the time, just say maybe once or
twice every hour. The rest of the time the signaling is correct and
responses follow request packets in the correct order.
What I am trying to figure out is whether this is a load traffic issue (i.e.
can the server not handle too much load), and if so is it OpenSER or the
network or the server in general? I have run diagnostics on the servers and
there is nothing wrong with the hardware.
On the other hand Could this be related to any timer issues? I remember
there was mention of timers in SER but are there any default timer settings
that can be tweaked?
Thanks in advance for any response.
Hi!
I was testing my ser proxy with sipsak and i found one error.
invoking sipsak with the following command:
# sipsak -IU -vvv -s sip:sipsak@scscf.ims.touk.pl -l 5061 -H 192.168.0.138 -e 1 -S -a sipsak
sipsak inserts an extratrailing zero in the username
this is both in the to and from headers as well in the authentication header.
U 2006/12/18 12:52:48.594546 192.168.0.138:5061 -> 192.168.0.74:5060
REGISTER sip:scscf.ims.touk.pl SIP/2.0.
Authorization: Digest username="sipsak0", uri="sip:scscf.ims.touk.pl", algorithm=MD5, realm="scscf.ims.touk.pl", nonce="4586820caf30028588ff88825a90f86abbdb598d", response="66968ba65014ad848a3fbe0cc9331daf".
Via: SIP/2.0/UDP 192.168.0.138:5061;branch=z9hG4bK.5fcbc0b0;rport;alias.
From: sip:sipsak0@scscf.ims.touk.pl;tag=391d3b1a.
To: sip:sipsak0@scscf.ims.touk.pl.
Call-ID: 958216986(a)192.168.0.138.
CSeq: 2 REGISTER.
Content-Length: 0.
Max-Forwards: 70.
User-Agent: sipsak 0.9.6.
Expires: 15.
Contact: sip:sipsak0@192.168.0.138:5061.
Ive put the whole log in the attached file.
Bests Tomasz
I'm working on an Asterisk+OpenSER setup and I am in the process of
implementing the following: registration has to be handled by OpenSER,
but it has to be recognized by Asterisk. For that purpose, OpenSER is
authenticating against Asterisk's "sipfriends" realtime table. That
works OK. But OpenSER should also update fields "ipaddr", "port", and
"regseconds" in the same table, or else Asterisk won't be able to direct
calls to the logged SIP phones.
I'm thinking of implementing an Oracle trigger (or rather asking the
Oracle DBA to do that) so all updates/inserts into the location table
will cause updates in sipfriends. As far as I know, I need to take the
IP and port from the "contact" field of the location table. Or should I
use the "received" field? In my tests, the "received" field gets set to
NULL, although "contact" has the info I need. Can I use the data from
"contact" always?
For the regseconds field, I'll just have to make a conversion from the
local time format (used by the "expires" field of location) to the unix
timestamp format (used by "regseconds" in Asterisk).
Oh, by the way, this is the location table definition that worked OK
with Oracle. I had to ask for a login trigger so the date fields would
accept the 'YYYY-MM-DD HH:MM:SS' format. Also, Oracle refuses to accept
an empty string as a non-null value.
CREATE TABLE location (
username varchar2(64) DEFAULT '',
domain varchar2(128) DEFAULT 'vono.net.br',
contact varchar2(255) DEFAULT '',
received varchar2(255) DEFAULT '',
path varchar2(255) DEFAULT '',
expires date DEFAULT '2020-05-28 21:32:15' NOT NULL,
q decimal(10,2) DEFAULT 1.0 NOT NULL,
callid varchar2(255) DEFAULT 'Default-Call-ID' NOT NULL,
cseq int DEFAULT 42 NOT NULL,
last_modified date DEFAULT '1900-01-01 00:00' NOT NULL,
flags int DEFAULT 0 NOT NULL,
user_agent varchar2(255) DEFAULT '',
socket varchar2(128) DEFAULT '',
methods int DEFAULT NULL,
PRIMARY KEY(username, domain, contact)
);