I think it is possible, I find this product on the usipserver market free. Thus, you can create your own sip server on Android, but I don’t think that just with android.sip you have to write all the code for the server to use its own code directly (socket, etc.)
source
share