I’ve set up an Asterisk 1.2beta with Realtime (MySQL). A new registration has to be written to file (sip.conf) and IMHO cannot be written to database. But if I write to file I have to do an “asterisk -rx reload”. With a system("/usr/sbin/asterisk -rx reload") I just get a “Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)”. From commandline everything works as expected. Maybe I have to set some environment variables, I don’t know. Can you help me?