I am trying to make openser-1.2.0-notls and get the following error:
In file included from mi_xmlrpc.c:38:
mi_xmlrpc.h:35:20: error: xmlrpc.h: No such file or directory
In file included from mi_xmlrpc.c:38:
mi_xmlrpc.h:37: error: syntax error before âenvâ
mi_xmlrpc.h:37: warning: type defaults to âintâ in declaration of âenvâ
mi_xmlrpc.h:37: warning: data definition has no type or storage class
mi_xmlrpc.h:38: error: syntax error before â*â token
mi_xmlrpc.h:38: warning: type defaults to âintâ in declaration of
âxr_responseâ
mi_xmlrpc.h:38: warning: data definition has no type or storage class
In file included from mi_xmlrpc.c:39:
xr_writer.h:37: error: syntax error before â*â token
xr_writer.h:38: error: syntax error before â*â token
In file included from mi_xmlrpc.c:40:
xr_parser.h:36: error: syntax error before â*â token
In file included from mi_xmlrpc.c:41:
xr_server.h:35: error: syntax error before â*â token
xr_server.h:35: error: syntax error before â*â token
xr_server.h:36: warning: type defaults to âintâ in declaration of
âdefault_methodâ
xr_server.h:36: warning: data definition has no type or storage class
xr_server.h:38: error: syntax error before â*â token
mi_xmlrpc.c:44:26: error: xmlrpc_abyss.h: No such file or directory
mi_xmlrpc.c:50: error: syntax error before âenvâ
mi_xmlrpc.c:50: warning: type defaults to âintâ in declaration of âenvâ
mi_xmlrpc.c:50: warning: data definition has no type or storage class
mi_xmlrpc.c:51: error: syntax error before â*â token
mi_xmlrpc.c:51: warning: type defaults to âintâ in declaration of
âxr_responseâ
mi_xmlrpc.c:51: warning: data definition has no type or storage class
mi_xmlrpc.c: In function âmod_child_initâ:
mi_xmlrpc.c:162: warning: implicit declaration of function
âxmlrpc_server_abyss_init_registryâ
mi_xmlrpc.c:172: error: âxmlrpc_server_abyss_rpc2_handlerâ undeclared (first
use in this function)
mi_xmlrpc.c:172: error: (Each undeclared identifier is reported only once
mi_xmlrpc.c:172: error: for each function it appears in.)
mi_xmlrpc.c:178: error: âxmlrpc_server_abyss_default_handlerâ undeclared
(first use in this function)
mi_xmlrpc.c:193: warning: implicit declaration of function âxmlrpc_env_initâ
mi_xmlrpc.c:196: warning: implicit declaration of function
âxmlrpc_build_valueâ
mi_xmlrpc.c:196: warning: assignment makes pointer from integer without a
cast
mi_xmlrpc.c:197: error: request for member âfault_occurredâ in something not
a structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:198: error: request for member âfault_stringâ in something not a
structure or union
mi_xmlrpc.c:219: warning: implicit declaration of function
âxmlrpc_env_cleanâ
mi_xmlrpc.c:220: warning: implicit declaration of function âxmlrpc_DECREFâ
make[1]: *** [mi_xmlrpc.o] Error 1
make[1]: Leaving directory `/usr/src/openser-1.2.0-notls/modules/mi_xmlrpc'
make: *** [modules] Error 2
rpm -q xmlrpc-c-devel
xmlrpc-c-devel-1.04-1.fc4
find -name xmlrpc.h
./usr/include/xmlrpc-c/xmlrpc.h
Any suggestions would be appreciated.
Regards
Cameron
Hi
Is there any way, i can control channels like asterisk
per user this many channels to make calls out.
how can i achive the same with openSER
any examples.
ram
Hi!
I'm trying to make xmpp module, to do this I'm configurating according
to my file system several files (xmpp_component.c, util.c, xmpp.c ...).
But I get error while compiling the file 'network.c'.
I don't know where these errors come from because the rest of the files
are OK.
These are the errors and my 'network.c' file:
Any help would be wellcomed.
Izortze.
network.c:27: error: expected =, ,, ;, asm or __attribute__
before < token
network.c: In function net_connect:
network.c:95: error: storage size of sin isnt known
network.c:97: warning: implicit declaration of function memset
network.c:97: warning: incompatible implicit declaration of built-in
function memset
network.c:97: error: invalid application of sizeof to incomplete type
struct sockaddr_in
network.c:98: error: AF_INET undeclared (first use in this function)
network.c:98: error: (Each undeclared identifier is reported only once
network.c:98: error: for each function it appears in.)
network.c:99: warning: implicit declaration of function htons
network.c:101: warning: implicit declaration of function inet_aton
network.c:104: warning: implicit declaration of function DBG
network.c:106: warning: implicit declaration of function gethostbyname
network.c:106: warning: assignment makes pointer from integer without a
castnetwork.c:107: warning: implicit declaration of function LOG
network.c:107: error: L_ERR undeclared (first use in this function)
network.c:108: warning: implicit declaration of function hstrerror
network.c:108: error: h_errno undeclared (first use in this function)
network.c:111: warning: implicit declaration of function memcpy
network.c:111: warning: incompatible implicit declaration of built-in
function memcpy
network.c:111: error: dereferencing pointer to incomplete type
network.c:111: error: dereferencing pointer to incomplete type
network.c:114: warning: implicit declaration of function socket
network.c:114: error: PF_INET undeclared (first use in this function)
network.c:114: error: SOCK_STREAM undeclared (first use in this function)
network.c:115: warning: implicit declaration of function strerror
network.c:115: error: errno undeclared (first use in this function)
network.c:119: warning: implicit declaration of function inet_ntoa
network.c:121: warning: implicit declaration of function connect
network.c:121: error: invalid application of sizeof to incomplete type
struct sockaddr_in
network.c:123: warning: implicit declaration of function close
network.c:95: warning: unused variable sin
network.c: In function net_send:
network.c:137: warning: implicit declaration of function send
network.c: In function net_printf:
network.c:149: error: va_list undeclared (first use in this function)
network.c:149: error: expected ; before args
network.c:152: warning: implicit declaration of function va_start
network.c:152: error: args undeclared (first use in this function)
network.c:153: warning: implicit declaration of function vsnprintf
network.c:154: warning: implicit declaration of function va_end
network.c:158: warning: implicit declaration of function strlen
network.c:158: warning: incompatible implicit declaration of built-in
function strlen
network.c: In function net_read_static:
network.c:166: warning: implicit declaration of function recv
network.c:168: error: L_ERR undeclared (first use in this function)
network.c:168: error: errno undeclared (first use in this function)
network.c:169: error: NULL undeclared (first use in this function)
make: *** [network.o] Error 1
/*
* $Id: network.c 1827 2007-03-12 15:22:53Z bogdan_iancu $
*
*/
include <stdio.h>
include <stdlib.h>
include <string.h>
include <unistd.h>
include <stdarg.h>
include <errno.h>
include <sys/socket.h>
include <netinet/in.h>
include <arpa/inet.h>
include <netdb.h>
include "/usr/local/src/openser-1.2.0/sip-server/sr_module.h"
int net_listen(char *server, int port)
{
int fd;
struct sockaddr_in sin;
int on = 1;
memset(&sin, 0, sizeof(struct sockaddr_in));
sin.sin_family = AF_INET;
sin.sin_port = htons(port);
if (!inet_aton(server, &sin.sin_addr)) {
struct hostent *host;
DBG("xmpp: resolving %s...\n", server);
if (!(host = gethostbyname(server))) {
LOG(L_ERR, "xmpp: resolving %s failed (%s).\n", server,
hstrerror(h_errno));
return -1;
}
memcpy(&sin.sin_addr, host->h_addr_list[0], host->h_length);
}
if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0) {
LOG(L_ERR, "xmpp: cannot socket(): %s\n", strerror(errno));
return -1;
}
DBG("xmpp: listening on %s:%d\n", inet_ntoa(sin.sin_addr), port);
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
LOG(L_WARN, "xmpp: cannot setsockopt(SO_REUSEADDR): %s\n",
strerror(errno));
}
if (bind(fd, (struct sockaddr *) &sin, sizeof(struct sockaddr_in)) < 0) {
LOG(L_ERR, "xmpp: cannot bind(): %s\n", strerror(errno));
close(fd);
return -1;
}
if (listen(fd, 1) < 0) {
LOG(L_ERR, "xmpp: cannot listen(): %s\n", strerror(errno));
close(fd);
return -1;
}
return fd;
}
int net_connect(char *server, int port)
{
int fd;
struct sockaddr_in sin;
memset(&sin, 0, sizeof(struct sockaddr_in));
sin.sin_family = AF_INET;
sin.sin_port = htons(port);
if (!inet_aton(server, &sin.sin_addr)) {
struct hostent *host;
DBG("xmpp: resolving %s...\n", server);
if (!(host = gethostbyname(server))) {
LOG(L_ERR, "xmpp: resolving %s failed (%s).\n", server,
hstrerror(h_errno));
return -1;
}
memcpy(&sin.sin_addr, host->h_addr_list[0], host->h_length);
}
if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0) {
LOG(L_ERR, "xmpp: cannot socket(): %s\n", strerror(errno));
return -1;
}
DBG("xmpp: connecting to %s:%d...\n", inet_ntoa(sin.sin_addr), port);
if (connect(fd, (struct sockaddr *) &sin, sizeof(struct sockaddr_in)) <
0) {
LOG(L_ERR, "xmpp: cannot connect(): %s\n", strerror(errno));
close(fd);
return -1;
}
DBG("xmpp: connected to %s:%d...\n", inet_ntoa(sin.sin_addr), port);
return fd;
}
int net_send(int fd, const char *buf, int len)
{
const char *p = buf;
int res;
do {
res = send(fd, p, len, 0);
if (res <= 0)
return res;
len -= res;
p += res;
} while (len);
return (p - buf);
}
int net_printf(int fd, char *format, ...)
{
va_list args;
char buf[4096];
va_start(args, format);
vsnprintf(buf, sizeof(buf) - 1, format, args);
va_end(args);
DBG("xmpp: net_printf: [%s]\n", buf);
return net_send(fd, buf, strlen(buf));
}
char *net_read_static(int fd)
{
static char buf[4096];
int res;
res = recv(fd, buf, sizeof(buf) - 1, 0);
if (res < 0) {
LOG(L_ERR, "xmpp: recv() error: %s\n", strerror(errno));
return NULL;
}
if (!res)
return NULL;
buf[res] = 0;
return buf;
}
Hi OpenSER users,
I have downloaded openSER source(1.2.x) and installed the same.
It's working fine as SIP server.
I would like to use openSER source as "Presence Server". Could you please
let me know how to proceed?
Do i need to add any module to openser source to make it work as presence
server?
Thanks and Regards,
Akkala Naidu Paidi
A R I C E N T
5th Floor, Sigma Block,
Sigma Soft Tech Park,
Bangalore - 69
Mobile: +91 9886645448
Office: +91 08041069295
*********************** Aricent-Private ***********************
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of
the individual to whom it is addressed. It may contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended. If you have received this message in error,
please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for
loss or damage arising from the use of the information transmitted by this email including damage from virus."
Hi
I'm trying to use the presence and presence_xml modules. I started with
version 1.2.1 but kept on running into memory problems so I thought I
would try the SVN version instead.
Firstly I found two small mistakes in the MySQL table setup in the SVN:
In the presentity table reveived_time should be received_time, and in
the active_watchers table remove_cseq should be remote_cseq. After
fixing this, the basic presence server seems to work although it seems
to crash from time to time.
My question is: does the presence_xml module work? It seems to crash
openser whenever I try to use it for pres-rules (i.e. force_active = 0).
If so could someone please send me a valid pres-rules document that is
known to work with the module. Does this feature work with the presence
module in 1.2.1 perhaps?
Thanks
Dave
My permissions module refuses to load due to a "database problem." OpenSER
can access this database (as it does for other modules) and I have even went
as far as defining the table in the module's parameters even though it is a
default installation.
Any help would be greatly appreciated.
OpenSER version 1.2.1 with TLS
Database: PostgreSQL
Openser.cfg:
loadmodule "permissions.so"
modparam("permissions", "db_url", "postgres://<<snip>> ")
modparam("permissions", "db_mode", 0)
modparam("permissions", "trusted_table", "trusted")
modparam("permissions", "address_table", "address")
modparam("permissions", "grp_col", "grp")
modparam("permissions", "ip_addr_col", "ip_addr")
modparam("permissions", "mask_col", "mask")
modparam("permissions", "port_col", "port")
modparam("permissions", "default_allow_file",
"/usr/local/etc/openser/permissions.allow")
modparam("permissions", "default_deny_file",
"/usr/local/etc/openser/permissions.deny")
Database:
openser=> select * from address;
id | grp | ip_addr | mask | port
----+-----+-------------+------+------
1 | 1 | <removed> | 32 | 5060
openser.log:
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: permissions -
initializing
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: Default allow file
(/usr/local/etc/openser/permissions.allow) not found => empty rule set
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: Default deny file
(/usr/local/etc/openser/permissions.deny) not found => empty rule set
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: ERROR: permissions:
address_reload(): Database problem
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]:
permissions:init_addresses(): Reload of address table failed
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: Error while initializing
allow_address function
Jun 16 12:45:15 gaia /usr/local/sbin/openser[2871]: init_mod(): Error while
initializing module permissions
Hi
I'm using the SVN version (2363) and I can find the MySQL database
structures but no script to insert them automatically.
Do I need to insert the database structures manually?
Regards
Dave
I am using the sipXtapi library in a user agent.
When running behind NAT (with STUN and rport enabled)and register
with ser 0.9.6(basic configuration).It appears that the library detects the
external address correctly and registered successful. But I see in the
Register message, in Via and Contact field some strange things, hence when
ser send Invite message
for Calling, the user agent do not received Invite message because the port
ser send Invite to
user agent do not match with the port user agent listen to.
1. sipxtapi(sipxEzphone or CrossTalk):
Received stun message from stun server (Vovida stun server):
Attribute: MAPPED-ADDRESS
Attribute Type: MAPPED-ADDRESS (0x0001)
Port: 28766
IP:
222.255.15.252 (222.255.15.252)
Send Register message to ser:
Via: SIP/2.0/UDP 222.255.15.252:28766;branch=z9hG4bK-bdec6870a8f0;rport
2. Ser reply trying message:
Via: SIP/2.0/UDP 222.255.15.252:28766
;branch=z9hG4bK-bdec6870a8f0;rport=37171
Warning: 392 xxx.xxx.xxx.xxx:5060 "Noisy feedback tells: pid=29560
req_src_ip=
222.255.15.252 req_src_port=37171 in_uri=sip:xxx.xxx.xxx.xxx out_uri=sip:
xxx.xxx.xxx.xxx via_cnt==1"
3. sipxtapi send Register message with Authorization:
Via: SIP/2.0/UDP
222.255.15.252:37171;branch=z9hG4bK-16af3dfa110f;rport
As above, ser will send Invite or Bye message to user agent in
222.255.15.252:37171
, of course user agent using sipxtapi
can not receive these message.
Can I make the change in ser config? plz help me.
Thanks in advance,
Phan Duc
Hi!
I'm installing in my system the XMPP module. My Openser version is 1.2.1
My problem is that I don't have the file 'xmpp.so' in my system ,
eventhoug I do have the rest of xmpp files, and I don't know from where
can I download it.
Thank for your help,
Izortze.
hi,
is there a limit on the number of connections for rtpproxy?
can it be increased? TIA
regards,
Nhadie
________________________________________________
Message sent using UebiMiau 2.7