[OpenSIPS-Devel] [ opensips-Bugs-2173727 ] presence: NOTIFY to tel: URI fails

SourceForge.net noreply at sourceforge.net
Wed Oct 22 17:22:09 CEST 2008


Bugs item #2173727, was opened at 2008-10-16 23:45
Message generated for change (Comment added) made by vandry
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2173727&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Open
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Phil Vandry (vandry)
Assigned to: Anca Vamanu (anca_vamanu)
Summary: presence: NOTIFY to tel: URI fails

Initial Comment:
The presence module must remember the URI in the To: header of a SUBSCRIBE request and copy it to the From: header of an outgoing NOTIFY request. This works for sip URIs but fails for tel URIs.

Actually it parses the URI as user at domain and stores the user & domain seperately in the database so it looks like it was not designed to work with tel: URIs.

The attached patch implements a workaround: a tel: URI will be saved with the telephone number in the username field and a blank domain; when this information needs to be converted back to a URI, a blank domain signals that a tel: URI should be generated. Actually this is OK since a sip: URI can never contain a blank domain.

With this patch, it is possible to subscribe to a presentity for presence using a tel: URI.

----------------------------------------------------------------------

>Comment By: Phil Vandry (vandry)
Date: 2008-10-22 11:22

Message:
I am surprised to learn about the limitation in RFC 3856. Please note
however the following:

- subscribing to tel: URIs for presence is done in practice despite this
limitation and works fine. Relaxing this limitation is required to
interoperate with clients and RLS servers that do this. I agree with Klaus
that that the limitation is unnecessary.
- The issue I raised with OpenSIPS is actually in the generic subscription
handling module, not in the presence event package. I am not aware of
anything in RFC 3265 that restricts the kind of URIs that may appear in
From: and To:.

Regarding Iñaki's comment, I am not sure why you imply that it is
illogical to subscribe to a TEL URI. If I would like to subscribe to
someone's presence and all I have is their telephone number then why should
I not subscribe to it? Actually the average end-user is more likely to know
telephone numbers for their friends than SIP URIs.

I will still point out the limitation in RFC 3856 to some people here.

-Phil

----------------------------------------------------------------------

Comment By: Iñaki Baz (ibc_sf)
Date: 2008-10-22 09:24

Message:
It's logical to subscribe to a SIP/SIPS uri, but what does it mean
subscribing to a TEL URI?
A SIP/SIPS URI means an user that is locates somewhere while a TEL URI
means a telephony destination, not an user.

I'm not 100% sure of what I've said, but I think there can be good reasons
to disallow abstract URI's as TEL in subscriptions. Perhaps we should ask
in sip-implementors maillist since I read a thread about it some weeks ago.

----------------------------------------------------------------------

Comment By: Iñaki Baz (ibc_sf)
Date: 2008-10-22 09:19

Message:
It's logical to subscribe to a SIP/SIPS uri, but what does it mean
subscribing to a TEL URI?
A SIP/SIPS URI means an user that is locates somewhere while a TEL URI
means a telephony destination, not an user.

I'm not 100% sure of what I've said, but I think there can be good reasons
to disallow abstract URI's as TEL in subscriptions. Perhaps we should ask
in sip-implementors maillist since I read a thread about it some weeks ago.

----------------------------------------------------------------------

Comment By: Klaus Darilion (klaus_darilion)
Date: 2008-10-22 06:35

Message:
IMO this is an unnecessary limitation in RFC 3856. We should discuss this
on the SIP list.



----------------------------------------------------------------------

Comment By: Anca Vamanu (anca_vamanu)
Date: 2008-10-22 06:05

Message:
Hi Phil,

I have looked through the SIP Presence Event Package RFC( 3856 ) and it
seems that in fact, the to and from of a Subscribe request can not be tel
uri's.

Section 5. 

SUBSCRIBE messages also contain logical identifiers that define the
   originator and recipient of the subscription (the To and From header
   fields).  These headers can take either a pres or SIP URI. 

This still lets the pres uri problem, which will not work. Our presence
module in fact does not have support for pres uri's neigther in RURI's. I
will open a bug report to remind me to fix this.

regards,
Anca Vamanu



----------------------------------------------------------------------

Comment By: Phil Vandry (vandry)
Date: 2008-10-19 19:53

Message:
OK, I will change this to handle and type of URI by saving the original URI
verbatim instead of breaking it up into username & password. However, this
will cause the database schema to change.

-Phil

----------------------------------------------------------------------

Comment By: Iñaki Baz (ibc_sf)
Date: 2008-10-18 18:42

Message:
I agree with Klaus. A cleaner solution would be to store also the protocol
in the table.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-10-17 04:12

Message:
I wonder why the URI is split into userpart and domain at all.

Your patch is a workaround for tel URIs, but not a generic solution (what
about http URIs :-)

klaus

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2173727&group_id=232389



More information about the Devel mailing list