How change user_agent for pjsip


(Denis) #1

Hi!

How change user_agent for pjsip?

I added strings in the file pjsip_custom.conf:
[global]
type=global
user_agent=TESTPBX
But I see user-agent: Asterisk 16.5 instead of TESTPBX


(Lorne Gaetz) #2

Edit: /etc/asterisk/pjsip_custom_post.conf with:

[global](+type=global)
user_agent=TESTPBX

Do a core reload and test with:

# asterisk -x "pjsip show settings"  | grep user_agent 
 user_agent                                 : TESTPBX

(Denis) #3

Thanks for the answer!

I edit: /etc/asterisk/pjsip_custom_post.conf
> [global]

type=global
user_agent=TESTPBX

Then I started asterisk -x "pjsip show settings" | grep user_agent
and got:

user_agent :Asterisk PBX 16.11.1


(Lorne Gaetz) #4

Follow the steps exactly, it works.


(Denis) #5

I set it up, thank you!