Dynamic "sip reload" or executing "sip reload command" on asterisk*CLI> using node.js

i wanna add users to sip.conf dynamically
im using android.net.Sip for connecting… and its working fine for static users in sip.conf

now i wanna add users dynamically to sip.conf so that user can register himself

Your choices are:

  • don’t authenticate, and enable allowguest, instead;
  • use Asterisk Realtime Architecture, which substitutes a database for sip.conf;
  • use AMI to dynamically manipulate the configuration - for sip.conf, I think you will need to edit the whole file and reload it, but for extensions.conf, you can manipulate it incrementally

(With allowguest, you will need to use one of the other methods on extensions.conf, to allow outgoing calls, and will require fully static addresses. As such, it is only really useful for incoming calls.

chan_sip doesn’t allow guests to register. I don’t know about pjsip, but assume it is the same.)

PS “wanna” doesn’t appear in my dictionary.

i’ve read about realtime achitecture, can you explain how to do it with mysql??

ok im retyping the line
i want to add users dynamically to sip.conf so that user can register himself