Mar 26, 2008 10:23 AM
Programaticaly Adding SIP Trunks and Routes
Hi,
I've got a couple of questions. I've looked all over for answers and I just can't find anything. Basically, I'd like to programatically add sip-trunks and routes. What I mean by this, is I have another web-based application that I'd like to send some sort of api command to OpenSBC to add/delete/update routes in OpenSBC. I've considered simply POSTing to the internal website as if I were manually entering the data, but that seems kinda lame and error prone. Changing opensbc.ini doesn't appear to do anything at all.
Next, of course, I'd like to tell OpenSBC "Reload your configuration and make it active". I for the life of me can't figure this out. Even when I manually change the sip trunk config on the OpenSBC web interface, it doesn't seem to reload things like registration expires timers and password changes.
Lastly, where does OpenSBC store it's persistant data? Sometimes I see this stuff put into opensbc.ini, but surely it isn't using this in real time.
Thanks!
-Brett