[Serusers] eliminating 483 errors

Klaus Darilion klaus.mailinglists at pernau.at
Wed Feb 18 16:09:07 CET 2004


I think the alias must be in one line, or only the last line will be used!

from your dump: the proxy forwards the invite to the second phone - 
which does not answer. There is no 483 in your dump.

klaus

Ticknor.Scott at ic.gc.ca wrote:

> i attached one ser.cfg file. and a dump file from ngrep. it looks like a
> bunch of INVITES. the Cisco phone B rings, but if i hang up Cisco phone A, B
> continues to ring and ring...
> and 483 errors every few seconds, what a mess.
> 
> 
> 
>>-----Original Message-----
>>From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
>>Sent: Wednesday, February 18, 2004 9:22 am
>>To: Ticknor, Scott: DGSE
>>Cc: serusers at lists.iptel.org
>>Subject: Re: [Serusers] eliminating 483 errors
>>
>>
>>post your ser.cfg and a dump of the packets that causes the loop.
>>
>>Klaus
>>
>>Ticknor.Scott at ic.gc.ca wrote:
>>
>>>hello List,
>>>i am sadly aware that the 483 problem is covered in the 
>>
>>Admin guide & faq.
>>
>>>the solution as i read it is to replace if (uri==myself) 
>>
>>with some regexp
>>
>>>for the sip proxy. but this is apparently not a proper 
>>
>>implementation, from
>>
>>>what i have read on the list. furthermore, the if 
>>
>>(uri==myself) expression
>>
>>>is further down in the logic, below the check for maxfwd 
>>
>>that results in the
>>
>>>483. if have set SIP_DOMAIN and added aliases to ser.cfg. i 
>>
>>am sure i am
>>
>>>missing something small and simple...
>>>my clients are cisco 7960 with sip fw v6.1.
>>>
>>>thanks for reading,
>>>
>>>scott t
>>>DSi
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>
> 
> 
> ------------------------------------------------------------------------
> 
> interface: eth0 (10.0.0.0/255.255.255.0)
> match: 5060
> ##
> U 10.0.0.120:50630 -> 10.0.0.54:5060
>   INVITE sip:1006 at lima.dsi.crc.ca SIP/2.0..Via: SIP/2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6c7e4..From:
>    "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd9e-619edc48..To: <sip:1006 at lima.dsi.
>   crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..Date: Wed, 18 Feb 2004 14:33:55 GMT..
>   CSeq: 101 INVITE..User-Agent: CSCO/6..Contact: <sip:1007 at 10.0.0.120:5060>..Expires: 180..Content-Type: 
>   application/sdp..Content-Length: 242..Accept: application/sdp....v=0..o=Cisco-SIPUA 21556 3477 IN IP4 1
>   0.0.0.120..s=SIP Call..c=IN IP4 10.0.0.120..t=0 0..m=audio 19262 RTP/AVP 0 8 18 101..a=rtpmap:0 PCMU/80
>   00..a=rtpmap:8 PCMA/8000..a=rtpmap:18 G729/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..  
> #
> U 10.0.0.54:5060 -> 10.0.0.120:5060
>   SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6
>   c7e4..From: "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd9e-619edc48..To: <sip:100
>   6 at lima.dsi.crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..CSeq: 101 INVITE..Server: 
>   Sip EXpress router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392 10.0.0.54:5060 "Noisy feedbac
>   k tells:  pid=8674 req_src_ip=10.0.0.120 req_src_port=50630 in_uri=sip:1006 at lima.dsi.crc.ca out_uri=sip
>   :1006 at lima.dsi.crc.ca via_cnt==1"....                                                                  
> #####
> U 10.0.0.54:5060 -> 10.0.0.121:5060
>   INVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Max-Forwards: 10..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bb
>   ed7fef000111abafd9e-619edc48;lr=on>..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.7c291214.1..Via: SIP
>   /2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6c7e4..From: "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag=000b
>   bed7fef000111abafd9e-619edc48..To: <sip:1006 at lima.dsi.crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee-6312
>   5750 at 10.0.0.120..Date: Wed, 18 Feb 2004 14:33:55 GMT..CSeq: 101 INVITE..User-Agent: CSCO/6..Contact: <s
>   ip:1007 at 10.0.0.120:5060>..Expires: 180..Content-Type: application/sdp..Content-Length: 242..Accept: app
>   lication/sdp....v=0..o=Cisco-SIPUA 21556 3477 IN IP4 10.0.0.120..s=SIP Call..c=IN IP4 10.0.0.120..t=0 0
>   ..m=audio 19262 RTP/AVP 0 8 18 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:18 G729/8000..
>   a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..                                                   
> #####
> U 10.0.0.54:5060 -> 10.0.0.121:5060
>   INVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9
>   e-619edc48;lr=on>..Max-Forwards: 9 ..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-61
>   9edc48;lr=on>..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.8c291214.1..Via: SIP/2.0/UDP 10.0.0.54;bra
>   nch=z9hG4bKf054.7c291214.0..Via: SIP/2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6c7e4..From: "1007-c7960"
>    <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd9e-619edc48..To: <sip:1006 at lima.dsi.crc.ca>..Call
>   -ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..Date: Wed, 18 Feb 2004 14:33:55 GMT..CSeq: 101 INV
>   ITE..User-Agent: CSCO/6..Contact: <sip:1007 at 10.0.0.120:5060>..Expires: 180..Content-Type: application/s
>   dp..Content-Length: 242..Accept: application/sdp....v=0..o=Cisco-SIPUA 21556 3477 IN IP4 10.0.0.120..s=
>   SIP Call..c=IN IP4 10.0.0.120..t=0 0..m=audio 19262 RTP/AVP 0 8 18 101..a=rtpmap:0 PCMU/8000..a=rtpmap:
>   8 PCMA/8000..a=rtpmap:18 G729/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..               
> #####
> U 10.0.0.54:5060 -> 10.0.0.121:5060
>   INVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9
>   e-619edc48;lr=on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Max
>   -Forwards: 8 ..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Via: SI
>   P/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.9c291214.1..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.8c2912
>   14.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.7c291214.0..Via: SIP/2.0/UDP 10.0.0.120:5060;branch
>   =z9hG4bK2ea6c7e4..From: "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd9e-619edc48..
>   To: <sip:1006 at lima.dsi.crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..Date: Wed, 18 
>   Feb 2004 14:33:55 GMT..CSeq: 101 INVITE..User-Agent: CSCO/6..Contact: <sip:1007 at 10.0.0.120:5060>..Expir
>   es: 180..Content-Type: application/sdp..Content-Length: 242..Accept: application/sdp....v=0..o=Cisco-SI
>   PUA 21556 3477 IN IP4 10.0.0.120..s=SIP Call..c=IN IP4 10.0.0.120..t=0 0..m=audio 19262 RTP/AVP 0 8 18 
>   101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:18 G729/8000..a=rtpmap:101 telephone-event/80
>   00..a=fmtp:101 0-15..                                                                                  
> #####
> U 10.0.0.54:5060 -> 10.0.0.121:5060
>   INVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9
>   e-619edc48;lr=on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Rec
>   ord-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Max-Forwards: 7 ..Record-
>   Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Via: SIP/2.0/UDP 10.0.0.54;br
>   anch=z9hG4bKf054.ac291214.1..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.9c291214.0..Via: SIP/2.0/UDP
>    10.0.0.54;branch=z9hG4bKf054.8c291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.7c291214.0..Via
>   : SIP/2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6c7e4..From: "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag
>   =000bbed7fef000111abafd9e-619edc48..To: <sip:1006 at lima.dsi.crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee
>   -63125750 at 10.0.0.120..Date: Wed, 18 Feb 2004 14:33:55 GMT..CSeq: 101 INVITE..User-Agent: CSCO/6..Contac
>   t: <sip:1007 at 10.0.0.120:5060>..Expires: 180..Content-Type: application/sdp..Content-Length: 242..Accept
>   : application/sdp....v=0..o=Cisco-SIPUA 21556 3477 IN IP4 10.0.0.120..s=SIP Call..c=IN IP4 10.0.0.120..
>   t=0 0..m=audio 19262 RTP/AVP 0 8 18 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:18 G729/8
>   000..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..                                              
> #####
> U 10.0.0.54:5060 -> 10.0.0.121:5060
>   INVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9
>   e-619edc48;lr=on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Rec
>   ord-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Record-Route: <sip:1006 at 1
>   0.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Max-Forwards: 6 ..Record-Route: <sip:1006 at 10.0.
>   0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.bc291
>   214.1..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.ac291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG
>   4bKf054.9c291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.8c291214.0..Via: SIP/2.0/UDP 10.0.0.5
>   4;branch=z9hG4bKf054.7c291214.0..Via: SIP/2.0/UDP 10.0.0.120:5060;branch=z9hG4bK2ea6c7e4..From: "1007-c
>   7960" <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd9e-619edc48..To: <sip:1006 at lima.dsi.crc.ca>.
>   .Call-ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..Date: Wed, 18 Feb 2004 14:33:55 GMT..CSeq: 10
>   1 INVITE..User-Agent: CSCO/6..Contact: <sip:1007 at 10.0.0.120:5060>..Expires: 180..Content-Type: applicat
>   ion/sdp..Content-Length: 242..Accept: application/sdp....v=0..o=Cisco-SIPUA 21556 3477 IN IP4 10.0.0.12
>   0..s=SIP Call..c=IN IP4 10.0.0.120..t=0 0..m=audio 19262 RTP/AVP 0 8 18 101..a=rtpmap:0 PCMU/8000..a=rt
>   pmap:8 PCMA/8000..a=rtpmap:18 G729/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..          
> ######
> U 10.0.0.54:5060 -> 10.0.0.121:5060 23313 at 0:1480
>   .....+.dINVITE sip:1006 at 10.0.0.121:5060 SIP/2.0..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef0001
>   11abafd9e-619edc48;lr=on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=
>   on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Record-Route: <si
>   p:1006 at 10.0.0.54;ftag=000bbed7fef000111abafd9e-619edc48;lr=on>..Record-Route: <sip:1006 at 10.0.0.54;ftag=
>   000bbed7fef000111abafd9e-619edc48;lr=on>..Max-Forwards: 5 ..Record-Route: <sip:1006 at 10.0.0.54;ftag=000b
>   bed7fef000111abafd9e-619edc48;lr=on>..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.cc291214.1..Via: SI
>   P/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.bc291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.ac2912
>   14.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.9c291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4
>   bKf054.8c291214.0..Via: SIP/2.0/UDP 10.0.0.54;branch=z9hG4bKf054.7c291214.0..Via: SIP/2.0/UDP 10.0.0.12
>   0:5060;branch=z9hG4bK2ea6c7e4..From: "1007-c7960" <sip:1007 at lima.dsi.crc.ca>;tag=000bbed7fef000111abafd
>   9e-619edc48..To: <sip:1006 at lima.dsi.crc.ca>..Call-ID: 000bbed7-fef00011-559f00ee-63125750 at 10.0.0.120..D
>   ate: Wed, 18 Feb 2004 14:33:55 GMT..CSeq: 101 INVITE..User-Agent: CSCO/6..Contact: <sip:1007 at 10.0.0.120
>   :5060>..Expires: 180..Content-Type: application/sdp..Content-Length: 242..Accept: application/sdp....v=
>   0..o=Cisco-SIPUA 21556 3477 IN IP4 10.0.0.120..s=SIP Call..c=IN IP4 10.0.0.120..t=0 0..m=audio 19262 RT
>   P/AVP 0 8 18 101..a=rtpmap:0 PCMU/8000                                                                 
> ######
> 
> 
> ------------------------------------------------------------------------
> 
> #
> # $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=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"
> 
> # ------------------ 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"
> 
> # 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)
> modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser") # our local db for ser users --st
> modparam("usrloc", "timer_interval", 10) # speed up writebacks to mysql [default is 60s] --st
> 
> # -- auth params --
> modparam("auth_db", "db_url", "sql://ser:heslo@localhost/ser") # db location & passwd --st
> 
> # Uncomment if you are using auth module
> #
> modparam("auth_db", "calculate_ha1", yes) # here we can change yes to no for hidden passwds in the db --st
> #
> # 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
> 
> alias="Lima"
> alias="lima"
> alias="10.0.0.54"
> alias="lima.dsi.crc.ca"
> 
> 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=~"^sip:(.+@)?(10\.0\.0\.54|dsi\.crc\.ca)([:;\?].*)?$") {
> 
> 		if (method=="REGISTER") {
> 				
> 			# Uncomment this if you want to use digest authentication
> 			
> 
> 			if (!www_authorize("lima.dsi.crc.ca", "subscriber")) {
> 				www_challenge("lima.dsi.crc.ca", "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();
> 	};
> 
> } # end of main route logic #
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list