Bulk change of trunks setting


Is there any way to bulk change of trunks setting (username\secret at PEER Details on outgoing and “Register String” and “USER Context” on Incoming)?
I have 50 trunks to change


Not really. The idea of a business PBX having 50 trunks probably wasn’t high on a list as it is highly uncommon. Also, you really shouldn’t be using Chan_SIP for this anymore specially if most of those 50 trunks are just to have a single IP peer host setup.

The best you’re going to do is by updating details in the sip table in the database and reloading to write out updated configs.