Time Provisioning via SIP 200 OK Reply

Dedicated forum for feature requests. All feature requests will be reviewed and considered for future versions based on work involved and popularity of feature.

Moderators: kevin, 3CX staff

Time Provisioning via SIP 200 OK Reply

Postby runge » Fri Dec 18, 2009 11:25 pm

Hi 3CX Development Team,

Please consider putting the date/time in the SIP 200 OK Reply Message. This will allow non-ntp phones to obtain the time correctly. It is also as per the SIP RFCs (As optional however).

This will allow other phones to correctly pickup the date time including major ranges (CISCO 79x1 which do not use the NTP settings when using non-CUCM PBX Systems). While I do know you don't support the enterprise Cisco IP Phone range and only the SMB/Linksys version, It would be nice for the phones to display the correct time/date.


Rosenberg, et. al. Standards Track [Page 170]

RFC 3261 SIP: Session Initiation Protocol June 2002


The Date header field can be used by simple end systems without a
battery-backed clock to acquire a notion of current time.
However, in its GMT form, it requires clients to know their offset
from GMT.

Example:

Date: Sat, 13 Nov 2010 23:29:00 GMT




If your programmers don’t even want to code, here it is in c# .net:


Code: Select all
           using C = System.Console;

           ...

           static void Main() {

                DateTime dateTime = DateTime.Now;

                C.WriteLine ("Date: {0:R}", dateTime ); // Date: ddd Month yyyy hh:mm:ss GMT

           }


Really only one line to add.

Thanks

Jonathon
Last edited by runge on Fri Dec 18, 2009 11:39 pm, edited 1 time in total.
runge
New User
 
Posts: 9
Joined: Thu Apr 09, 2009 7:50 am

Re: Time Provisioning via SIP 200 OK Reply

Postby KerryG » Fri Dec 18, 2009 11:31 pm

What phones support that?
ImageImage
KerryG
3CX Valued Professional
3CX Valued Professional
 
Posts: 1204
Joined: Fri Jun 19, 2009 3:27 pm
Location: Tustin, Ca

Re: Time Provisioning via SIP 200 OK Reply

Postby runge » Fri Dec 18, 2009 11:47 pm

Cisco 79x1 series phones. Pretty major considering there are 23000000 Cisco IP Phones out on the market as of July 2008.

Reference: http://www.cisco.com/en/US/prod/collateral/voicesw/ps6882/ps6884/solution_overview_c22-502810_ps379_Product_Solution_Overview.html
runge
New User
 
Posts: 9
Joined: Thu Apr 09, 2009 7:50 am

Re: Time Provisioning via SIP 200 OK Reply

Postby KerryG » Sat Dec 19, 2009 2:19 am

And the VAST majority of those are using SCCP on Cisco Call Manager. Their SIP firmware is absolutely horrible. I NEVER recommend those phones so if they are the only ones that support that, I personally couldnt care less until the new Cisco SPA5xx, Aastra, snom, and Polycom phones all support it, since those are the most common ones used with 3CX.
ImageImage
KerryG
3CX Valued Professional
3CX Valued Professional
 
Posts: 1204
Joined: Fri Jun 19, 2009 3:27 pm
Location: Tustin, Ca

Re: Time Provisioning via SIP 200 OK Reply

Postby archie » Mon Dec 21, 2009 10:08 am

runge wrote:Really only one line to add.

Thanks
Jonathon


Dear Jonathon,

Our programmers have spent all weekend trying to call C# code from C++ core of PBX. Finally, they've done it. But it happened, that your line of code prints date to console, not to SIP header 'Date'. How shall they fix it?
Archie
3CX Sr. Coder

3CX News, Tips and How to's at http://www.3cx.com/blog/
Help / Wiki pages at http://www.3cx.com/blog/help/
Get notified about new blog posts and help articles:
Via email: http://feedburner.google.com/fb/a/mailv ... CXVoIPBlog
Via RSS: http://feeds.feedburner.com/3CXVoIPBlog
archie
3CX Support
3CX Support
 
Posts: 1518
Joined: Fri Aug 18, 2006 9:25 am
Location: Cyprus

Re: Time Provisioning via SIP 200 OK Reply

Postby runge » Tue Dec 22, 2009 12:11 am

Dear Jonathon,

Our programmers have spent all weekend trying to call C# code from C++ core of PBX. Finally, they've done it. But it happened, that your line of code prints date to console, not to SIP header 'Date'. How shall they fix it?


Hi Archie,

The request was legitimate and for a 3CX employee to make this sort of comment is quite rude and unprofessional. Fair enough for a third party to make comments as Kerry has done which is in the spirit of a forum.

I was under the impression that this section was for feature requests to make the 3CX system into a better product, but obviously I was mistaken.

Regards,

Jonathon
runge
New User
 
Posts: 9
Joined: Thu Apr 09, 2009 7:50 am

Re: Time Provisioning via SIP 200 OK Reply

Postby archie » Tue Dec 22, 2009 10:16 am

Oh, sorry, I really didn't think you are serious. I was pretty sure it's a joke and my answer was a joke too. My sincere apologies if it is offended you.

Regarding your request - it is not a problem for us to add Date header in 200OK. I will check if it may have any negative effects, and if it doesn't - we will consider implementing it.
Archie
3CX Sr. Coder

3CX News, Tips and How to's at http://www.3cx.com/blog/
Help / Wiki pages at http://www.3cx.com/blog/help/
Get notified about new blog posts and help articles:
Via email: http://feedburner.google.com/fb/a/mailv ... CXVoIPBlog
Via RSS: http://feeds.feedburner.com/3CXVoIPBlog
archie
3CX Support
3CX Support
 
Posts: 1518
Joined: Fri Aug 18, 2006 9:25 am
Location: Cyprus

Re: Time Provisioning via SIP 200 OK Reply

Postby nomyuk » Mon Jan 11, 2010 7:08 pm

Any news on whether this is going to be implemented in the next 3CX release??

We have a whole bunch of Cisco 7941's we'd like to get the date/time working on -- they are working perfectly (using SIP firmware 8.5.2SR1) other than that...

thanks
nomyuk
New User
 
Posts: 2
Joined: Fri Jan 08, 2010 1:21 pm

Re: Time Provisioning via SIP 200 OK Reply

Postby KerryG » Mon Jan 11, 2010 7:22 pm

runge wrote:CISCO 79x1 which do not use the NTP settings when using non-CUCM PBX Systems


Are you sure about this? I believe the only issue is that the NTP setting has to be an IP address and will not accept a host name. For example, this works on my test phones:

Code: Select all
            <ntps>
                <ntp>
                    <name>38.117.195.101</name>
                    <ntpMode>Unicast</ntpMode>
                </ntp>
            </ntps>


That IP is for pool.ntp.org
ImageImage
KerryG
3CX Valued Professional
3CX Valued Professional
 
Posts: 1204
Joined: Fri Jun 19, 2009 3:27 pm
Location: Tustin, Ca

Re: Time Provisioning via SIP 200 OK Reply

Postby nomyuk » Mon Jan 11, 2010 7:52 pm

You're absolutely right... it does work with the IP address -- we have always had it set to "uk.pool.ntp.org" and assumed it didn't work because of the missing CallManager locale files! I have therefore set ours as follows to one of the uk.pool.ntp.org IP addresses:

Code: Select all
         <ntps>
            <ntp>
               <name>83.231.183.4</name>
               <ntpMode>Unicast</ntpMode>
            </ntp>
         </ntps>


It would still be nice to have the SIP 200 as a backup time source though in case that IP is down...
nomyuk
New User
 
Posts: 2
Joined: Fri Jan 08, 2010 1:21 pm

Re: Time Provisioning via SIP 200 OK Reply

Postby kevin » Mon Jan 11, 2010 9:40 pm

Hi there

Since the Cisco phone does not correctly resolve an FQDN to an IP Address, I would imagine that the correct place to direct this is towards Cisco support... Wouldn't you agree?

Regards
Kevin Attard Compagno
Technical Support Manager
Image

3CX News, Tips and How to's at http://www.3cx.com/blog/
Help / Wiki pages at http://www.3cx.com/blog/help/

Get notified about new blog posts and help articles:
Via email: http://feedburner.google.com/fb/a/mailverify?uri=3CXVoIPBlog
Via RSS: http://feeds.feedburner.com/3CXVoIPBlog
kevin
Site Admin
Site Admin
 
Posts: 197
Joined: Thu Nov 23, 2006 9:54 am

Re: Time Provisioning via SIP 200 OK Reply

Postby KerryG » Tue Jan 12, 2010 4:32 am

Kevin,
You would think that would be the correct response. However, here is the issue. Cisco does not support 79xx series phones on third-party PBX platforms so you can't ask them to fix issues in their SIP firmware for connecting to 3CX. Since Cisco does not support the phones on third-party systems, I don't think the third party manufacturers should do anything to support those phones. While many people like the 79xx series phones and you can get some models for really cheap on eBay, they are non-supported by Cisco therefor they should be unsupported by 3CX.

The other position to take, and what the OP was hoping for was that if 3CX provides some additional support for these phones, some people who like to use them could then start using them with 3CX and thus, more 3CX sales.

On the other hand, since there are workarounds to get the phones working with 3CX that does not require 3CX to do anything or Cisco to support them, then people can feel free to use them as-is today.
ImageImage
KerryG
3CX Valued Professional
3CX Valued Professional
 
Posts: 1204
Joined: Fri Jun 19, 2009 3:27 pm
Location: Tustin, Ca

Re: Time Provisioning via SIP 200 OK Reply

Postby archie » Tue Jan 12, 2010 11:00 am

KerryG wrote:you can't ask them to fix issues in their SIP firmware for connecting to 3CX


I'm terribly sorry, but resolving FQDN for NTP requests has nothing to with interoperability with 3CX. 3CX do not resolves FQDNs for Cisco.
Archie
3CX Sr. Coder

3CX News, Tips and How to's at http://www.3cx.com/blog/
Help / Wiki pages at http://www.3cx.com/blog/help/
Get notified about new blog posts and help articles:
Via email: http://feedburner.google.com/fb/a/mailv ... CXVoIPBlog
Via RSS: http://feeds.feedburner.com/3CXVoIPBlog
archie
3CX Support
3CX Support
 
Posts: 1518
Joined: Fri Aug 18, 2006 9:25 am
Location: Cyprus

Re: Time Provisioning via SIP 200 OK Reply

Postby KerryG » Tue Jan 12, 2010 3:07 pm

Archie,
I think you misunderstood my point. My point is that since Cisco does not support the use of 79xx phones on third party platforms, then third party platforms should not make concessions in their products to support those phones. Cisco does not want 79xx phones to be used with 3CX so 3CX should not change their product to support them.
ImageImage
KerryG
3CX Valued Professional
3CX Valued Professional
 
Posts: 1204
Joined: Fri Jun 19, 2009 3:27 pm
Location: Tustin, Ca

Re: Time Provisioning via SIP 200 OK Reply

Postby archie » Tue Jan 12, 2010 4:03 pm

Yes, I agree. I just misunderstood.
Archie
3CX Sr. Coder

3CX News, Tips and How to's at http://www.3cx.com/blog/
Help / Wiki pages at http://www.3cx.com/blog/help/
Get notified about new blog posts and help articles:
Via email: http://feedburner.google.com/fb/a/mailv ... CXVoIPBlog
Via RSS: http://feeds.feedburner.com/3CXVoIPBlog
archie
3CX Support
3CX Support
 
Posts: 1518
Joined: Fri Aug 18, 2006 9:25 am
Location: Cyprus

Next

Return to Feature requests


Who is online

Users browsing this forum: No registered users and 0 guests

Announcements: