Hi Isaac,
On 5/31/13 11:55 PM, Isaac A. McDonald wrote:
Hello All,
I'm a bit confused as to how Siremis interacts with Kamailio. From
what I understand, the dial-plan is done in the kamailio.cfg with
regex statements and requires a restart of the Kamailio process to
take effect. How then does Siremis change the dial-plan in Kamailio
without writing re-writing the config?
I'm assuming Siremis is merely writing to a MySQL database and some
additional code is required in the kamailio.cfg in order to be able to
use the dial-plan functionality of Siremis?
What must I change in the kamailio.cfg to be able to use Siremis for
dial-plan modification?
You can build the routing logic statically in kamailio configuration
file. But in many cases you can use a module that loads the routing
rules from database. It is where siremis can help, by managing those
rules in database. Then you can send a MI/RPC command to kamailio to
tell to a module to load its rules from database, without need to restart.
For example, pdt module, it loads its rules to translate a prefix to a
domain from pdt table at startup. If you change something in database,
then you can send a command using kamctl to reload all the rules from
database. The configuration file is not affected at all by such operations.
Regards,
Ramona