Changing User Agent locally

Hi

I have a context defined in sip.conf as :

[test]
type=peer
fromdomain=123@xyz.com
host=123@xyz.com
insecure=very
port=5060

I want to add one more parameter ’ user-agent’, such that

useragent=abc

I don’t what to change user-agent in general section of sip.conf, as I want the user-agent ‘abc’ related to [test] only and not at global level

Is it possible

Thanks
Himanshu

You are using an obsolete version of Asterisk (insecure=very hasn’t been recognized for some time now), so it is important to say which version you are using. (Alternatively you never needed to make the peer insecure in the first place.)

I wouldn’t expect Asterisk to allow what you want, but it is easy to try for yourself. Alternatively, look at the definition of the sip_peer/sip_user structures, in your version. Unless they contain a field for the user agent, it will not be configurable on a per peer basis.

Hi

I am using Asterisk version 1.4.22