[Serusers] help with the setup of Ser.

Chris Monahan chris at loudpacket.com
Thu Dec 4 02:12:13 CET 2003


I am forwarding this message so the rest of the list can benefit as well. 
 
 
this is what my ngrep looks like now: It appears that the phone is trying to register, but the ser server is saying No!

	 
	How can I fix this?
	 
	Thanks a whole lot!
	 
	Chris
	 
	U 192.168.3.201:50207 -> 192.168.3.1:5060
	  REGISTER sip:192.168.3.1 SIP/2.0..Via: SIP/2.0/UDP 192.168.3.201:5060..From: sip:chris at 192.168.3.1..To: sip:chris at 192.168
	  .3.1..Call-ID: 00036b3c-2e330026-71ef1fc6-7d9d0be3 at 192.168.3.201..CSeq: 101 REGISTER..User-Agent: CSCO/4..Contact: sip:ch
	  ris at 192.168.3.201:5060..Content-Length: 0..Expires: 3600....
	#
	U 192.168.3.1:5060 -> 192.168.3.201:5060
	  SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 192.168.3.201:5060..From: sip:chris at 192.168.3.1..To: sip:chris at 192.168.3.1;tag
	  =b27e1a1d33761e85846fc98f5f3a7e58.ff9c..Call-ID: 00036b3c-2e330026-71ef1fc6-7d9d0be3 at 192.168.3.201..CSeq: 101 REGISTER..W
	  WW-Authenticate: Digest realm="sip.telepacket.com", nonce="3fce89df87947262e59f6714c788b940428cf2ab"..Server: Sip EXpress
	   router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392 192.168.3.1:5060 "Noisy feedback tells:  pid=1081 req_src_
	  ip=192.168.3.201 req_src_port=50207 in_uri=sip:192.168.3.1 out_uri=sip:192.168.3.1 via_cnt==1"....
	#
	U 192.168.3.201:50207 -> 192.168.3.1:5060
	  REGISTER sip:192.168.3.1 SIP/2.0..Via: SIP/2.0/UDP 192.168.3.201:5060..From: sip:chris at 192.168.3.1..To: sip:chris at 192.168
	  .3.1..Call-ID: 00036b3c-2e330026-71ef1fc6-7d9d0be3 at 192.168.3.201..CSeq: 102 REGISTER..User-Agent: CSCO/4..Contact: sip:ch
	  ris at 192.168.3.201:5060..Authorization: Digest username="LINE 1",realm="sip.telepacket.com",uri="sip:192.168.3.1",response
	  ="2146fa3e14386bf104a407f57e879d81",nonce="3fce89df87947262e59f6714c788b940428cf2ab",algorithm=md5..Content-Length: 0..Ex
	  pires: 3600....
	#
	U 192.168.3.1:5060 -> 192.168.3.201:5060
	  SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 192.168.3.201:5060..From: sip:chris at 192.168.3.1..To: sip:chris at 192.168.3.1;tag
	  =b27e1a1d33761e85846fc98f5f3a7e58.ff9c..Call-ID: 00036b3c-2e330026-71ef1fc6-7d9d0be3 at 192.168.3.201..CSeq: 102 REGISTER..W
	  WW-Authenticate: Digest realm="sip.telepacket.com", nonce="3fce89df87947262e59f6714c788b940428cf2ab"..Server: Sip EXpress
	   router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392 192.168.3.1:5060 "Noisy feedback tells:  pid=1083 req_src_
	  ip=192.168.3.201 req_src_port=50207 in_uri=sip:192.168.3.1 out_uri=sip:192.168.3.1 via_cnt==1"....
	############exit
	
	 

		-----Original Message----- 
		From: Jan Janak [mailto:jan at iptel.org] 
		Sent: Wed 12/3/2003 4:43 PM 
		To: Chris Monahan 
		Cc: 
		Subject: Re: [Serusers] help with the setup of Ser.
		
		

		Most of them send REGISTER by default when you turn them on.
		If it is Cisco 7960 then go to "SIP Configuration" menu and check that
		the item "Register with Proxy" (number 10) is set to yes.
		
		  Jan.
		
		
		On 03-12 16:41, Chris Monahan wrote:
		> Here is my config. I am working on the ngrep now.
		> 
		> How do I get my phones to send a REGISTER?
		> 
		> #
		> # $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/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
		> alias="telepacket.com"
		> alias="sip.telepacket.com"
		> alias="192.168.3.1"
		> 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 (uri=~"^sip:9[0-9]*@sip.telepacket.com") {
		> #    log("Forwarding to PSTN\n");
		>     #t_relay_to( "207.71.120.6", "5060");
		> #    break;
		> #};
		> if (!uri==myself) {
		>   route(1);
		>   break;
		> };
		> if (method=="REGISTER") {route(3); break; };
		> lookup("aliases");
		> if (!uri==myself) { 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\.3\.1|(sip\.)?telepacket\.com)([:;\?].*)?$") {
		>         if (uri==myself) {
		>                 if (method=="REGISTER") {
		> # Uncomment this if you want to use digest authentication
		>                         if (!www_authorize("sip.telepacket.com", "subscriber")) {
		>                                 www_challenge("sip.telepacket.com", "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();
		>         };
		> }
		>
		>
		>       -----Original Message-----
		>       From: Jan Janak [mailto:jan at iptel.org]
		>       Sent: Wed 12/3/2003 4:08 PM
		>       To: Chris Monahan
		>       Cc: Kannaiyan Natesan; serusers at iptel.org
		>       Subject: Re: [Serusers] help with the setup of Ser.
		>      
		>      
		>
		>       Hello,
		>      
		>       first of all, please remove the change suggested by Kannaiyan, it is
		>       wrong.
		>      
		>       To help you properly we would need to see your configuration file and
		>       SIP message dumps.
		>      
		>       You can create the message dumps using ngrep utility. Run
		>       "ngrep port 5060" on the SER server, it will show you all traffic coming to the
		>       server.
		>      
		>       First of all you must make your phones to send a REGISTER message. The
		>       message should be sent to SER server and the server should reply with
		>       200 OK.
		>      
		>       Please send us the message dumps once you have them.
		>      
		>         Jan.
		>      
		>      
		>       On 03-12 15:31, Chris Monahan wrote:
		>       > well its doing something different now -- when I dial a call, it adds it to the location table in mysql.  on the phone, it doesn't ring or anything, it just brings me right back to the WFC screen....
		>       >
		>       > Any ideas?
		>       >
		>       >       -----Original Message-----
		>       >       From: Kannaiyan Natesan [mailto:nkans at lycos.co.uk]
		>       >       Sent: Wed 12/3/2003 3:29 PM
		>       >       To: Chris Monahan; serusers at iptel.org
		>       >       Cc:
		>       >       Subject: Re: [Serusers] help with the setup of Ser.
		>       >     
		>       >     
		>       >
		>       >       Sorry. that should be
		>       >     
		>       >       if( method =="REGISTER") {
		>       >         save("location");
		>       >       };
		>       >     
		>       >       Kannaiyan
		>       >     
		>       >     
		>       >     
		>       >       ----- Original Message -----
		>       >       From: "Kannaiyan Natesan" <nkans at lycos.co.uk>
		>       >       To: "Chris Monahan" <chris at loudpacket.com>; <serusers at iptel.org>
		>       >       Sent: Wednesday, December 03, 2003 11:25 PM
		>       >       Subject: Re: [Serusers] help with the setup of Ser.
		>       >     
		>       >     
		>       >       > Remove the "if( uri==myself )" condition completely & add the following
		>       >       >
		>       >       > if( method == INVITE) {
		>       >       >    save("location");
		>       >       > };
		>       >       >
		>       >       > this should register all the phones coming to your server. and you should
		>       >       > able to call them without any problems.
		>       >       >
		>       >       > Kannaiyan
		>       >       >
		>       >       > http://www.speak2world.com -- Call with your own domain !!!
		>       >       >
		>       >       >
		>       >       > ----- Original Message -----
		>       >       > From: "Chris Monahan" <chris at loudpacket.com>
		>       >       > To: <serusers at iptel.org>
		>       >       > Sent: Wednesday, December 03, 2003 11:14 PM
		>       >       > Subject: [Serusers] help with the setup of Ser.
		>       >       >
		>       >       >
		>       >       > > Hello people...
		>       >       > >
		>       >       > > I have been working on Ser all day. I have read every manual possible,
		>       >       and
		>       >       > am about to lose it!  My setup is pretty simple.  Ser is running on
		>       >       > 192.168.3.1...  it is a dhcp server, tftp server, and ser server.
		>       >       > >
		>       >       > > I have 2 Cisco IP Phones (7960)...
		>       >       > >
		>       >       > > They both connect to 192.168.3.1 just fine.  They download the latest
		>       >       rom,
		>       >       > they have the appropriate lines in the top right of the screen.
		>       >       > >
		>       >       > > Everything seems fine, until I attempt to make a call.
		>       >       > >
		>       >       > > Running serctl monitor shows me that everytime a call is placed, it gets
		>       >       > an error 404 - Not Found.    I was getting error 483 earlier, but I read
		>       >       the
		>       >       > documentation some more and fixed it.
		>       >       > >
		>       >       > > I have setup locations for the two users (sip:chris at 192.168.3.1) and
		>       >       > (sip:allan at 192.168.3.1), and aliases as well..
		>       >       > >
		>       >       > > Still, I cannot make a call between the two phones. Everytime I try, I
		>       >       get
		>       >       > a busy tone on the phone, and error 404...
		>       >       > >
		>       >       > > Can anyone please help?
		>       >       > >
		>       >       > > Thanks!
		>       >       > >
		>       >       >
		>       >       >
		>       >       > --------------------------------------------------------------------------
		>       >       --
		>       >       > ----
		>       >       >
		>       >       >
		>       >       > > _______________________________________________
		>       >       > > Serusers mailing list
		>       >       > > Serusers at iptel.org
		>       >       > > http://mail.iptel.org/mailman/listinfo/serusers
		>       >       > >
		>       >       >
		>       >       >
		>       >       > _______________________________________________
		>       >       > Serusers mailing list
		>       >       > Serusers at iptel.org
		>       >       > http://mail.iptel.org/mailman/listinfo/serusers
		>       >       >
		>       >     
		>       >     
		>       >     
		>       >
		>      
		>       > _______________________________________________
		>       > Serusers mailing list
		>       > Serusers at iptel.org
		>       > http://mail.iptel.org/mailman/listinfo/serusers
		>      
		>      
		>
		



More information about the sr-users mailing list