Change user_agent name

Hi all, Im using FREEPBX17 and i need to change the user_agent name to something else, but im struggling to work out how.
I can confirm on the CLI whats it currently set to, by doing asterisk -x “pjsip show settings” | grep user_agent
I can see it there set as FPBX 17xxxx etc, which is correct. ( I can also see it using pjsip show settings on the GUI. It is a GLOBAL setting.

I cant work out how I can change it though, cant see it anywhere in the settings on the GUI, and cant work out how to edit the /etc/asterisk/pjsip_custom_post.conf file, which is where I ‘assume’ it is.

Can someone tell me how i change it ?

Thanks

You could use a FTP-client and a linux-compatible editor…e.g. Filezilla, Proton…

1 Like

Edit /etc/asterisk/pjsip_custom_post.conf with lines similar to

[global](+)
user_agent=Harris-Waltz-2024

Then reload with fwconsole r

# asterisk -x "pjsip show settings" | grep agen
 user_agent                                 : Harris-Waltz-2024
1 Like

Thanks Kingarthur, i tried that but it doesnt work. i must be doing something wrong ??

root@Freepbx17:~#[global](+)
-bash: syntax error near unexpected token ‘+’

If i try the whole command on one line i get …

-bash: command not found

Any ideas ??

Thanks

As I suggested…install Filezilla and connect with the settings below

If you are on a Windows machine, install a linux-compatible editor, like the free Proton editor. And configure it in Filezilla to be the default editor (with no exceptions).
Open pjsip_custom_post.conf and edit it.

Thanks all, ive sorted it, not enough coffee !!!
I used vim to edit the pjsip_custom_post.conf file with…

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

then did the reload and it worked nicely.

Thanks for the replies.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.