Damian Krzeminski 提到:
> Steve wrote:
>
> [...]
>
>   
>>>> Yes, it needs to be increasemented or different with previous version.
>>>> Actually I don't konw how to do it, so I leave it to user interface.
>>>> Maybe you can help.
>>>>     
>>>>         
>>> I put some code that generates numbers based on current time. Check it
>>> works for you.
>>>
>>>   
>>>       
>> There's problem ...
>> The phone will keep update & reboot again and again due to the time running.
>>
>>     
>
> That's what we want - right? The file is only generated if something
> changes or admin pushes Send Profiles.
>
>   
>> I got some solutions
>>
>> 1)
>> Modify AutoConfigVersion value only after "Send Profile" pressed.
>> I don't know is it can be done.
>> This is the best way
>>     
>
> That's exactly what the code does today. The AutoConfigVersion number is
> only modified when new version of the file is generated. And the new value
> is bigger than the old one.
>
>   
>> 2)
>> Let AutoConfigVersion=<const>
>> AQ-10X will do CRC to check if auto config needed
>>
>> The badness is the original AQ-10X can auto config only after phone reset.
>>
>> 3)
>> Remove AutoConfigVersion
>> AQ-10X will do CRC to check if auto config needed
>>
>> The badness is the original AQ-10X will not work.
>>
>>     
>
> It's up to you. I am not sure what "original" means here and how many of
> them are out there. That said I still do not fully understand what's wrong
> with current implementation. Can you describe exactly how phone is using
> AutoConfigVersion.
>
> D.
>
>
>   
Hello Damian

You are right. That's AQ-10X's problem

Since the value of AutoConfigVersion allows only 8 bits, there's memory
overflow.

To avoid the problem please modify GtekAquiferPhoneDefault.java:27

return (System.currentTimeMillis() / 1000 - 1250000000) & 0xff;



Yes, it chances that AutoConfigVersion unchanged (1 / 256)

So, the AQ-10X phone will do CRC16 on auto config file to guarantee that
auto config performed.

Thank you

Steve





CONFIDENTIALITY NOTICE:
This e-mail, including attachments, may include confidential and/or proprietary 
information, and may be used only by the person or entity to which it is 
addressed. If the reader of this e-mail is not the intended recipient or his or 
her authorized agent, the reader is hereby notified that any dissemination, 
distribution or copying of this e-mail is prohibited. If you have received this 
e-mail in error, please notify the sender by replying to this message and 
delete this e-mail immediately.

_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to