[Serusers] unsolicited NOTIFY messages from Asterisk

Subashini C V - CTD, Chennai subashinicv at hcltech.com
Mon Jul 18 13:56:37 CEST 2005


hi,
	Thanks a lot for the inputs..

i have few more queries:


The NOTIFY for my Message SUBSCRIBE message is like the below:

NOTIFY sip:2411234567 at 10.100.12.243 SIP/2.0
Via: SIP/2.0/UDP 10.100.12.201:5060;branch=z9hG4bK3265182e;rport
From: sip:2411234567 at 10.100.12.201;tag=as4c9b430d
To: sip:2411234567 at 10.100.12.243;tag=5f12665a9832ee3ded87f1b2346a96d7
Contact: <sip:2411234567 at 10.100.12.201>
Call-ID: 5ec3933956b9e8affef44df8051b0236 at 10.100.12.243
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Event: presence
Content-Type: application/xpidf+xml
Content-Length: 364

<?xml version="1.0"?>
<!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN" "xpidf.dtd">
<presence>
<presentity uri="sip:2411234567 at 10.100.12.243;method=SUBSCRIBE" />
<atom id="2411234567">
<address uri="sip:2411234567 at 10.100.12.201;user=ip" priority="0,800000">
<status status="open" />
<msnsubstatus substatus="online" />
</address>
</atom>
</presence>

Queries:

The Event header is set to "presence", even though the SUBSCRIBE event
header has the type as "message-summary".

And the content-type is "application/xpidf+xml" and the content is in xml,
even though i send the content type as 
"application/simple-message-summary" in the SUBSCRIBE message.

It seems, for any of the SUBSCRIBE message, Asterisk is sending a NOTIFY in
this format only... am i right..?

So, As of now i have changed the source code of the Asterisk to give the
"message-summary" event.

Is there any way to achieve these by configuration..? 
( But i dont find any sources to give the text format instead of the xml
formatted message. )

It will be helpful if i have your ideas...!

Thanks in advance,
Subashini


-----Original Message-----
From: Olle E. Johansson [mailto:oej at edvina.net]
Sent: Monday, July 18, 2005 4:28 PM
To: Subashini C V - CTD, Chennai
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] unsolicited NOTIFY messages from Asterisk


Subashini C V - CTD, Chennai wrote:
> hi,
> 	i am getting unsolicited NOTIFY messages from Asterisk after the
> subscription.
If you get them after a subscription they should be fine.
However, Asterisk sends them out as soon as you configure a mailbox in
sip.conf with or without a subscription which is in violation of
RFCs - however, supported by most of the phones.

> Is this type of NOTIFY messages is supported in any of the RFCs..?
No. I don't think so.

> Because, the SIP stack with 3265 compliance, does not support any such
> NOTIFY messages and discarding those.
Correct.

> I need the justification for this kind of NOTIFY messages sent by
Asterisk. 
Asterisk behaves wrong here, however, it gives user's the needed
functionality.

Regards,
/Olle
Asterisk SIP developer
DISCLAIMER 
This message and any attachment(s) contained here are information that is confidential, proprietary to HCL Technologies 
and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the 
individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to 
read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, 
please notify the sender immediately by return e-mail and delete it from your computer




More information about the sr-users mailing list