# Changing User Agent locally

**URL:** <https://community.asterisk.org/t/changing-user-agent-locally/44623>\
**Category:** Asterisk Support\
**Created:** [November 29, 2013, 6:49am UTC](https://community.asterisk.org/t/changing-user-agent-locally/44623 "2013-11-29T06:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemanonearth](https://avatars.discourse-cdn.com/v4/letter/h/aca169/32.png) [@hemanonearth](https://community.asterisk.org/u/hemanonearth)\
**Post date:** [November 29, 2013, 6:49am UTC](https://community.asterisk.org/t/changing-user-agent-locally/44623/1 "2013-11-29T06:49:46Z")

</div>

Hi

I have a context defined in sip.conf as :

[test]  
type=peer  
[fromdomain=123@xyz.com](mailto:fromdomain=123@xyz.com)  
[host=123@xyz.com](mailto: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

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 29, 2013, 9:42am UTC](https://community.asterisk.org/t/changing-user-agent-locally/44623/2 "2013-11-29T09:42:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hemanonearth](https://avatars.discourse-cdn.com/v4/letter/h/aca169/32.png) [@hemanonearth](https://community.asterisk.org/u/hemanonearth)\
**Post date:** [November 29, 2013, 10:06am UTC](https://community.asterisk.org/t/changing-user-agent-locally/44623/3 "2013-11-29T10:06:08Z")

</div>

Hi

I am using Asterisk version 1.4.22
