[Devel] How can I use SER to make SIP/udp to SIP/tcp?
voyage
voyage_hy at 126.com
Mon Jul 3 11:17:24 CEST 2006
Hi :
I Want to use SER to make SIP/udp to SIP/tcp and vice versa.
So I use t_relay_to_tcp() and t_relay_to_udp().
Unfortunately, I failed!
Additionaly, I found these message:
: tcp_send: no open tcp connection found, opening new one
: ERROR: tcp_blocking_connect: SO_ERROR (111) Connection refused
: ERROR: tcpconn_connect: tcp_blocking_connect failed
: ERROR: tcp_send: connect failed
: msg_send: ERROR: tcp_send failed
So, I read all message I can find in google or ser¡¯s maillist. But I can¡¯t
execute this problem.
Could you give me the way to make tcp/udp translation about ser.cfg and tell
me why this kinds of error came into being?
I really tired to resolve this, but I am not give up, Can you help me???
Follow is my ser.cfg, FYI.
=======================================ser.cfg==============================
=========================
#
# $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=7 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
/*Uncomment these lines to enter debugging mode
debug=7
fork=yes
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"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
#loadmodule "/usr/lib/ser/modules/mysql.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"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
#loadmodule "/usr/lib/ser/modules/auth.so"
#loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
#added
#modparam("usrloc","db_url","sql://<password>@localhost/ser")
#mysql
#mysql> use mysql;
#mysql> update user set password='serpasswd' where User='ser';
#mysql> quit;
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
#modeparam("usrloc","db_mode",2)
# -- auth params --
# 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)
#modparam("rr", "enable_double_rr", 0)
# ------------------------- request routing logic -------------------
# main routing logic
route{
if(src_ip == 10.23.40.7){
t_relay_to_tcp("10.23.40.141","5060");
}
else {
t_relay_to_tcp("10.23.40.7","5060");
}
}
York
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openser.org/pipermail/devel/attachments/20060703/bb8927d7/attachment.htm
More information about the Devel
mailing list