How to send SIP-request generated manually using asterisk?

For de-registration of the outbound trunk you want to send specific SIP requests. A correctly configured asterisk. I understand that you need to send INVITE with expiration=0
I read RFC3261, there seems nothing difficult. However, it is unclear on what tags to look for sending sip requests manually? I really want to advance in this direction, but I can't find mana.

There is certainly another way to change configs on a script with a subsequent reload. You will need to write the parser, as I understand it. If the asterisk is a function of dynamic changes in their configuration files (i.e. using the default parser) - please tell me.
September 26th 19 at 11:27
2 answers
September 26th 19 at 11:29
Solution
Well, why not curl went from script?
I would not want to release this outside of asterisk CLI - stefan.McLaughlin commented on September 26th 19 at 11:32
Although, apparently, there is no such function. Well, probably will have to run it from an external script. However, I prefer netcat - stefan.McLaughlin commented on September 26th 19 at 11:35
September 26th 19 at 11:31
In Asterisk there is NO possibility to change configuration on the fly, but it IS possible to generate a configuration script during (re)loading a specific configuration file. So really it can be the right time to do a reload, and the actual configuration to generate an example script.

Find more questions by tags AsteriskSIPVoIP