Integration of api with sipclient