[sip-comm-dev] Asterisk voicemail NOTIFY Exception


#1

Hi all,

I've found that SipComm is not replying Asterisk when this last is notifying about voicemail messages, and Asterisk is re-sending this messages, making logs unreadable, saturating both network and server/client applications
Maybe this issue is about JainSip, but I'm not sure at all.

SIP Communicator (SVN version, WindowsXP3 SP3) : 192.168.1.35
Asterisk (v1.4.18.1): 192.168.1.101

SIP Packet (from WireShark dump)

···

----------------------
NOTIFY sip:6003@192.168.1.35:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.101:5060;branch=z9hG4bK22e803c7;rport
From: "asterisk" <sip:asterisk@192.168.1.101>;tag=as74f580a3
To: <sip:6003@192.168.1.35:5060;transport=udp>
Contact: <sip:asterisk@192.168.1.101>
Call-ID: 1ef971da5418f30c4b55020623c46c96@192.168.1.101
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 93

Messages-Waiting: no
Message-Account: sip:asterisk@192.168.1.101
Voice-Message: 0/0 (0/0)
--------------------------

SipComm exception cached and logged:
------------------------
12:21:49.405 GRAVE: impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest().1264 Failed to create a new servertransaction for an incoming request
(Next message contains the request)
javax.sip.TransactionUnavailableException: Missing a required header : Subscription-State
        at gov.nist.javax.sip.SipProviderImpl.getNewServerTransaction(SipProviderImpl.java:440)
        at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest(ProtocolProviderServiceSipImpl.java:1249)
        at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:223)
        at gov.nist.javax.sip.EventScanner.run(EventScanner.java:492)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.text.ParseException: Missing a required header : Subscription-State
        at gov.nist.javax.sip.message.SIPRequest.checkHeaders(SIPRequest.java:244)
        at gov.nist.javax.sip.SipProviderImpl.getNewServerTransaction(SipProviderImpl.java:438)
        ... 4 more
--------------------

Any hints? Is this an Asterisk, JainSip or Sipcomm issue?

Thanks in advance,
Javier

--
Javier Mendiara Ca�ardo

Skype: jmendiara.tid
MsnIM: javier.mendiara@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello Javier,

                Me too experienced this issue.

                The issue seems to be in Asterisk because the
Subscription-State header is a mandatory header for the Notify Request(as
per the RFC 3261). Due to the absence of this header, JAIN SIP throws the
exception.

                What do you think?

Regards,
Vinoth Kumar.

···

On Mon, Sep 29, 2008 at 4:10 PM, Javier Mendiara Cañardo < javier.mendiara@gmail.com> wrote:

Hi all,

I've found that SipComm is not replying Asterisk when this last is
notifying about voicemail messages, and Asterisk is re-sending this
messages, making logs unreadable, saturating both network and server/client
applications
Maybe this issue is about JainSip, but I'm not sure at all.

SIP Communicator (SVN version, WindowsXP3 SP3) : 192.168.1.35
Asterisk (v1.4.18.1): 192.168.1.101

SIP Packet (from WireShark dump)
----------------------
NOTIFY sip:6003@192.168.1.35:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.101:5060;branch=z9hG4bK22e803c7;rport
From: "asterisk" <sip:asterisk@192.168.1.101<sip%3Aasterisk@192.168.1.101>
>;tag=as74f580a3
To: <sip:6003@192.168.1.35:5060;transport=udp>
Contact: <sip:asterisk@192.168.1.101 <sip%3Aasterisk@192.168.1.101>>
Call-ID: 1ef971da5418f30c4b55020623c46c96@192.168.1.101
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 93

Messages-Waiting: no
Message-Account: sip:asterisk@192.168.1.101 <sip%3Aasterisk@192.168.1.101>
Voice-Message: 0/0 (0/0)
--------------------------

SipComm exception cached and logged:
------------------------
12:21:49.405 GRAVE:
impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest().1264
Failed to create a new servertransaction for an incoming request
(Next message contains the request)
javax.sip.TransactionUnavailableException: Missing a required header :
Subscription-State
      at
gov.nist.javax.sip.SipProviderImpl.getNewServerTransaction(SipProviderImpl.java:440)
      at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest(ProtocolProviderServiceSipImpl.java:1249)
      at
gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:223)
      at gov.nist.javax.sip.EventScanner.run(EventScanner.java:492)
      at java.lang.Thread.run(Thread.java:619)
Caused by: java.text.ParseException: Missing a required header :
Subscription-State
      at
gov.nist.javax.sip.message.SIPRequest.checkHeaders(SIPRequest.java:244)
      at
gov.nist.javax.sip.SipProviderImpl.getNewServerTransaction(SipProviderImpl.java:438)
      ... 4 more
--------------------

Any hints? Is this an Asterisk, JainSip or Sipcomm issue?

Thanks in advance,
Javier

--
Javier Mendiara Cañardo

Skype: jmendiara.tid
MsnIM: javier.mendiara@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net