Error Problem with category, value ,or line (if requred))

hi

I am currently using Asterisk-Java 1.0.0.M3

and Asterisk® Open Source PBX asterisk 1.6.2.6 as Server while adding sip configuration through code I want to add configuration as

[0010]
username = 0010
secret = 0010
type = friend
insecure = port,invite
host = dynamic
context = users
session-refresher=uac
session-timers=originate

but while adding this configuration using UpdateConfig Action from asterisk java I am getting Error Response in that I get Message as " Problem with category,value , or line (if Requred)"

If I remove last two lines as follows
[0010]
username = 0010
secret = 0010
type = friend
insecure = port,invite
host = dynamic
context = users

so the code works fine and sip.conf file is updated properly I want to set those parameters
Please tell me what mistake I am making

Thanks in advance
pranav

hi everyone
Problem is I am not able to add this configuration please tell me if I am doing it wrong

Thanks in advance
Pranav Thipse.