On 31/08/2011 11:23 PM, Olle E. Johansson wrote:
31 aug 2011 kl. 14:42 skrev Kevin P. Fleming:
On 08/31/2011 02:46 AM, Jaime Lozano wrote:
Hello,
I agree with you, I'm not explaining the problem in a proper manner,
because of my lack of Asterisk knowings. I send the Wireshark captures.
3com telephones take the timezone TZ:7200 from the 3Com PBX to show the
time right. But what if I want a 3Com telephone to work with Asterisk
PBX? Then the telephone time is wrong, 2 hours lower. It seems 3Com
telephones need the TZ:7200. 3Com telephones work with Asterisk and it
is great, but we would like to log the calls.
OK, so the first clarification is that you are talking about responses to
REGISTER requests specifically, not all responses to all requests. That's good
:-)
On to the meat of the issue... indeed, the '200 OK' response to a REGISTER
request does not normally have a message body; nothing in the SIP RFCs even
suggests that there would be one (although it's certainly allowed should the
registrar want to include it) or what would be present in it.
As has been previously replied here, there is no facility in Asterisk to
include a message body in a REGISTER request response, so providing one will
definitely require source code modifications. They wouldn't be terribly
difficult, but they would only be applicable to these particular phones, which
reduces the benefit of making the changes to the community at large.
With that said... it's certainly possible to do this, but it's going to take
some non-trivial code changes. The REGISTER handling code does not use any of
the methods that exist in chan_sip to add message body content to its
responses, it uses simpler methods that assume there won't be a message body.
In addition, this mechanism is really pretty broken anyway; the server would
have to know where each phone is physically located in order to be able to
provide the correct TZ value to it, and would have to be updated if the phone
is moved. Not an ideal situation.
The RFC states that a phone could use the Date: header in the response to set
the local time in the device. It's always in GMT which makes it stupid to add a
time zone any where.
-1 for this implementation.
Perhaps researching the specs./capabilities of the phone for other
capabilities setting its time zone. A DHCP server can offer a
time-offset value, whether the phone can be provisioned with a defined
time zone offset or accept the offset in DHCP is a matter of further
research.
Larry.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users