The SUBSCRIBE fails:

=================================================================================
17:25:07.355716 192.168.2.2.5060 > 64.33.161.146.5060: udp 570 (DF) [tos 0xb8] SUBSCRIBE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 192.168.2.2;rport;branch=z9hG4bK3Z74y7cSFKK1m
Max-Forwards: 70
From: "" <sip:[EMAIL PROTECTED]>;tag=t9XvetNt0Qvca
To: <sip:[EMAIL PROTECTED]>
Call-ID: f6652bfb-2b5b-122a-758a-a356204d342d
CSeq: 300017001 SUBSCRIBE
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Expires: 60
User-Agent: sofia-sip/1.12.4
Accept: application/simple-message-summary
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY
Supported: timer
Event: message-summary
Content-Length: 0

=================================================================================
17:25:07.369028 64.33.161.146.5060 > 192.168.2.2.5060:  udp 374
SIP/2.0 501 Not Implemented
From: ""<sip:[EMAIL PROTECTED]>;tag=t9XvetNt0Qvca
To: <sip:[EMAIL PROTECTED]>;tag=fda28a70-4021a192-13c4-121ea7-4e99d54c-121ea7
Call-ID: f6652bfb-2b5b-122a-758a-a356204d342d
CSeq: 300017001 SUBSCRIBE
Via: SIP/2.0/UDP 192.168.2.2:5060;rport=1046;branch=z9hG4bK3Z74y7cSFKK1m
Supported: 100rel,replaces
Content-Length: 0




The NOTIFY will gets sent every time the voice mail state changes. It appears to be outside a dialog. The Subscription-State: is terminated.

=================================================================================
17:26:16.740515 64.33.161.146.5060 > 192.168.2.2.5060:  udp 585
NOTIFY sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=5c1669a8-40286-23574-46c99d5e-27048-18121
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 1 NOTIFY
Via: SIP/2.0/UDP 64.33.161.146:5060;branch=z9hG4bK-121eec-46c8ccce-43cd4b13
Subscription-State: terminated
Event: message-summary
Max-Forwards: 70
Supported: 100rel,replaces
Contact: <sip:[EMAIL PROTECTED]>
Content-Type: application/simple-message-summary
Content-Length: 23

Messages-Waiting: yes
=================================================================================
17:26:16.746302 192.168.2.2.5060 > 64.33.161.146.5060: udp 375 (DF) [tos 0xb8] SIP/2.0 481 Subscription Does Not Exist
Via: SIP/2.0/UDP 64.33.161.146:5060;branch=z9hG4bK-121eec-46c8ccce-43cd4b13
From: <sip:[EMAIL PROTECTED]>;tag=5c1669a8-40286-23574-46c99d5e-27048-18121
To: <sip:[EMAIL PROTECTED]>;tag=DNajjp27S9ege
Call-ID: [EMAIL PROTECTED]
CSeq: 1 NOTIFY
Content-Length: 0



When you said should not be too hard, which approach do you think is best / easiest ?

Colin..

Pekka Pessi wrote:
On 1/31/07, Colin Whittaker <[EMAIL PROTECTED]> wrote:
It appears that Sofia does not allow support for unsolicited NOTIFY events.
This is a problem for proxies which prefer to generate message waiting
NOTIFY packets without supporting subscription.
The NORTEL DMS is an example of such a proxy.
It replies 501 to a SUBSCRIBE for message-summary, but sends a NOTIFY
when a voice-mail is available.

OK. What is the event there, "message-summary"? Is there a single
NOTIFY only, or several? And is the Subscription-State header included
in the request? And is the NOTIFY sent within an existing dialog or
outside them? A message trace from tcpdump/ethereal/wireshard would be
doubleplusgood.

It seems to me the stack should forward the NOTIFY to the application
via the nua_i_notify. Then the application could handle it
appropriately. i.e. send back the 481 if it does not want it.
I realize this would be outside a dialog, but it still seems like it
should be up to the application even if it has to handle the nua_handle
differently for subscribed NOTIFYs and non-subscribed NOTIFYs. I think a
simple check to see if the handle is the same as the subscription handle
is an easy test.

Alternatively, the application could subscribe for any NOTIFY packet
silently somehow. Or a TAG that allows un-subscribed NOTIFY packets to
get processed by the application.
What do you think ?

Should not be too hard..

Is this such a large violation of the spec that I need to push Nortel to
fix their side ?

Nope. I think there are also other uses of unsolicitated NOTIFYs.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to