[Serusers] Notify in the pa module

Jesús M. Movilla jmms03 at tid.es
Wed Jun 22 09:38:50 CEST 2005


Thanks again!
Just one more question.
If a user PUBLISH a xml-pidf document, Is this document received in the
Notify?.
In the example that I included in my first e-mail, the "real status" of the
user was in the <im:im>busy</im:im> tag, but not in the <note> tag.
This tag corresponds to the doc referenced by
 <presence xmlns="urn:ietf:params:xml:ns:pidf"
       xmlns:im="urn:ietf:params:xml:ns:pidf:im"
       entity="pres:jesus at guadalmar.hi.inet">

It seems for the SER answer that all the tags different from
xmlns="urn:ietf:params:xml:ns:pidf"
are ignored...

Thank you very much for your help!!!

    Jesús

----- Original Message ----- 
From: "Jamey Hicks" <jamey.hicks at hp.com>
To: "Jesús M. Movilla" <jmms03 at tid.es>
Cc: <serusers at lists.iptel.org>
Sent: Tuesday, June 21, 2005 4:03 PM
Subject: Re: [Serusers] Notify in the pa module


> Jesús M. Movilla wrote:
>
> >Hi to all,
> >
> >I finally got to make my pa module SER to work but I found  a strange
> >behaviour with METHOD Notify :(maybe this is just the way it works :-)).
> >
> >When I tried to change my presence state from connected to busy, SER
> >notifies to which is suscribed but instead of sending a busy status, it
send
> >a OPEN status. In fact any change on status presence is notified as OPEN.
> >Whe the user is disconnected then SER notifies with CLOSED. Does the pa
> >module workds like this?, if not, how cani configure my SER to make it
send
> >the right state presence?.
> >
> >Publish:
> >
> >PUBLISH sip:jesus at guadalmar.hi.inet SIP/2.0
> >Via: SIP/2.0/TCP
>
>10.95.25.230:5060;branch=z9hG4bK-a372ca3c-b6bb-4933-9653-99c0a12cd4e9.1;rpo
r
> >t
> >To: <sip:jesus at guadalmar.hi.inet>
> >From: "Jesus Movilla"
> ><sip:jesus at guadalmar.hi.inet>;tag=1fa5881c-8205-46c9-886f-65c93269c876
> >Call-ID: b5155dd8-6426-46a3-a1c8-c0d0402d53e8
> >CSeq: 1 PUBLISH
> >Max-Forwards: 70
> >Expires: 3600
> >Event: presence
> >Content-Type: application/pidf+xml
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> >   <presence xmlns="urn:ietf:params:xml:ns:pidf"
> >        xmlns:im="urn:ietf:params:xml:ns:pidf:im"
> >        xmlns:myex="http://id.example.com/presence/"
> >        entity="pres:jesus at guadalmar.hi.inet">
> >     <tuple id="bs35r9">
> >       <status>
> >         <basic>open</basic>
> >         <im:im>busy</im:im>
> >         <myex:location>home</myex:location>
> >       </status>
> >       <contact priority="0.8">im:someone at mobilecarrier.net</contact>
> >       <note xml:lang="en">Don't Disturb Please!</note>
> >       <note xml:lang="fr">Ne derangez pas, s'il vous plait</note>
> >       <timestamp>2001-10-27T16:49:29Z</timestamp>
> >     </tuple>
> >    </presence>
> >
> >This is the notification that I recieve (from myself ;-)).
> >
> >
> The PUBLISH had open status so the NOTIFY had open status.  The <basic>
> status really only indicates that the SIP UA is online.  The <note>
> element indicates busy or do not disturb.  I'm in the process of adding
> support for the note element to SER PA.
>
> Jamey
>




More information about the sr-users mailing list