489 Bad Event received for SUBSCRIBE

1,393 views
Skip to first unread message

Jaya

unread,
Jul 21, 2010, 8:10:32 PM7/21/10
to mobicents-public
Hi,

I am sending SUBSCRIBE requests to users registered to the Mobicents
Presence server which is deployed using mobicents-sip-presence-
integrated-1.0.0.BETA5.

After the registration is successful, I am sending a SUBSCRIBE from
one user "user3" to another user "user1".
My client application is receiving 489 BAD EVENT instead of a NOTIFY
message.

Can someone please let me know if there is something wrong with my
client application or the Server?

Here is the wireshark trace for the messages:

Frame 11 (481 bytes on wire, 481 bytes captured)
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst:
00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1
(127.0.0.1)
User Datagram Protocol, Src Port: 5075 (5075), Dst Port: sip (5060)
Session Initiation Protocol
Request-Line: SUBSCRIBE sip:user1@localhost SIP/2.0
Message Header
Call-ID: cc6e7e6d2cc92249...@127.0.0.1
CSeq: 1 SUBSCRIBE
From: <sip:user3@localhost>;tag=1234
To: "user1" <sip:user1@localhost>;tag=1234
Via: SIP/2.0/UDP localhost:
5075;branch=z9hG4bK1390ecc2abc2641d40689913ce8f54c2323438
Max-Forwards: 70
Accept: application/pidf+xml
Expires: 3600
Contact: "user3" <sip:us...@127.0.0.1:5075;transport=udp>
Event: Presence
Content-Length: 0

No. Time Source Destination
Protocol Info
12 20.587816 127.0.0.1 127.0.0.1
SIP Status: 489 Bad Event

Frame 12 (470 bytes on wire, 470 bytes captured)
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst:
00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1
(127.0.0.1)
User Datagram Protocol, Src Port: sip (5060), Dst Port: 5075 (5075)
Session Initiation Protocol
Status-Line: SIP/2.0 489 Bad Event
Message Header
Call-ID: cc6e7e6d2cc92249...@127.0.0.1
CSeq: 1 SUBSCRIBE
From: <sip:user3@localhost>;tag=1234
To: "user1" <sip:user1@localhost>;tag=1234
Via: SIP/2.0/UDP localhost:
5075;branch=z9hG4bK1390ecc2abc2641d40689913ce8f54c2323438;received=127.0.0.1
Allow-Events: presence,presence.winfo,xcap-diff,xcap-
diff.winfo
Contact: "Mobicents SIP Event Server" <sip:127.0.0.1:5060>
Content-Length: 0

Thanks for your help,
Jaya

khaoula ammar

unread,
Jul 26, 2010, 7:32:36 AM7/26/10
to mobicent...@googlegroups.com
if you only need slee, you may want to upgrade to jain slee 2.x.y.
http://www.mobicents.org/slee/downloads.html


2010/7/22 Jaya <jaya....@gmail.com>

Eduardo Martins

unread,
Jul 26, 2010, 8:00:56 AM7/26/10
to mobicent...@googlegroups.com
Event: Presence

The header above is not accepted by BETA5, it is expecting Event:
presence due be case sensitive. If you grab instead a binary snapshot
of the current code or build from source it is fixed. Binary snapshot
at http://hudson.jboss.org/hudson/job/MobicentsSipPresenceRelease/


-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco

Jaya

unread,
Jul 26, 2010, 9:32:06 AM7/26/10
to mobicents-public
Thanks Eduardo and Khaoula,

I did realize that I was getting the error because of case
sensitivity. I had changed it to 'presence' and it works fine.

Thanks,
Jaya



On Jul 26, 8:00 am, Eduardo Martins <emmart...@gmail.com> wrote:
> Event: Presence
>
> The header above is not accepted by BETA5, it is expecting Event:
> presence due be case sensitive. If you grab instead a binary snapshot
> of the current code or build from source it is fixed. Binary snapshot
> athttp://hudson.jboss.org/hudson/job/MobicentsSipPresenceRelease/
>
> -- Eduardo
>
> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-http://emmartins.blogspot.comhttp://www.redhat.com/solutions/telco
>
> On Thu, Jul 22, 2010 at 1:10 AM, Jaya <jaya.gad...@gmail.com> wrote:
> > Hi,
>
> > I am sending SUBSCRIBE requests to users registered to the Mobicents
> > Presence server which is deployed using mobicents-sip-presence-
> > integrated-1.0.0.BETA5.
>
> > After the registration is successful, I am sending a SUBSCRIBE from
> > one user "user3" to another user "user1".
> > My client application is receiving 489 BAD EVENT instead of a NOTIFY
> > message.
>
> > Can someone please let me know if there is something wrong with my
> > client application or the Server?
>
> > Here is the wireshark trace for the messages:
>
> > Frame 11 (481 bytes on wire, 481 bytes captured)
> > Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst:
> > 00:00:00_00:00:00 (00:00:00:00:00:00)
> > Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1
> > (127.0.0.1)
> > User Datagram Protocol, Src Port: 5075 (5075), Dst Port: sip (5060)
> > Session Initiation Protocol
> >    Request-Line: SUBSCRIBE sip:user1@localhost SIP/2.0
> >    Message Header
> >        Call-ID: cc6e7e6d2cc922492a7b2cb635798...@127.0.0.1
> >        CSeq: 1 SUBSCRIBE
> >        From: <sip:user3@localhost>;tag=1234
> >        To: "user1" <sip:user1@localhost>;tag=1234
> >        Via: SIP/2.0/UDP localhost:
> > 5075;branch=z9hG4bK1390ecc2abc2641d40689913ce8f54c2323438
> >        Max-Forwards: 70
> >        Accept: application/pidf+xml
> >        Expires: 3600
> >        Contact: "user3" <sip:us...@127.0.0.1:5075;transport=udp>
> >        Event: Presence
> >        Content-Length: 0
>
> > No.     Time        Source                Destination
> > Protocol Info
> >     12 20.587816   127.0.0.1             127.0.0.1
> > SIP      Status: 489 Bad Event
>
> > Frame 12 (470 bytes on wire, 470 bytes captured)
> > Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst:
> > 00:00:00_00:00:00 (00:00:00:00:00:00)
> > Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1
> > (127.0.0.1)
> > User Datagram Protocol, Src Port: sip (5060), Dst Port: 5075 (5075)
> > Session Initiation Protocol
> >    Status-Line: SIP/2.0 489 Bad Event
> >    Message Header
> >        Call-ID: cc6e7e6d2cc922492a7b2cb635798...@127.0.0.1
Reply all
Reply to author
Forward
0 new messages