[Serusers] SER Register Problems

Darshan Uka ukadarshan_2001 at hotmail.com
Tue Jan 6 02:41:42 CET 2004


Hello,
I have this scenario:
sip:newton at 140.192.37.59----SER:140.192.37.59-------sip:einstein at 140.192.37.59

This is the ngrep trace:
interface: eth0 (140.192.37.0/255.255.255.0)
filter: ip and ( port 5060 )
#Um 140.192.37.4:1162 -> 140.192.37.59:5060
INVITE sip:einstein at 140.192.37.59 SIP/2.0..From: 
sip:newton at 140.192.37.59;tag=1c26830..To: 
sip:einstein at 140.192.37.59..Call-Id: call-1073
  351340-11 at 140.192.37.4..Cseq: 1 INVITE..Contact: 
<sip:newton at 140.192.37.4>..Content-Type: application/sdp..Content-Length: 
306..Accept-La
  nguage: en..Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, 
REGISTER, SUBSCRIBE..Supported: sip-cc, sip-cc-01, timer, replaces..
  User-Agent: Pingtel/2.1.11 (VxWorks)..Date: Tue, 06 Jan 2004 01:09:00 
GMT..Via: SIP/2.0/UDP 140.192.37.4....v=0..o=Pingtel 5 5 IN IP4 140
  .192.37.4..s=phone-call..c=IN IP4 140.192.37.4..t=0 0..m=audio 8766 
RTP/AVP 96 97 0 8 18 98..a=rtpmap:96 eg711u/8000/1..a=rtpmap:97 eg711
  a/8000/1..a=rtpmap:0 pcmu/8000/1..a=rtpmap:8 pcma/8000/1..a=rtpmap:18 
g729/8000/1..a=fmtp:18 annexb=no..a=rtpmap:98 telephone-event/8000/
  1..


#U 140.192.37.59:5060 -> 140.192.37.4:5060
SIP/2.0 100 trying -- your call is important to us..From: 
sip:newton at 140.192.37.59;tag=1c26830..To: 
sip:einstein at 140.192.37.59..Call-Id:
  call-1073351340-11 at 140.192.37.4..Cseq: 1 INVITE..Via: SIP/2.0/UDP 
140.192.37.4..Server: Sip EXpress router (0.8.11 (i386/linux))..Content
  -Length: 0..Warning: 392 140.192.37.59:5060 "Noisy feedback tells:  
pid=2365 req_src_ip=140.192.37.4 req_src_port=1162 in_uri=sip:einstei
  n at 140.192.37.59 out_uri=sip:einstein at 140.192.37.59 via_cnt==1"....


#U 140.192.37.59:5060 -> 140.192.37.4:5060
SIP/2.0 483 Too Many Hops..From: sip:newton at 140.192.37.59;tag=1c26830..To: 
sip:einstein at 140.192.37.59;tag=b27e1a1d33761e85846fc98f5f3a7e5
  8.1007..Call-Id: call-1073351340-11 at 140.192.37.4..Cseq: 1 INVITE..Via: 
SIP/2.0/UDP 140.192.37.4..Server: Sip EXpress router (0.8.11 (i386
  /linux))..Content-Length: 0..Warning: 392 140.192.37.59:5060 "Noisy 
feedback tells:  pid=2365 req_src_ip=140.192.37.59 req_src_port=5060
  in_uri=sip:einstein at 140.192.37.59 out_uri=sip:einstein at 140.192.37.59 
via_cnt==12"....


#U 140.192.37.4:1162 -> 140.192.37.59:5060
ACK sip:einstein at 140.192.37.59 SIP/2.0..Contact: 
sip:newton at 140.192.37.4..From: sip:newton at 140.192.37.59;tag=1c26830..To: 
sip:einstein at 14
  0.192.37.59;tag=b27e1a1d33761e85846fc98f5f3a7e58.1007..Call-Id: 
call-1073351340-11 at 140.192.37.4..Cseq: 1 ACK..Accept-Language: en..User-A
  gent: Pingtel/2.1.11 (VxWorks)..Date: Tue, 06 Jan 2004 01:09:00 GMT..Via: 
SIP/2.0/UDP 140.192.37.4..Content-Length: 0....
exit
4 received, 0 dropped


The ser gives #U 140.192.37.59:5060 -> 140.192.37.4:5060
SIP/2.0 483 Too Many Hops..From: sip:newton at 140.192.37.59;tag=1c26830..To: 
sip:einstein at 140.192.37.59;tag=b27e1a1d33761e85846fc98f5f3a7e5

Here is my ser.cfg file:
#
# $Id: ser.cfg,v 1.21.2.1 2003/07/30 16:46:18 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=7
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"
alias=140.192.37.59
alias=mnlab.cti.depaul.edu
# ------------------ module loading ----------------------------------

# Uncomment this if you want to use SQL database
loadmodule "/usr/lib/ser/modules/mysql.so"

loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/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)

# 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 (len_gt( 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=="mnlab.cti.depaul.edu") {

                if (method=="REGISTER") {

# Uncomment this if you want to use digest authentication
                        if (!www_authorize("mnlab.cti.depaul.edu", 
"subscriber")) {
                                www_challenge("mnlab.cti.depaul.edu", "0");
                                break;
                        };

                        save("location");
                        break;
};

                # native SIP destinations are handled using our USRLOC DB
                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        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();
        };

}

I have exported SIP_DOMAIN=mnlab.cti.depaul.edu
I have added alias=mnlab.cti.depaul.edu in the ser.cfg file at 
/etc/ser/ser.cfg

When the caller is newton/einstein and the callee is einstein/newton 
respectively  and i try to use the url based dialing it gives an engaged 
tone.
Please help.

-Darshan


----Original Message Follows----
From: Jan Janak <jan at iptel.org>
To: Darshan Uka <ukadarshan_2001 at hotmail.com>
CC: serusers at lists.iptel.org
Subject: Re: [Serusers] Re:SER
Date: Sun, 4 Jan 2004 01:28:06 +0100
MIME-Version: 1.0
Received: from fox.iptel.org ([195.37.77.101]) by mc12-f26.hotmail.com with 
Microsoft SMTPSVC(5.0.2195.6713); Sat, 3 Jan 2004 16:30:18 -0800
Received: from localhost.localdomain (fox.iptel.org [195.37.77.101])by 
fox.iptel.org (Postfix) with SMTPid 02A29BDA4; Sun,  4 Jan 2004 01:27:30 
+0100 (CET)
Received: by localhost.localdomain (sSMTP sendmail emulation); Sun,  4 Jan 
2004 01:28:07 +0100
X-Message-Info: JGTYoYF78jEnGRiKb45R4ZRFHM/M/kHU
Message-ID: <20040104002806.GC1247 at localhost.localdomain>
Mail-Followup-To: Darshan Uka 
<ukadarshan_2001 at hotmail.com>,serusers at lists.iptel.org
References: <Law11-F121ku04koK5u00011c2d at hotmail.com>
In-Reply-To: <Law11-F121ku04koK5u00011c2d at hotmail.com>
User-Agent: Mutt/1.5.4i
Return-Path: jan at iptel.org
X-OriginalArrivalTime: 04 Jan 2004 00:30:18.0930 (UTC) 
FILETIME=[EE59F120:01C3D259]

The message looped on the server until max-forwards check hits. The
Request-URI of the REGISTER message (sip:140.192.37.59 in this case) is
considered as foreign by the server and simply forwarded, but because it
is not foreign it hits the same server again.

If you are using the default script then it means that the condition
if (uri==myself) doesn't match that IP address.

    Jan.

On 04-01 00:19, Darshan Uka wrote:
 > Hello Jan,
 > I tried to register using sipsak with the ser but couldn't:
 > [brewster at localhost brewster]$ sipsak -U -I -e 5  -s 
sip:4444 at 140.192.37.59
 > -vv
 > warning: redirects are not expected in USRLOC. disableing
 > registering user 44440...
 > received:
 > SIP/2.0 483 Too Many Hops
 > Via: SIP/2.0/UDP localhost.localdomain:32784;received=140.192.37.59
 > From: <sip:44440 at 140.192.37.59>
 > To: <sip:44440 at 140.192.37.59>;tag=b27e1a1d33761e85846fc98f5f3a7e58.44dc
 > Call-ID: 2034451172 at localhost.localdomain
 > CSeq: 1 REGISTER
 > Server: Sip EXpress router (0.8.11 (i386/linux))
 > Content-Length: 0
 > Warning: 392 140.192.37.59:5060 "Noisy feedback tells:  pid=2262
 > req_src_ip=140.192.37.59 req_src_port=5060 in_uri=sip:140.192.37.59
 > out_uri=sip:140.192.37.59 via_cnt==71"
 >
 >
 > error: didn't received '200 OK' on register (see above). aborting
 > What could be the reason for this?
 > Thanks,
 > -Darshan
 >
 > ----Original Message Follows----
 > From: Jan Janak <jan at iptel.org>
 > To: Darshan Uka <ukadarshan_2001 at hotmail.com>
 > CC: serusers at lists.iptel.org
 > Subject: Re: [Serusers] Re:SER
 > Date: Sat, 3 Jan 2004 19:50:11 +0100
 > MIME-Version: 1.0
 > Received: from fox.iptel.org ([195.37.77.101]) by mc5-f6.hotmail.com with
 > Microsoft SMTPSVC(5.0.2195.6713); Sat, 3 Jan 2004 10:52:22 -0800
 > Received: from localhost.localdomain (fox.iptel.org [195.37.77.101])by
 > fox.iptel.org (Postfix) with SMTPid 8511EBDA3; Sat,  3 Jan 2004 19:49:35
 > +0100 (CET)
 > Received: by localhost.localdomain (sSMTP sendmail emulation); Sat,  3 
Jan
 > 2004 19:50:11 +0100
 > X-Message-Info: JGTYoYF78jHCUrdF36ytC88bjJA8hXfX
 > Message-ID: <20040103185011.GS556 at localhost.localdomain>
 > Mail-Followup-To: Darshan Uka
 > <ukadarshan_2001 at hotmail.com>,serusers at lists.iptel.org
 > References: <Law11-F1133VLnjJeDY0000b77c at hotmail.com>
 > In-Reply-To: <Law11-F1133VLnjJeDY0000b77c at hotmail.com>
 > User-Agent: Mutt/1.5.4i
 > Return-Path: jan at iptel.org
 > X-OriginalArrivalTime: 03 Jan 2004 18:52:22.0934 (UTC)
 > FILETIME=[B8EA7B60:01C3D22A]
 >
 > Hard to say, maybe you:
 >
 > -- listen on a different interface
 > -- listen on a different host
 > -- filter out port 5060 so SIP messages do not appear in your dumps
 > -- phones do not send any SIP messages
 > -- phones send SIP messages to a different host
 >
 >  etc...
 >
 >    Jan.
 >
 > On 01-01 00:12, Darshan Uka wrote:
 > > Hi,
 > > I am totally new to SER.
 > > I have installed it and have the following set up:
 > > pingtel phone --- SER ----- pingtel phone
 > > I somehow dont see the sip headers in the tcpdump/trace.
 > > Any suggestions.
 > > Thanks,
 > >
 > > -Darshan
 > >
 > > _________________________________________________________________
 > > Get reliable dial-up Internet access now with our limited-time
 > introductory
 > > offer.  http://join.msn.com/?page=dept/dialup
 > >
 > > _______________________________________________
 > > Serusers mailing list
 > > serusers at lists.iptel.org
 > > http://lists.iptel.org/mailman/listinfo/serusers
 >
 > _________________________________________________________________
 > Worried about inbox overload? Get MSN Extra Storage now!
 > http://join.msn.com/?PAGE=features/es
 >

_________________________________________________________________
Expand your wine savvy — and get some great new recipes — at MSN Wine. 
http://wine.msn.com




More information about the sr-users mailing list