I am developing a IOS VoIP app using SIP protocol stack. I am going to use Kamailio as the sip server.
But a sip address (sip account) is required for each VoIP client to make a VoIP call, which means I should manually register a sip account and configure it with the client. Now I want to make this easier. What I want to do is that when the user register to my user account server using the App, My user account server can call some API (maybe provided by Kamailio) to create a sip account associate with this user, and pass it back to the client, the client then configures itself using this sip account automatically.
However, I does not find any API from Kamailio to do such a thing. does Kamailio provides such API, or other open source sip server allow me to do so?
I google that Kamailio can add a user using 'kamctl add' command, can I call similar function from my user account server using RPC. if so, which RPC function of Kamailio can I call? Thanks in advance!