Sandra,
SER runs listening for requests for:
Aliases: anakin.hi.inet:5060
You try to register with another domain, which then SER does not recognize
as its domain.
I suggest that you go to
and download the Getting Started
document and the config files. It will get you started in no time!
g-)
Sandra Donaire wrote:
Hi!!
I can`t run ok my server. It don't response the messages, and it
running.
I attach:
* Config file
* Capture of ethereal: "tramas.txt"
* And logs when i run the server: "run.txt"
If anybody can help me...
Thanks!
--
Sandra Donaire Arroyo
Telefónica I+D
División de "Tecnologías de acceso a redes IP"
ading module /usr/local/lib/ser/modules/sl.so
0(6856) loading module /usr/local/lib/ser/modules/tm.so
0(6856) loading module /usr/local/lib/ser/modules/rr.so
0(6856) loading module /usr/local/lib/ser/modules/maxfwd.so
0(6856) loading module /usr/local/lib/ser/modules/usrloc.so
0(6856) loading module /usr/local/lib/ser/modules/registrar.so
0(6856) loading module /usr/local/lib/ser/modules/mysql.so
0(6856) loading module /usr/local/lib/ser/modules/auth.so
0(6856) loading module /usr/local/lib/ser/modules/auth_db.so
0(6856) loading module /usr/local/lib/ser/modules/pa.so
0(6856) loading module /usr/local/lib/ser/modules/msilo.so
0(6856) set_mod_param_regex: usrloc matches module usrloc
0(6856) set_mod_param_regex: found <db_mode> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) set_mod_param_regex:
usrloc matches module usrloc 0(6856) set_mod_param_regex: found
<db_url> in module usrloc [/usr/local/lib/ser/modules/usrloc.so]
0(6856) set_mod_param_regex: auth_db matches module auth_db 0(6856)
set_mod_param_regex: found <calculate_ha1> in module auth_db
[/usr/local/lib/ser/modules/auth_db.so] 0(6856) set_mod_param_regex:
auth_db matches module auth_db 0(6856) set_mod_param_regex: found
<password_column> in module auth_db
[/usr/local/lib/ser/modules/auth_db.so] 0(6856) set_mod_param_regex:
auth_db matches module auth_db 0(6856) set_mod_param_regex: found
<db_url> in module auth_db [/usr/local/lib/ser/modules/auth_db.so]
0(6856) set_mod_param_regex: rr matches module rr 0(6856)
set_mod_param_regex: found <enable_full_lr> in module rr
[/usr/local/lib/ser/modules/rr.so] 0(6856) set_mod_param_regex: pa
matches module pa 0(6856) set_mod_param_regex: found
<default_expires> in module pa [/usr/local/lib/ser/modules/pa.so]
0(6856) set_mod_param_regex: msilo matches module msilo 0(6856)
set_mod_param_regex: found <db_url> in module msilo
[/usr/local/lib/ser/modules/msilo.so] 0(6856) find_export: found
<mf_process_maxfwd_header> in module maxfwd_module
[/usr/local/lib/ser/modules/maxfwd.so] 0(6856) find_export: found
<sl_send_reply> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<sl_send_reply> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<record_route> in module rr [/usr/local/lib/ser/modules/rr.so]
0(6856) find_export: found <loose_route> in module rr
[/usr/local/lib/ser/modules/rr.so] 0(6856) find_export: found
<t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <www_authorize> in module auth_db
[/usr/local/lib/ser/modules/auth_db.so] 0(6856) find_export: found
<www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so]
0(6856) find_export: found <save> in module registrar
[/usr/local/lib/ser/modules/registrar.so] 0(6856) find_export: found
<m_dump> in module msilo [/usr/local/lib/ser/modules/msilo.so]
0(6856) find_export: found <lookup> in module registrar
[/usr/local/lib/ser/modules/registrar.so] 0(6856) find_export: found
<t_newtran> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <sl_reply_error> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<t_reply> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <sl_reply_error> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<m_store> in module msilo [/usr/local/lib/ser/modules/msilo.so]
0(6856) find_export: found <t_reply> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<sl_reply_error> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<t_reply> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <sl_reply_error> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <sl_reply_error> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<m_store> in module msilo [/usr/local/lib/ser/modules/msilo.so]
0(6856) find_export: found <t_reply> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_reply> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
routing table 0: 0(6856) log( 0(6856) 4 0(6856) , "**Mensaje
recibido****** " 0(6856) ); 0(6856) if ( 0(6856) NOT( 0(6856)
external_module_call( 0(6856) f_ptr<0x28ce70> 0(6856) , "10" 0(6856)
); 0(6856) external_module_call( 0(6856) f_ptr<0............... "
0(6856) ); 0(6856) external_module_call( 0(6856) f_ptr<0x25c000>
0(6856) , "503" 0(6856) , "Service Unavailable" 0(6856) ); 0(6856)
}; 0(6856)
Listening on
10.95.24.118 [10.95.24.118]:5060
Aliases: anakin.hi.inet:5060
WARNING: no fork mode
0(6856) DEBUG: init_mod: sl_module
stateless - initializing
0(6856) DEBUG: register_fifo_cmd: new command (sl_stats) registered
0(6856) DEBUG: MD5 calculated: 514c9da6346630a248fb02d697affea1
0(6856) DEBUG: init_mod: tm
0(6856) TM - initializing...
0(6856) Call-ID initialization: '7ebfb2b9'
0(6856) DEBUG: register_fifo_cmd: new command (t_uac_dlg) registered
0(6856) DEBUG: register_fifo_cmd: new command (t_uac_cancel)
registered 0(6856) DEBUG: register_fifo_cmd: new command (t_hash)
registered 0(6856) DEBUG: lock_initialize: lock initialization
started 0(6856) DEBUG: register_fifo_cmd: new command (t_stats)
registered 0(6856) DEBUG: MD5 calculated:
7a4a3882dbef725114aca71b5d0350e2 0(6856) DEBUG: MD5 calculated:
bf040921a78c3fce97a0c4998426d78d 0(6856) DEBUG: init_mod: rr
0(6856) rr - initializing
0(6856) DEBUG: init_mod: maxfwd_module
Maxfwd module- initializing
0(6856) DEBUG: init_mod: usrloc
0(6856) usrloc - initializing
0(6856) DEBUG: register_fifo_cmd: new command (ul_stats) registered
0(6856) DEBUG: register_fifo_cmd: new command (ul_rm) registered
0(6856) DEBUG: register_fifo_cmd: new command (ul_rm_contact)
registered 0(6856) DEBUG: register_fifo_cmd: new command (ul_dump)
registered 0(6856) DEBUG: register_fifo_cmd: new command (ul_flush)
registered 0(6856) DEBUG: register_fifo_cmd: new command (ul_add)
registered 0(6856) DEBUG: register_fifo_cmd: new command
(ul_show_contact) registered 0(6856) find_export: found
<db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_init> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_free_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_delete> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) mod_init(): Database connection opened successfuly 0(6856)
DEBUG: init_mod: registrar 0(6856) registrar - initializing 0(6856)
find_export: found <sl_send_reply> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) find_export: found
<ul_bind_usrloc> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_register_udomain> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_get_all_ucontacts> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_insert_urecord> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_delete_urecord> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_get_urecord> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_lock_udomain> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_unlock_udomain> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_release_urecord> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_insert_ucontact> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_delete_ucontact> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_get_ucontact> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) find_export: found
<ul_update_ucontact> in module usrloc
[/usr/local/lib/ser/modules/usrloc.so] 0(6856) DEBUG: init_mod:
mysql 0(6856) mysql - initializing 0(6856) DEBUG: init_mod: auth
0(6856) auth module - initializing 0(6856) find_export: found
<sl_send_reply> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) DEBUG: init_mod: auth_db
0(6856) auth_db module - initializing 0(6856) find_export: found
<db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_init> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_free_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_delete> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <pre_auth> in module auth
[/usr/local/lib/ser/modules/auth.so] 0(6856) find_export: found
<post_auth> in module auth [/usr/local/lib/ser/modules/auth.so]
0(6856) find_export: found <sl_send_reply> in module sl_module
[/usr/local/lib/ser/modules/sl.so] 0(6856) DEBUG: init_mod: pa
0(6856) Presence Agent - initializing 0(6856) find_export: found
<load_tm> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <register_tmcb> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_newtran> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <t_relay_to_tcp> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_relay_to_udp> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_relay> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_reply> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <t_reply_with_body> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_is_local> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <t_get_trans_ident> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_lookup_ident> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_add_blind> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_forward_nonack> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_request_within> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_request_outside> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_request> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<new_dlg_uac> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <dlg_response_uac> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<new_dlg_uas> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <dlg_request_uas> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<free_dlg> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <print_dlg> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) DEBUG: init_mod: msilo
0(6856) MSILO: initializing ... 0(6856) find_export: found
<db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_init> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_free_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <db_delete> in module mysql
[/usr/local/lib/ser/modules/mysql.so] 0(6856) find_export: found
<db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so]
0(6856) find_export: found <load_tm> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<register_tmcb> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_newtran> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_relay_to_tcp> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_relay_to_udp> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <t_reply> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_reply_with_body> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_is_local> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_get_trans_ident> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_lookup_ident> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_add_blind> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_forward_nonack> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_request_within> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <t_request_outside> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<t_request> in module tm [/usr/local/lib/ser/modules/tm.so] 0(6856)
find_export: found <new_dlg_uac> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<dlg_response_uac> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <new_dlg_uas> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<dlg_request_uas> in module tm [/usr/local/lib/ser/modules/tm.so]
0(6856) find_export: found <free_dlg> in module tm
[/usr/local/lib/ser/modules/tm.so] 0(6856) find_export: found
<print_dlg> in module tm [/usr/local/lib/ser/modules/tm.so] 0(0)
fixing /usr/local/lib/ser/modules/maxfwd.so mf_process_maxfwd_header
0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply 0(0)
fixing /usr/local/lib/ser/modules/sl.so sl_send_reply 0(0) fixing
/usr/local/lib/ser/modules/rr.so record_route 0(0) fixing
/usr/local/lib/ser/modules/rr.so loose_route 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_relay 0(0) fixing
/usr/local/lib/ser/modules/auth_db.so www_authorize 0(0) fixing
/usr/local/lib/ser/modules/auth.so www_challenge 0(0) fixing
/usr/local/lib/ser/modules/registrar.so save 0(0) query="select
username,contact,expires,q,callid,cseq,replicate,state,flags,user_agent
from location " 0(0) preload_udomain(): Table is empty 0(0) fixing
/usr/local/lib/ser/modules/msilo.so m_dump 0(0) fixing
/usr/local/lib/ser/modules/registrar.so lookup 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_newtran 0(0) fixing
/usr/local/lib/ser/modules/sl.so sl_reply_error 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_reply 0(0) fixing
/usr/local/lib/ser/modules/sl.so sl_reply_error 0(0) fixing
/usr/local/lib/ser/modules/msilo.so m_store 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_reply 0(0) fixing
/usr/local/lib/ser/modules/sl.so sl_reply_error 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_reply 0(0) fixing
/usr/local/lib/ser/modules/sl.so sl_reply_error 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_relay 0(0) fixing
/usr/local/lib/ser/modules/sl.so sl_reply_error 0(0) fixing
/usr/local/lib/ser/modules/msilo.so m_store 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_reply 0(0) fixing
/usr/local/lib/ser/modules/tm.so t_reply 0(0) INFO: udp_init:
SO_RCVBUF is initially 110592 0(0) DEBUG: udp_init: trying
SO_RCVBUF: 221184 0(0) DEBUG: setting SO_RCVBUF;
set=221184,verify=221184 0(0) DEBUG: udp_init: trying SO_RCVBUF:
223232 0(0) DEBUG: setting SO_RCVBUF; set=223232,verify=221184 0(0)
DEBUG: setting SO_RCVBUF has no effect 0(0) INFO: udp_init:
SO_RCVBUF is finally 221184 1(0) DEBUG: init_mod_child (-1): tm 1(0)
DEBUG: callid: '7ebfb2b9-0(a)10.95.24.118' 1(0) DEBUG: init_mod_child
(-1): usrloc 1(6858) DBG: open_uac_fifo: opening fifo... 1(6858)
DEBUG: FIFO created @ /tmp/ser_fifo 1(6858) DEBUG: fifo
/tmp/ser_fifo opened, mode=438 2(0) INFO: fifo process starting:
6860 2(0) DEBUG: init_mod_child (-2): tm 2(0) DEBUG: callid:
'7ebfb2b9-0(a)10.95.24.118' 2(0) DEBUG: init_mod_child (-2): usrloc
1(6858) DEBUG: init_mod_child (-1): auth_db 2(6860) DEBUG:
init_mod_child (-2): auth_db 1(6858) DEBUG: init_mod_child (-1):
msilo 1(6858) MSILO: init_child #-1 / pid <6858> 2(6860) DEBUG:
init_mod_child (-2): msilo 2(6860) MSILO: init_child #-2 / pid
<6860> 1(6858) MSILO: child -1: Database connection opened
successfully 2(6860) MSILO: child -2: Database connection opened
successfully 0(6856) DEBUG: init_mod_child (1): tm 0(6856) DEBUG:
callid: '7ebfb2b9-6856(a)10.95.24.118' 0(6856) DEBUG: init_mod_child
(1): usrloc 2(6860) SER: open_uac_fifo: fifo server up at
/tmp/ser_fifo... 0(6856) DEBUG: init_mod_child (1): auth_db 0(6856)
DEBUG: init_mod_child (1): msilo 0(6856) MSILO: init_child #1 / pid
<6856> 0(6856) MSILO: child 1: Database connection opened
successfully
#
# $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=no
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"
fifo_mode=0666
# ------------------ 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"
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.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"
# Modulo para presencia
loadmodule "/usr/local/lib/ser/modules/pa.so"
# Modulo para el almacenamiento de mensajes
loadmodule "/usr/local/lib/ser/modules/msilo.so"
# ----------------- setting module-specific parameters
---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
modparam("usrloc", "db_url",
"sql://ser:sippv6@localhost/ser")
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this
config), # uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# -- Parametros de "pa" --
modparam("pa", "default_expires", 3600)
# Parametros para msilo
modparam("msilo", "db_url",
"sql://ser:sippv6@localhost/ser")
# ------------------------- request routing logic
-------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
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;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (
uri=~portalv6.com) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("portalv6.com", "subscriber")) {
www_challenge("portalv6.com", "0");
break;
};
save("location");
#//////////////////////////////
log("REGISTER received -> dumping messages with MSILO\n");
# MSILO - dumping user's offline messages
if (m_dump())
{
log("MSILO: offline messages dumped - if they were\n");
}else{
log("MSILO: no offline messages dumped\n");
};
#//////////////////////////////////
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
#sl_send_reply("404", "Not Found");
# /////////////////////////
if (! t_newtran())
{
sl_reply_error();
break;
};
# we do not care about anything else but MESSAGEs
if (!method=="MESSAGE")
{
if (!t_reply("404", "Not found"))
{
sl_reply_error();
};
break;
};
log("MESSAGE received -> storing using MSILO\n");
# MSILO - storing as offline message
if (m_store("0"))
{
log("MSILO: offline message stored\n");
if (!t_reply("202", "Accepted"))
{
sl_reply_error();
};
}else{
log("MSILO: offline message NOT stored\n");
if (!t_reply("503", "Service Unavailable"))
{
sl_reply_error();
};
};
#///////////////////////////////////
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
#/////////////////////////////////////
failure_route[1] {
# forwarding failed -- check if the request was a MESSAGE
if (!method=="MESSAGE")
{
break;
};
log(1,"MSILO: the downstream UA does not support MESSAGE requests
...\n"); # we have changed the R-URI with the contact address --
ignore it now
if (m_store("1"))
{
log("MSILO: offline message stored\n");
t_reply("202", "Accepted");
}else{
log("MSILO: offline message NOT stored\n");
t_reply("503", "Service Unavailable");
};
}#//////////////////////////////////////////////////////////////
me 5 (518 bytes on wire, 518 bytes captured)
Arrival Time: Jun 2, 2005 08:39:15.000648000
Time delta from previous packet: 5.517287000 seconds
Time since reference or first frame: 5.520523000 seconds
Frame Number: 5
Packet Length: 518 bytes
Capture Length: 518 bytes
Ethernet II, Src: 00:01:03:18:66:50, Dst: 00:11:d8:8e:99:19
Destination: 00:11:d8:8e:99:19 (AsustekC_8e:99:19)
Source: 00:01:03:18:66:50 (3com_18:66:50)
Type: IP (0x0800)
Internet Protocol, Src Addr: 10.95.13.103 (10.95.13.103), Dst Addr:
10.95.24.118 (10.95.24.118) Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN:
0x00) 0000 00.. = Differentiated Services Codepoint: Default
(0x00) .... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 504
Identification: 0x9412 (37906)
Flags: 0x00
0... = Reserved bit: Not set
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: UDP (0x11)
Header checksum: 0x6a48 (correct)
Source: 10.95.13.103 (10.95.13.103)
Destination: 10.95.24.118 (10.95.24.118)
User Datagram Protocol, Src Port: 1222 (1222), Dst Port: 5060 (5060)
Source port: 1222 (1222)
Destination port: 5060 (5060)
Length: 484
Checksum: 0x5fd0 (correct)
Session Initiation Protocol
Request-Line: REGISTER
sip:portalv6.com SIP/2.0
Method: REGISTER
Resent Packet: False
Message Header
Via: SIP/2.0/UDP 10.95.13.103:7077
From:
<sip:sandri@portalv6.com>;tag=ccff3170-7028-4b70-a4e1-ec34cf8515b5
SIP from address: sip:sandri@portalv6.com SIP tag:
ccff3170-7028-4b70-a4e1-ec34cf8515b5 To: <sip:sandri@portalv6.com>
SIP to address: sip:sandri@portalv6.com Call-ID:
adc35f90-bb28-4c4f-8ec2-5f52e24c581f(a)10.95.13.103 CSeq: 1 REGISTER
Contact: <sip:10.95.13.103:7077>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK" User-Agent: Windows
RTC/1.0 Expires: 1200 Event: registration Allow-Events: presence
Content-Length: 0
Frame 6 (415 bytes on wire, 415 bytes captured)
Arrival Time: Jun 2, 2005 08:39:15.000854000
Time delta from previous packet: 0.000206000 seconds
Time since reference or first frame: 5.520729000 seconds
Frame Number: 6
Packet Length: 415 bytes
Capture Length: 415 bytes
Ethernet II, Src: 00:01:03:18:66:50, Dst: 00:11:d8:8e:99:19
Destination: 00:11:d8:8e:99:19 (AsustekC_8e:99:19)
Source: 00:01:03:18:66:50 (3com_18:66:50)
Type: IP (0x0800)
Internet Protocol, Src Addr: 10.95.13.103 (10.95.13.103), Dst Addr:
10.95.24.118 (10.95.24.118) Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN:
0x00) 0000 00.. = Differentiated Services Codepoint: Default
(0x00) .... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 401
Identification: 0x9413 (37907)
Flags: 0x00
0... = Reserved bit: Not set
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: UDP (0x11)
Header checksum: 0x6aae (correct)
Source: 10.95.13.103 (10.95.13.103)
Destination: 10.95.24.118 (10.95.24.118)
User Datagram Protocol, Src Port: 1222 (1222), Dst Port: 5060 (5060)
Source port: 1222 (1222)
Destination port: 5060 (5060)
Length: 381
Checksum: 0xc51d (correct)
Session Initiation Protocol
Request-Line: SUBSCRIBE sip:aragorn@portalv6.com SIP/2.0
Method: SUBSCRIBE
Resent Packet: False
Message Header
Via: SIP/2.0/UDP 10.95.13.103:7077
From: "sandri"
<sip:sandri@portalv6.com>;tag=cb57ec99-7a4a-493c-84f7-c77f3ef63602
SIP Display info: "sandri" SIP from address: sip:sandri@portalv6.com
SIP tag: cb57ec99-7a4a-493c-84f7-c77f3ef63602 To:
<sip:aragorn@portalv6.com> SIP to address: sip:aragorn@portalv6.com
Call-ID: e8bc2af8-93d8-46e7-9e9c-72b56a6edc89(a)10.95.13.103 CSeq: 1
SUBSCRIBE Contact: <sip:10.95.13.103:7077> User-Agent: Windows
RTC/1.0 Expires: 1800 Content-Length: 0
Frame 7 (409 bytes on wire, 409 bytes captured)
Arrival Time: Jun 2, 2005 08:39:15.000856000
Time delta from previous packet: 0.000002000 seconds
Time since reference or first frame: 5.520731000 seconds
Frame Number: 7
Packet Length: 409 bytes
Capture Length: 409 bytes
Ethernet II, Src: 00:01:03:18:66:50, Dst: 00:11:d8:8e:99:19
Destination: 00:11:d8:8e:99:19 (AsustekC_8e:99:19)
Source: 00:01:03:18:66:50 (3com_18:66:50)
Type: IP (0x0800)
Internet Protocol, Src Addr: 10.95.13.103 (10.95.13.103), Dst Addr:
10.95.24.118 (10.95.24.118) Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN:
0x00) 0000 00.. = Differentiated Services Codepoint: Default
(0x00) .... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 395
Identification: 0x9414 (37908)
Flags: 0x00
0... = Reserved bit: Not set
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: UDP (0x11)
Header checksum: 0x6ab3 (correct)
Source: 10.95.13.103 (10.95.13.103)
Destination: 10.95.24.118 (10.95.24.118)
User Datagram Protocol, Src Port: 1222 (1222), Dst Port: 5060 (5060)
Source port: 1222 (1222)
Destination port: 5060 (5060)
Length: 375
Checksum: 0x7380 (correct)
Session Initiation Protocol
Request-Line: SUBSCRIBE sip:saul@portalv6.com SIP/2.0
Method: SUBSCRIBE
Resent Packet: False
Message Header
Via: SIP/2.0/UDP 10.95.13.103:7077
From: "sandri"
<sip:sandri@portalv6.com>;tag=a42a2bea-5be8-400d-a52a-257beffc323f
SIP Display info: "sandri" SIP from address: sip:sandri@portalv6.com
SIP tag: a42a2bea-5be8-400d-a52a-257beffc323f To:
<sip:saul@portalv6.com> SIP to address: sip:saul@portalv6.com
Call-ID: 3e3717b5-4c34-4c9f-946b-59ef89508706(a)10.95.13.103 CSeq: 1
SUBSCRIBE Contact: <sip:10.95.13.103:7077> User-Agent: Windows
RTC/1.0 Expires: 1800 Content-Length: 0
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
>
http://lists.iptel.org/mailman/listinfo/serusers