1 Reply Latest reply: May 27, 2011 9:54 AM by Jean Deruelle RSS

    Resubscribe Problem

    Emre YAKIN Newbie

      Hi,

       

      I am developing a presence application over mss5.1.0  with jboss 1.5.0,

       

      when client sends resubscribe mobicents gets following exception and generate 500 server internal Error,

      Do you have any idea, what's going on or What I do wrong?

       

      (I attach the capture file),

       

      Thanks in advance..

       

      Emre YAKIN,

      Istanbul/TURKEY

       

      2011-05-20 15:50:18,027 ERROR [org.mobicents.servlet.sip.core.dispatchers.DispatchTask] (Mobicents-SIP-Servlets-UDPMessageChannelThr

      ead-9) Unexpected exception while processing message SUBSCRIBE sip:192.168.0.7:5080 SIP/2.0^M

      Via: SIP/2.0/UDP 192.168.0.7:5065;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o0f8wJzsd^M

      Via: SIP/2.0/UDP 192.168.0.7:5060;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o0f8wJ^M

      Via: SIP/2.0/UDP 192.168.2.33:5068;rport=5068;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o;received=192.168.2.33^M

      Max-Forwards: 69^M

      From: <sip:11659@turktelekom.com.tr>;tag=9.cfWXK-eQXJ2Jbhl2WhPmIBdDKG3lZD^M

      To: <sip:11659@turktelekom.com.tr>;tag=17899654_89a8a335_c0b454c9-7a60-4592-a8a0-3305614ba246^M

      Contact: <sip:11659@192.168.2.33:5068>^M

      Call-ID: 0f8wJhwLS-jfqCZCE.SqzwYz9OYWWGiF^M

      CSeq: 486 SUBSCRIBE^M

      Event: presence.winfo^M

      Expires: 60^M

      Supported: replaces,100rel,timer,norefersub^M

      Accept: application/watcherinfo+xml^M

      Allow-Events: presence.winfo,presence,message-summary,refer^M

      Record-Route: <sip:192.168.0.7:5065;transport=udp;lr>^M

      Record-Route: <sip:192.168.0.7:5060;transport=udp;lr>^M

      Content-Length: 0^M

      ^M

       

       

      java.lang.IllegalStateException: an exception occured when sending the response SIP/2.0 200 OK^M

      To: <sip:11659@turktelekom.com.tr>;tag=17899654_89a8a335_c0b454c9-7a60-4592-a8a0-3305614ba246^M

      Via: SIP/2.0/UDP 192.168.0.7:5065;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o0f8wJzsd^M

      Via: SIP/2.0/UDP 192.168.0.7:5060;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o0f8wJ^M

      Via: SIP/2.0/UDP 192.168.2.33:5068;rport=5068;branch=z9hG4bKPj5uS3HBIFw-6A-Xa3zC3QSfqu0kBo4U4o;received=192.168.2.33^M

      CSeq: 486 SUBSCRIBE^M

      Call-ID: 0f8wJhwLS-jfqCZCE.SqzwYz9OYWWGiF^M

      From: <sip:11659@turktelekom.com.tr>;tag=9.cfWXK-eQXJ2Jbhl2WhPmIBdDKG3lZD^M

      Contact: <sip:192.168.0.7:5080>^M

      Content-Length: 0^M

      ^M

       

       

              at org.mobicents.servlet.sip.message.SipServletResponseImpl.send(SipServletResponseImpl.java:624)

              at org.mobicents.servlet.sip.message.SipServletResponseImpl.send(SipServletResponseImpl.java:438)

              at tr.com.argela.sip.presence.servlets.PresenceSrvlt.doSubscribe(PresenceSrvlt.java:668)

              at javax.servlet.sip.SipServlet.doRequest(SipServlet.java:237)

              at javax.servlet.sip.SipServlet.service(SipServlet.java:325)

              at org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher.callServlet(MessageDispatcher.java:235)

              at org.mobicents.servlet.sip.core.dispatchers.SubsequentRequestDispatcher$SubsequentDispatchTask.dispatch(SubsequentRequestD

      ispatcher.java:455)

              at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleExceptions(DispatchTask.java:55)

              at org.mobicents.servlet.sip.core.dispatchers.SubsequentRequestDispatcher.dispatchMessage(SubsequentRequestDispatcher.java:2

      94)

              at org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest(SipApplicationDispatcherImpl.java:701)

              at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:230)

              at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)

              at gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:1303)

              at gov.nist.javax.sip.stack.SIPServerTransaction.processRequest(SIPServerTransaction.java:847)

              at gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel.java:540)

              at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMessageChannel.java:492)

              at gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:297)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: javax.sip.SipException: Expires header is mandatory in 2xx response of SUBSCRIBE

              at gov.nist.javax.sip.stack.SIPServerTransaction.sendResponse(SIPServerTransaction.java:1366)

              at org.mobicents.servlet.sip.message.SipServletResponseImpl.send(SipServletResponseImpl.java:608)

              ... 17 more