Pang Xiaogang-r63373 wrote:
Hi there,
We are currently implementing a sip phone, and we want to make calls to each other use a phone number.
Here is my question: Q1. How can I use REGISTER method to register this tel uri to the registrar?
In Page 57 of rfc3261:
To: The To header field contains the address of record whose registration is to be created, queried, or modified. The To header field and the Request-URI field typically differ, as the former contains a user name. This address-of-record MUST be a SIP URI or SIPS URI.
So there is only one place I can put this tel uri into, that's Contact header field, that leads to my 2nd question:
That would not come close to doing what you want.
As 3261 is written, an AOR managed by a registrar must be a SIP or SIPS uri, so you can't directly register contacts to a tel uri. So there needs to be another level of mapping between the tel uri and your AOR.
Various proprietary mappings are possible, but the way that is recognized is via ENUM. Using ENUM, the tel uri is converted to a dns address, and then a dns lookup is done to get a translation to another uri. In your case, you would want this lookup to translate the tel uri to the corresponding sip AOR for this user.
Q2. Create the binding. Is my proceedure correct?
Say my ua's IP address is: 192.168.0.200, proxy is at 192.168.0.100, it sends the REGISTER request to registrar with these fields:
From: <sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
To: <sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
Contact: <tel:1234>
No, its not correct:
First, tel:1234 is a syntactically invalid tel uri. You must either use a global phone number, or else you must include a phone-context parameter:
tel:+1-555-987-1234 or tel:1234;phone-context=freescale.com
Lets assume you are using the former.
As noted above, you can't use this as the To address in your register. Lets give you sip AOR:
sip:[EMAIL PROTECTED]
And lets assume that there is an ENUM translation from
tel:+1-555-987-1234 to sip:[EMAIL PROTECTED]
Then you want your REGISTER to be more like:
REGISTER sip:freescale.com
To: sip:[EMAIL PROTECTED]
From: sip:[EMAIL PROTECTED]
Contact: sip:[EMAIL PROTECTED](I have no idea what you are doing with the <mailto...>. It makes no sense at all to me.)
If you want to avoid ENUM, then you should probably avoid tel: as well. Instead, use sip uris with the user=phone parameter:
REGISTER: sip:freescale.com
To: <sip:[EMAIL PROTECTED];user=phone>
From: <sip:[EMAIL PROTECTED];user=phone>
Contact: sip:[EMAIL PROTECTED]Note: I personally think it should be ok for the To address of a REGISTER to be a tel uri. But for now it is not.
Paul
This should create a binding of <sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > <==> <tel:1234> if ther registration is successful.
After create the binding, I think other UA can make call to the our sip phone use tel:1234, Q3. Other ua use tel:1234 to call my phone, but the proxy failed to proxy the INVITE request, why?
INVITE tel: 1234 SIP/2.0
From: <sip:[EMAIL PROTECTED]:5060>;tag=f26388-0-13c4-384313a1-3b1f06d7-384313a1
To: <tel: 1234>
Call-ID: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
CSeq: 1 INVITE
Via: SIP/2.0/UDP 192.168.0.215:5060;branch=z9hG4bK-384313a1-c604acfc-435bd214
Max-Forwards: 70
Contact: <sip:[EMAIL PROTECTED]:5060>
Content-Type: application/SDP
Content-Length: 150
I think the proxy will resolve the To-uri to a correct sip uri, that the proxy should forward the INVITE to <sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >, but it doesn't.
The proxy can not resolve the tel:1234 to my phone, the the transaction is terminated due to resolve failure.
I wondering why? Any comments?
Thanks and Regards
David Pang
Tel:86-755-33359773
Fax:86-755-33359755
20F/FGH, Times Financial Center No.4001 ShenNan Zhong Rd., Shenzhen, China. 518034
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> _______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________ Sip-implementors mailing list [EMAIL PROTECTED] http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
