[OpenSIPS-Users] PUA MI and pua_publish
Anca Vamanu
anca at opensips.org
Mon Apr 26 11:14:14 CEST 2010
Hi Julian,
Putting inuse as basic status is not really legal - since the pidf RFC
says that you can have only open and close
(http://www.faqs.org/rfcs/rfc3863.html).
Regards,
--
Anca Vamanu
www.voice-system.ro
Julian Yap wrote:
> I'm trying to hack together my own presence server. I have PUA USRLOC
> working fine.
>
> So then I just want to be able to generate the 'phone in use' and
> 'phone not in use' PUBLISH messages via PUA MI.
>
> Here's what I have in my pua_publish FIFO example:
> ---
> :pua_publish:test_fifo
> sip:10001005 at sipdev1.me.com
> 3600
> presence
> application/pidf+xml
> .
> .
> <?xml version='1.0'?><presence xmlns='urn:ietf:params:xml:ns:pidf'
> xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'
> xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'
> xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'
> entity='10001005 at sipdev1.me.com'><tuple><status><basic>inuse</basic></status></tuple></presence>
>
> ---
>
> The actual NOTIFY goes out as:
> <?xml version="1.0"?>
> <presence xmlns="urn:ietf:params:xml:ns:pidf"
> xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
> xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
> xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
> entity="10001005 at sipdev1.me.com"><tuple
> id="0x7fff9d908330"><status><basic>inuse</basic></status></tuple><tuple
> xmlns="urn:ietf:params:xml:ns:pidf"
> id="0x7fff1b75a760"><status><basic>open</basic></status></tuple></presence>
>
>
>
> ... So the status gets overwritten as 'open'.
>
> Any tips? What would a working 'phone is in use' and 'phone is not in
> use' FIFO look like?
>
> Thanks!
>
> Julian
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list