trytry02,
I do not understand your question, however, you should download the
Getting Started document from
for a good
reference configuration.
Regards,
Paul
On 9/23/05, 송 미진 <trytry02(a)hotmail.com> wrote:
confirm 83b7fb1612811c64f85f47a6046dd84dea286d15
Dear. All
Hi~ I was adviced many times by "seruser" but my problems has not been
solved.
I,m afraid that I have many questions.
So I intend to specify my present situation.
Operating System: Linux Fedora 3
================================================================================
[root@cse3 ~]# serctl start
Starting SER : started pid(8370)
[root@cse3 ~]# serctl ps
0 8370 attendant
1 8375 fifo server
2 8377 receiver child=0 sock= 127.0.0.1:5060
3 8379 receiver child=1 sock= 127.0.0.1:5060
4 8384 receiver child=2 sock= 127.0.0.1:5060
5 8386 receiver child=3 sock= 127.0.0.1:5060
6 8387 receiver child=0 sock= 192.168.178.193:5060
7 8390 receiver child=1 sock= 192.168.178.193:5060
8 8393 receiver child=2 sock= 192.168.178.193:5060
9 8397 receiver child=3 sock= 192.168.178.193:5060
10 8401 timer
11 8403 tcp receiver
12 8406 tcp receiver
13 8410 tcp receiver
14 8412 tcp receiver
15 8415 tcp main process
==============================================================================
my_ip: 192.168.178.193
sip_uri: sip:hjkim@192.168.178.193
I added my hostname and my ip address in /etc/host file.
And I added
alias="hostname.myserver.sampro.cse"
alias="192.168.178.193"
in /usr/local/etc/ser/ser.cfg file.
==================================== 1
============================================
[root@cse3 ~]# serctl ping sip:hjkim@192.168.178.193
[1]+ Done cat <$path | filter_fl
483
===========================================================================================
==================================== 2
===========================================
I received "SIP/2.0 483 Too Many Hops" .
but I don't know the reason.
Well...My computer is connected other computers including computer has
192.168.178.194 as ip address. And my /etc/host file has
127.0.0.1 cse4 localhost.localdomain localhost
192.168.178.194 kims myserver.sampro.cse
Is there reason in here??? I don't know .
===========================================================================================
[root@cse3 ~]# sipsak -T -s sip:hjkim@192.168.178.193
warning: IP extract from warning activated to be more informational
0: 192.168.178.193 (0.355 ms) SIP/2.0 483 Too Many Hops
1: 192.168.178.193 (0.982 ms) SIP/2.0 483 Too Many Hops
2: 192.168.178.193 (0.459 ms) SIP/2.0 483 Too Many Hops
3: 192.168.178.193 (0.520 ms) SIP/2.0 483 Too Many Hops
....................
177: timeout after 500 ms
177: timeout after 1000 ms
177: timeout after 2000 ms
177: 192.168.178.193 (3306.067 ms) SIP/2.0 483 Too Many Hops
178: 192.168.178.193 (3.073 ms) SIP/2.0 483 Too Many Hops
179: 192.168.178.193 (3.104 ms) SIP/2.0 483 Too Many Hops
..................
313: 192.168.178.193 (3.345 ms) SIP/2.0 483 Too Many Hops
314: 192.168.178.193 (3.494 ms) SIP/2.0 483 Too Many Hops
315: 192.168.178.193 (3.038 ms) SIP/2.0 483 Too Many Hops
316: 192.168.178.193 (3.518 ms) SIP/2.0 483 Too Many Hops
317: 192.168.178.193 (5.048 ms) SIP/2.0 500 I'm terribly sorry, server
error occurred (1/SL)
without Contact header
============================================================================================
======================================== 3
======================================
In response part,
I found the message "SIP/2.0 401 Unauthorized" and "authorization failed
request already contains (Proxy-) Authorization, but received 40[1|7], see
above"
What happened??
============================================================================================
[root@cse3 ~]# sipsak -U -vv -s sip:hjkim@192.168.178.193
warning: ignoring -i option when in usrloc mode
registering user hjkim... authorizing
registering user hjkim...
request:
REGISTER sip:192.168.178.193 SIP/2.0
Authorization: Digest username="hjkim", uri="sip:192.168.178.193",
algorithm=MD5, realm="myserver.sampro.cse",
nonce="4333e4b8b0199c2d9c0f8bd249bedc3b8b20bf87",
response="f58e11aff01e5123bcf5010405e91278"
Via: SIP/2.0/UDP 127.0.0.1:32860;branch=z9hG4bK.4f28e7fb;rport
From: sip:hjkim@192.168.178.193;tag=4de59540
To: sip:hjkim@192.168.178.193
Call-ID: 1306891584(a)127.0.0.1
CSeq: 2 REGISTER
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.1
Expires: 15
Contact: sip:hjkim@127.0.0.1:32860
response:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
127.0.0.1:32860;branch=z9hG4bK.4f28e7fb;rport=32860;received=192.168.178.193
From: sip:hjkim@192.168.178.193;tag=4de59540
To: sip:hjkim@192.168.178.193;tag=b27e1a1d33761e85846fc98f5f3a7e58.ad3a
Call-ID: 1306891584(a)127.0.0.1
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="myserver.sampro.cse",
nonce="4333e4b8b0199c2d9c0f8bd249bedc3b8b20bf87"
Server: Sip EXpress router (0.9.4 (i386/linux))
Content-Length: 0
Warning: 392 192.168.178.193:5060 "Noisy feedback tells: pid=8397
req_src_ip=192.168.178.193 req_src_port=32860 in_uri=sip:192.168.178.193
out_uri=sip:192.168.178.193 via_cnt==1"
error: authorization failed
request already contains (Proxy-) Authorization, but received
40[1|7], see above
============================================================================================
[root@cse3 ~]# serctl ul show
Dumping all contacts may take long: are you sure you want to proceed? [Y|N]
y
===Domain list===
---Domain---
name : 'aliases'
size : 512
table: 0xf50b44c8
d_ll {
n : 0
first: (nil)
last : (nil)
}
---/Domain---
---Domain---
name : 'location'
size : 512
table: 0xf50b2218
d_ll {
n : 2
first: 0xf50b4220
last : 0xf50b4348
}
...Record(0xf50b4220)...
domain: 'location'
aor : 'kim'
~~~Contact(0xf50b4260)~~~
domain : 'location'
aor : 'kim'
Contact : 'sip:hjkim@myserver.sampro.cse'
Expires : Permanent
q : 1
Call-ID :
'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything'
CSeq : 42
User-Agent: 'SIP Express Router FIFO'
received : ''
State : CS_SYNC
Flags : 128
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
...Record(0xf50b4348)...
domain: 'location'
aor : 'mj'
~~~Contact(0xf50b4388)~~~
domain : 'location'
aor : 'mj'
Contact : 'sip:mj@myserver.sampro.cse'
Expires : Permanent
q : 1
Call-ID :
'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything'
CSeq : 42
User-Agent: 'SIP Express Router FIFO'
received : ''
State : CS_SYNC
Flags : 128
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
---/Domain---
===/Domain list===
====================================================================================================================================
4 =====================================
I received the message "received ICMP packet (type: 3, code: 10): from
192.168.178.194"
What does means this message??
============================================================================================
[root@cse3 ~]# sipsak -T -vv -s sip:iptel@192.168.178.194
warning: IP extract from warning activated to be more informational
Max-Forwards set to 0
received ICMP packet (type: 3, code: 10): from 192.168.178.194
=======================================================
=======================================================
<< my ser.cfg >>
#
# $Id: ser.cfg,v 1.25.2.1 2005/02/18 14:30:44 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)
alias="192.168.178.193"
alias="myserver.sampro.cse"
alias="kims.myserver.sampro.cse"
/* Uncomment these lines to enter debugging mode
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"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/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"
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"
# ----------------- 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 --
# 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)
# ------------------------- 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 >= 2000048 ) {
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
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri=="sip:192.168.178.193") {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
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=="sip:192.168.178.193") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("myserver.sampro.cse", "subscriber")) {
www_challenge("myserver.sampro.cse", "0");
break;
};
save("location");
log(1, "save \n");
break;
};
lookup("aliases");
if (!uri=="sip:192.168.178.193") {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
######################################################################################
I'd appreciate it if you would give me some solutions.
Thank you in advance.....
mi-jin Song
_________________________________________________________________
행운의 주인공이 이번엔 나일꺼야, 진짜루... 인터넷 복권
http://www.msn.co.kr/money/interlotto/
_______________________________________________
Serusers mailing list
Serusers(a)iptel.org
http://mail.iptel.org/mailman/listinfo/serusers