Hello Guys,
Please can someone give me some pointers as to how I can get this to
work - I have looked at the guide and it's a bit big for a "browse" -
Isn't there a mini-how-to ? I need the server to access reg's etc.
Thanks,
Pieter
�This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.net/legal/email.aspx "
Hi,
I am having the same problem with SUBSCRIBEs again.... SER just keeps
on sending me
back timeouts for them... The problem persists only for any other
presentity except myself.
SUBSCRIBE timeouts happen most of the times, however, it's only
sometimes, that they get through.
Here's a part of ser.cfg responsible for SUBSCRIBE and NOTIFY:
. . . . . .
if(method=="SUBSCRIBE") {
if (!www_authorize("sip.interlab.ait.ac.th", "subscriber")) {
log(1, "Authentication for SUBSCRIBE");
www_challenge("sip.interlab.ait.ac.th", "0");
break;
};
if(!lookup("location") ) {
log(1, "No registered user found for SUBSCRIBE request");
sl_send_reply("404", "Not Found");
break;
};
};
if(method=="NOTIFY") {
if (!www_authorize("sip.interlab.ait.ac.th", "subscriber")) {
log(1, "Authentication for SUBSCRIBE");
www_challenge("sip.interlab.ait.ac.th", "0");
break;
};
if (!lookup("location")) {
log(1, "No registered user found for NOTIFY request");
sl_send_reply("404", "Not Found");
break;
};
};
if( !t_relay() ) {
sl_reply_error();
};
. . . . . . . .
Here are the traces:
Message 1 from 203.159.32.39:5060 to 203.159.31.36:5060
SUBSCRIBE sip:12345@sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250(a)203.159.32.39
CSeq: 1 SUBSCRIBE
From: "Andrey Kuprianov" <sip:andrey@sip.interlab.ait.ac.th>;tag=15493888
To: <sip:12345@sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK3ad443c5b49de4b050bd2b028597a868
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event: presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey@203.159.32.39:5060>
Content-Length: 0
Message 2 from 203.159.31.36:5060 to 203.159.32.39:5060
SIP/2.0 401 Unauthorized
Call-ID: 7762edc6f3954c87c8b95a0270653250(a)203.159.32.39
CSeq: 1 SUBSCRIBE
From: "Andrey Kuprianov" <sip:andrey@sip.interlab.ait.ac.th>;tag=15493888
To: <sip:12345@sip.interlab.ait.ac.th>;tag=1a5a85ff3e08e000f4c2527642cf14ac.5e75
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK3ad443c5b49de4b050bd2b028597a868
WWW-Authenticate: Digest
realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0"
Server: Sip EXpress router (0.9.3 (i386/freebsd))
Warning: 392 203.159.31.36:5060 "Noisy feedback tells: pid=17754
req_src_ip=203.159.32.39 req_src_port=5060
in_uri=sip:12345@sip.interlab.ait.ac.th
out_uri=sip:12345@sip.interlab.ait.ac.th via_cnt==1"
Content-Length: 0
Message 3 from 203.159.32.39:5060 to 203.159.31.36:5060
SUBSCRIBE sip:12345@sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250(a)203.159.32.39
CSeq: 2 SUBSCRIBE
To: <sip:12345@sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK991c906a283ca5d57e8856c98097e81c
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event: presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey@203.159.32.39:5060>
Authorization: Digest
username="andrey",realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0",uri="sip:12345@sip.interlab.ait.ac.th",response="1c7fa7ceb1f654d0e2ea91c54823bb8d"
From: "Andrey Kuprianov" <sip:andrey@sip.interlab.ait.ac.th>;tag=15493888
Content-Length: 0
Message 4 from 203.159.32.39:5060 to 203.159.31.36:5060
SUBSCRIBE sip:12345@sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250(a)203.159.32.39
CSeq: 2 SUBSCRIBE
To: <sip:12345@sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK991c906a283ca5d57e8856c98097e81c
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event: presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey@203.159.32.39:5060>
Authorization: Digest
username="andrey",realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0",uri="sip:12345@sip.interlab.ait.ac.th",response="1c7fa7ceb1f654d0e2ea91c54823bb8d"
From: "Andrey Kuprianov" <sip:andrey@sip.interlab.ait.ac.th>;tag=15493888
Content-Length: 0
. . . . . .
And so it goes, until SER replies with Timeout.
There are no error messages in the log.
Can you tell me what is wrong???
Hi folks,
I've a question.
Is it possible to use "include" files into ser.cfg?
I would like to keep the ser,cfg locked and use the include to make changes
into routing.
Any ideas?
Thanks
--
.:FaberK:.
Yes,
It seems the error was caused by too low number defined in MaxNoOfOrderedIndexes in the NDB cluster configuration.
Thanks for the help.
/Maria
> -----Original Message-----
> From: users-bounces(a)openser.org [mailto:users-bounces@openser.org]On
> Behalf Of Bogdan-Andrei Iancu
> Sent: den 13 december 2005 12:25
> To: Maria Yndefors
> Cc: users(a)openser.org
> Subject: Re: [Users] Can't create table './openser/pending.frm'
>
>
> Hi Maria ,
>
> I would say it;s more a problem related to mysql setup - try
> to google
> to find the meaning of errno 4242
>
> regards,
> bogdan
>
> Maria Yndefors wrote:
>
> >Hallo,
> >I have tried to install openser and run into this problem
> when doing openser_mysql.sh create
> >
> >creating database openser ...
> >ERROR 1005 (HY000) at line 215: Can't create table
> './openser/pending.frm' (errno: 4242)
> >
> >I run Mysql server on another server and have set the
> variables in the .opensermyslqrc file
> >
> >sbc2:/etc/openser# cat .opensermysqlrc
> ># File .opensermysqlrc included by openser_mysql.sh
> ># Set static variables to be used by the script
> >
> >export SQL_HOST=195.54.xxx.xxx
> >export DBHOST=195.54.xxx.xxx
> >export TABLE_TYPE="ENGINE=NDB"
> >export SIP_DOMAIN=BREDBAND
> >
> >When I do show tables in mysql I can see:
> >
> >mysql> show tables;
> >+-------------------+
> >| Tables_in_openser |
> >+-------------------+
> >| acc |
> >| active_sessions |
> >| aliases |
> >| dbaliases |
> >| grp |
> >| location |
> >| missed_calls |
> >| version |
> >+-------------------+
> >8 rows in set (0.02 sec)
> >
> >some of the tables have been created.
> >Why could not the pending table be created?
> >
> >Regards
> >/Maria
> >
> >
> >
> >
> >
> >_______________________________________________
> >Users mailing list
> >Users(a)openser.org
> >http://openser.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
I'm having an issue building RTPproxy on FC4. I checked out the source
yesterday, and the configure script went well, but the build is failing on
some weird things.
make all-am
make[1]: Entering directory `/home/eneref/new/rtpproxy'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c main.c
main.c: In function 'handle_command':
main.c:363: warning: pointer targets in passing argument 6 of 'recvfrom'
differ in signedness
main.c: In function 'main':
main.c:997: error: 'useconds_t' undeclared (first use in this function)
main.c:997: error: (Each undeclared identifier is reported only once
main.c:997: error: for each function it appears in.)
main.c:997: error: syntax error before 'delay'
main.c:1230: error: 'delay' undeclared (first use in this function)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/eneref/new/rtpproxy'
make: *** [all] Error 2
First off, useconds_t is in sys/types.h which is one of the includes in the
main. But looking at the GCC line, it looks almost as though something's
missing. I checked the Makefile, and the DEFAULT_INCLUDES is set to -I.
-I$(srcdir) -I. and then there's that space... where I assume $(INCLUDES)
would go... although that's not set anywhere in the Makefile.
Anyone like to smack me with the bat of stupidity and tell me what I'm doing
wrong?
N.
I am trying to use Postgres instead of Mysql, but I dont know why,
then I initialize ser, I get the following error:
0(0) find_mod_export: <db_use_table> in module sql not found
0(0) bind_dbmod: Module sql does not export db_use_table function
0(0) ERROR: mod_init(): Can't bind database module
I cant figure out the reason for this message "<db_use_table> in
module sql not found".
I have no idea why this is happening. When I was working with Mysql, I
didn't have this problem, but now, I just cant put Postgres to work.
Any ideas?
Here is part of my ser.cfg:
============================================================
loadmodule "/usr/local/lib/ser/modules/postgres.so"
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/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
modparam("usrloc", "user_column", "username")
modparam("usrloc", "db_url", "sql://ser:my_pass@localhost:5432/ser")
===================================================================
Here is part of the log when I initialize SER:
=============================================================
0(0) DEBUG: init_mod: usrloc
0(0) usrloc - initializing
0(0) DEBUG: register_fifo_cmd: new command (ul_stats) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_rm) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_rm_contact) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_dump) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_flush) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_add) registered
0(0) DEBUG: register_fifo_cmd: new command (ul_show_contact) registered
0(0) unixsock_register_cmd: New command (ul_stats) registered
0(0) unixsock_register_cmd: New command (ul_rm) registered
0(0) unixsock_register_cmd: New command (ul_rm_contact) registered
0(0) unixsock_register_cmd: New command (ul_dump) registered
0(0) unixsock_register_cmd: New command (ul_flush) registered
0(0) unixsock_register_cmd: New command (ul_add) registered
0(0) unixsock_register_cmd: New command (ul_show_contact) registered
0(0) find_mod_export: <db_use_table> in module sql not found
0(0) bind_dbmod: Module sql does not export db_use_table function
0(0) ERROR: mod_init(): Can't bind database module
0(0) init_mod(): Error while initializing module usrloc
ERROR: error while initializing modules
0(0) DEBUG: tm_shutdown : start
0(0) DEBUG: unlink_timer_lists : emptying DELETE list
0(0) DEBUG: tm_shutdown : emptying hash table
0(0) DEBUG: tm_shutdown : releasing timers
0(0) DEBUG: tm_shutdown : removing semaphores
0(0) DEBUG: tm_shutdown : destroying tmcb lists
0(0) DEBUG: tm_shutdown : done
0(27948) shm_mem_destroy
0(27948) destroying the shared memory lock
================================================================
Any clue is more than welcome... thanks.
Felipe Louback
--
Mestrando - Departamento de Engenharia Elétrica
Grupo de Pesquisa em Engenharia da Computação e Telecomunicações
Universidade Federal de Minas Gerais - Brasil
"Todas as coisas cooperam para o bem daqueles que amam a Deus"
Romanos 8:28
Hi,
An easy one ... or two.
1 - I need to start up ser automatically on the boot of the machine
... i am sure there are scripts and instructions on how to do it. Any
pointer?
2 - I need a way to monitor the status of ser (and sems), so that in
case of a crash they are automatically killed and restarted. I thought
about writing some kind of cron thingy using serctl ... Again,
pointers?
Regards,
Cesc
I see documentation available for OpenSER 1.1 at www.openser.org, but I can't seem to find anywhere where it's available for download. It is available yet?
Thanks
Hallo,
I have tried to install openser and run into this problem when doing openser_mysql.sh create
creating database openser ...
ERROR 1005 (HY000) at line 215: Can't create table './openser/pending.frm' (errno: 4242)
I run Mysql server on another server and have set the variables in the .opensermyslqrc file
sbc2:/etc/openser# cat .opensermysqlrc
# File .opensermysqlrc included by openser_mysql.sh
# Set static variables to be used by the script
export SQL_HOST=195.54.xxx.xxx
export DBHOST=195.54.xxx.xxx
export TABLE_TYPE="ENGINE=NDB"
export SIP_DOMAIN=BREDBAND
When I do show tables in mysql I can see:
mysql> show tables;
+-------------------+
| Tables_in_openser |
+-------------------+
| acc |
| active_sessions |
| aliases |
| dbaliases |
| grp |
| location |
| missed_calls |
| version |
+-------------------+
8 rows in set (0.02 sec)
some of the tables have been created.
Why could not the pending table be created?
Regards
/Maria
We have a problem registering the stop accounting record in our database. We
have freeradius server. When bye method occurs radius don't receive stop
accounting record so we don't get the end time of call. The strange thing is
that in some cases we received in some not.