[jitsi-dev] SIMPLE support?


#1

Hello,

What is the current status of SIMPLE support in jitsi? I can see there is some sort but it doesn't appear to be working properly. I have an account with some contacts in it so the server sends messages like this one:

17:50:25.000 2 SIPDATA-057065 out: req -> tcp[10.0.0.19]:51087 NOTIFY(4069 bytes) sip:dop@10.0.0.19:51087;transport=tcp;maddr=10.0.0.19;registering_acc=xxx_com
17:50:25.000 5 SIPDATA-057065 out: NOTIFY sip:dop@10.0.0.19:51087;transport=tcp;maddr=10.0.0.19;registering_acc=xxx_com SIP/2.0
17:50:25.000 5 SIPDATA-057065 out: Via: SIP/2.0/TCP 10.0.0.1:5060;branch=z9hG4bK26798;rport
17:50:25.000 5 SIPDATA-057065 out: Max-Forwards: 69
17:50:25.000 5 SIPDATA-057065 out: From:<sip:xxx@xxx.com>;tag=7250A932FF383031
17:50:25.000 5 SIPDATA-057065 out: To:<sip:xxx@xxx.com>;tag=b7a558e0
17:50:25.000 5 SIPDATA-057065 out: Call-ID: 0786263354d8a12bb97cecac89cc8e2e@0:0:0:0:0:0:0:0
17:50:25.000 5 SIPDATA-057065 out: CSeq: 1 NOTIFY
17:50:25.000 5 SIPDATA-057065 out: Subscription-State: active;expires=3600
17:50:25.000 5 SIPDATA-057065 out: Event: presence.winfo

···

17:50:25.000 5 SIPDATA-057065 out: Contact:<sip:xxx@xxx.com>
17:50:25.000 5 SIPDATA-057065 out: User-Agent: CommuniGatePro-notify/5.4c2s
17:50:25.000 5 SIPDATA-057065 out: Content-Type: application/watcherinfo+xml
17:50:25.000 5 SIPDATA-057065 out: Content-Length: 3521
17:50:25.000 5 SIPDATA-057065 out:
17:50:25.000 5 SIPDATA-057065 out:<?xml version="1.0"?>
17:50:25.000 5 SIPDATA-057065 out:<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="0" state="full">
17:50:25.000 5 SIPDATA-057065 out:<watcher-list resource="sip:xxx@xxx.com" package="presence">
17:50:25.000 5 SIPDATA-057065 out:<watcher status="active" id="F42FACFD" event="subscribe" expiration="22454436">yyy@yyy.com</watcher>
....
17:50:25.000 5 SIPDATA-057065 out:<watcher status="pending" id="A371D261" event="subscribe" expiration="31521453">zzz@zzz.com</watcher>
....
17:50:25.001 5 SIPDATA-057065 out:</watcher-list>
17:50:25.001 5 SIPDATA-057065 out:</watcherinfo>

Now, every time a message like this arrives jitsi shows Authorization request popup for this contact (BTW, showing full SIP address there would be nice), however pressing any of the 3 buttons on it result in the following:

15:28:21.381 SEVERE: impl.protocol.sip.SipStackSharing.logApplicationException().1035 An error occurred while processing event of type: javax.sip.DialogTerminatedEvent
java.lang.NullPointerException
     at net.java.sip.communicator.impl.protocol.sip.ServerStoredContactListSipImpl.addContactToPoliteBlockList(ServerStoredContactListSipImpl.java:1218)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.setWatcherInfoStatus(OperationSetPresenceSipImpl.java:2633)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl$WatcherInfoSubscriberSubscription.processActiveRequest(OperationSetPresenceSipImpl.java:3563)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.processRequest(EventPackageSubscriber.java:667)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest(ProtocolProviderServiceSipImpl.java:1038)
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processRequest(SipStackSharing.java:610)
     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.TCPMessageChannel.processMessage(TCPMessageChannel.java:690)
     at gov.nist.javax.sip.parser.PipelinedMsgParser.run(PipelinedMsgParser.java:470)
     at java.lang.Thread.run(Thread.java:655)
15:28:21.389 WARNING: impl.protocol.sip.OperationSetPresenceSipImpl.setWatcherInfoStatus().2591 We are not supposed to have this contact in our list or its just rerequest of authorization!

Any ideas?

Best regards,

--
Dmitry Panov


#2

Hey Dmitry,

На 01.03.11 16:37, Dmitry Panov написа:

Hello,

What is the current status of SIMPLE support in jitsi? I can see there
is some sort but it doesn't appear to be working properly. I have an
account with some contacts in it so the server sends messages like this one:

This should be working. Are you able to easily reproduce it? If yes,
then could you please open an issue and in there tell us how to do this?
Attach a reference to this thread would also help.

Thanks,
Emil

···

17:50:25.000 2 SIPDATA-057065 out: req -> tcp[10.0.0.19]:51087 NOTIFY(4069 bytes) sip:dop@10.0.0.19:51087;transport=tcp;maddr=10.0.0.19;registering_acc=xxx_com
17:50:25.000 5 SIPDATA-057065 out: NOTIFY sip:dop@10.0.0.19:51087;transport=tcp;maddr=10.0.0.19;registering_acc=xxx_com SIP/2.0
17:50:25.000 5 SIPDATA-057065 out: Via: SIP/2.0/TCP 10.0.0.1:5060;branch=z9hG4bK26798;rport
17:50:25.000 5 SIPDATA-057065 out: Max-Forwards: 69
17:50:25.000 5 SIPDATA-057065 out: From:<sip:xxx@xxx.com>;tag=7250A932FF383031
17:50:25.000 5 SIPDATA-057065 out: To:<sip:xxx@xxx.com>;tag=b7a558e0
17:50:25.000 5 SIPDATA-057065 out: Call-ID: 0786263354d8a12bb97cecac89cc8e2e@0:0:0:0:0:0:0:0
17:50:25.000 5 SIPDATA-057065 out: CSeq: 1 NOTIFY
17:50:25.000 5 SIPDATA-057065 out: Subscription-State: active;expires=3600
17:50:25.000 5 SIPDATA-057065 out: Event: presence.winfo
17:50:25.000 5 SIPDATA-057065 out: Contact:<sip:xxx@xxx.com>
17:50:25.000 5 SIPDATA-057065 out: User-Agent: CommuniGatePro-notify/5.4c2s
17:50:25.000 5 SIPDATA-057065 out: Content-Type: application/watcherinfo+xml
17:50:25.000 5 SIPDATA-057065 out: Content-Length: 3521
17:50:25.000 5 SIPDATA-057065 out:
17:50:25.000 5 SIPDATA-057065 out:<?xml version="1.0"?>
17:50:25.000 5 SIPDATA-057065 out:<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="0" state="full">
17:50:25.000 5 SIPDATA-057065 out:<watcher-list resource="sip:xxx@xxx.com" package="presence">
17:50:25.000 5 SIPDATA-057065 out:<watcher status="active" id="F42FACFD" event="subscribe" expiration="22454436">yyy@yyy.com</watcher>
....
17:50:25.000 5 SIPDATA-057065 out:<watcher status="pending" id="A371D261" event="subscribe" expiration="31521453">zzz@zzz.com</watcher>
....
17:50:25.001 5 SIPDATA-057065 out:</watcher-list>
17:50:25.001 5 SIPDATA-057065 out:</watcherinfo>

Now, every time a message like this arrives jitsi shows Authorization
request popup for this contact (BTW, showing full SIP address there
would be nice), however pressing any of the 3 buttons on it result in
the following:

15:28:21.381 SEVERE:
impl.protocol.sip.SipStackSharing.logApplicationException().1035 An
error occurred while processing event of type:
javax.sip.DialogTerminatedEvent
java.lang.NullPointerException
     at
net.java.sip.communicator.impl.protocol.sip.ServerStoredContactListSipImpl.addContactToPoliteBlockList(ServerStoredContactListSipImpl.java:1218)
     at
net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.setWatcherInfoStatus(OperationSetPresenceSipImpl.java:2633)
     at
net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl$WatcherInfoSubscriberSubscription.processActiveRequest(OperationSetPresenceSipImpl.java:3563)
     at
net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.processRequest(EventPackageSubscriber.java:667)
     at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest(ProtocolProviderServiceSipImpl.java:1038)
     at
net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processRequest(SipStackSharing.java:610)
     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.TCPMessageChannel.processMessage(TCPMessageChannel.java:690)
     at
gov.nist.javax.sip.parser.PipelinedMsgParser.run(PipelinedMsgParser.java:470)
     at java.lang.Thread.run(Thread.java:655)
15:28:21.389 WARNING:
impl.protocol.sip.OperationSetPresenceSipImpl.setWatcherInfoStatus().2591 We
are not supposed to have this contact in our list or its just rerequest
of authorization!

Any ideas?

Best regards,

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31