Wiki -VoIP Topics

Android softphone IPC


Interacting with MizuDroid (or with a custom Android softphone build) from another app can be accomplished using Intents.

Possible actions: “register” and “call”.

Register example:

Intent intentRegister = new Intent(this, "com.mizuvoip.mizudroid.app.TabAct");

intentRegister.putExtra("action", "register");
intentRegister.putExtra("username", "SIP_ACCOUNT_USERNAME");
intentRegister.putExtra("password", " SIP_ACCOUNT_PASSWORD");

startActivity(intentRegister);

 

Call example:

Intent intentCall = new Intent(this, "com.mizuvoip.mizudroid.app.TabAct");

intentCall.putExtra("action", "call");
intentCall.putExtra("number", "DESTINATION_NUMBER");
startActivity(intentCall);

 

NOTE: For custom builds the “com.mizuvoip.mizudroid.app” must be replaced with your softphone package name.