[Serusers] SUBSCRIBE timeout again

Andrey Kouprianov andrey.kouprianov at gmail.com
Tue Dec 13 16:52:53 CET 2005


Hi,

I am having the same problem with SUBSCRIBEs again.... SER just keeps
on sending me
back timeouts for them... The problem persists only for any other
presentity except myself.
SUBSCRIBE timeouts happen most of the times, however, it's only
sometimes, that they get through.

Here's a part of ser.cfg responsible for SUBSCRIBE and NOTIFY:

. . . . . .

 if(method=="SUBSCRIBE") {
     if (!www_authorize("sip.interlab.ait.ac.th", "subscriber")) {
         log(1, "Authentication for SUBSCRIBE");
         www_challenge("sip.interlab.ait.ac.th", "0");
         break;
     };

     if(!lookup("location") ) {
         log(1, "No registered user found for SUBSCRIBE request");
         sl_send_reply("404", "Not Found");
         break;
      };
 };

 if(method=="NOTIFY") {
      if (!www_authorize("sip.interlab.ait.ac.th", "subscriber")) {
         log(1, "Authentication for SUBSCRIBE");
         www_challenge("sip.interlab.ait.ac.th", "0");
         break;
     };

      if (!lookup("location")) {
         log(1, "No registered user found for NOTIFY request");
         sl_send_reply("404", "Not Found");
         break;
      };
 };

 if( !t_relay() ) {
    sl_reply_error();
 };

 . . . . . . . .


Here are the traces:

Message 1 from 203.159.32.39:5060 to 203.159.31.36:5060


SUBSCRIBE sip:12345 at sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250 at 203.159.32.39
CSeq: 1 SUBSCRIBE
From: "Andrey Kuprianov" <sip:andrey at sip.interlab.ait.ac.th>;tag=15493888
To: <sip:12345 at sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK3ad443c5b49de4b050bd2b028597a868
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event:  presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey at 203.159.32.39:5060>
Content-Length: 0



Message 2 from 203.159.31.36:5060 to 203.159.32.39:5060


SIP/2.0 401 Unauthorized
Call-ID: 7762edc6f3954c87c8b95a0270653250 at 203.159.32.39
CSeq: 1 SUBSCRIBE
From: "Andrey Kuprianov" <sip:andrey at sip.interlab.ait.ac.th>;tag=15493888
To: <sip:12345 at sip.interlab.ait.ac.th>;tag=1a5a85ff3e08e000f4c2527642cf14ac.5e75
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK3ad443c5b49de4b050bd2b028597a868
WWW-Authenticate: Digest
realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0"
Server: Sip EXpress router (0.9.3 (i386/freebsd))
Warning: 392 203.159.31.36:5060 "Noisy feedback tells:  pid=17754
req_src_ip=203.159.32.39 req_src_port=5060
in_uri=sip:12345 at sip.interlab.ait.ac.th
out_uri=sip:12345 at sip.interlab.ait.ac.th via_cnt==1"
Content-Length: 0



Message 3 from 203.159.32.39:5060 to 203.159.31.36:5060


SUBSCRIBE sip:12345 at sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250 at 203.159.32.39
CSeq: 2 SUBSCRIBE
To: <sip:12345 at sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK991c906a283ca5d57e8856c98097e81c
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event:  presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey at 203.159.32.39:5060>
Authorization: Digest
username="andrey",realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0",uri="sip:12345 at sip.interlab.ait.ac.th",response="1c7fa7ceb1f654d0e2ea91c54823bb8d"
From: "Andrey Kuprianov" <sip:andrey at sip.interlab.ait.ac.th>;tag=15493888
Content-Length: 0



Message 4 from 203.159.32.39:5060 to 203.159.31.36:5060


SUBSCRIBE sip:12345 at sip.interlab.ait.ac.th SIP/2.0
Call-ID: 7762edc6f3954c87c8b95a0270653250 at 203.159.32.39
CSeq: 2 SUBSCRIBE
To: <sip:12345 at sip.interlab.ait.ac.th>
Via: SIP/2.0/UDP
203.159.32.39:5060;branch=z9hG4bK991c906a283ca5d57e8856c98097e81c
Max-Forwards: 70
Allow: REGISTER,INVITE,BYE,ACK,CANCEL,SUBSCRIBE,NOTIFY,MESSAGE
User-Agent: IntERLab User Agent 1.0a
Event:  presence
Expires: 600
Accept: application/pidf+xml,application/xpidf+xml,application/xvcresource+xml
Contact: <sip:andrey at 203.159.32.39:5060>
Authorization: Digest
username="andrey",realm="sip.interlab.ait.ac.th",nonce="439ee222efefefbb8cbb78e75d6d15b723a1e1d0",uri="sip:12345 at sip.interlab.ait.ac.th",response="1c7fa7ceb1f654d0e2ea91c54823bb8d"
From: "Andrey Kuprianov" <sip:andrey at sip.interlab.ait.ac.th>;tag=15493888
Content-Length: 0

. . . . . .

And so it goes, until SER replies with Timeout.

There are no error messages in the log.

Can you tell me what is wrong???




More information about the sr-users mailing list