Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add system SIP account

Tags:

android

From android version 2.3 native VoIP support has become available. How can I add system SIP account from my application? I think solution may be in using System settings content provider. But I dont know how exactly make it.

like image 472
gaponov Avatar asked Feb 08 '12 10:02

gaponov


1 Answers

There is no System content Provider available for SIP account.

There are only two way available for that,

First,

You can call SIP account system activity through intent.

if (SipManager.isVoipSupported(this) && SipManager.isApiSupported(this)){
       // SIP is supported, let's go!
       Intent intent = new Intent();
       intent.setAction("android.intent.action.MAIN");
       intent.setComponent(ComponentName.unflattenFromString("com.android.phone/.sip.SipSettings"));
       startActivity(intent);
}

Second,

You can Register SIP account for specific time period using android.net.sip.SipManager class.

If you want more clarification than you can ask me right here...!!!

like image 183
Hitesh Patel Avatar answered Oct 27 '22 09:10

Hitesh Patel