this.getActivity().stopService(it);
this.getActivity().startService(it);
/************** Codes for call *******************/
Intent it = new Intent(Intent.ACTION_CALL);
it.setData(SipUri.forgeSipUri("sip","xxxx@ip_server;transport=TLS"));
it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
it.putExtra(SipProfile.FIELD_ACC_ID, caller);
it.putExtra(SipProfile.FIELD_REALM, "ip_server");
it.putExtra(SipProfile.FIELD_TRANSPORT, SipProfile.TRANSPORT_TLS);
it.putExtra(SipProfile.FIELD_REG_USE_PROXY, 1);
it.putExtra(SipProfile.FIELD_PROXY, "sip:ip_server;transport=TLS");
one more thing.
1. i just wonder, if i want to make 3g call in and call out,i just need to enable settings like this right ?
SipConfigManager.setPreferenceBooleanValue(this.getActivity(), SipConfigManager.USE_3G_IN, true);
SipConfigManager.setPreferenceBooleanValue(this.getActivity(), SipConfigManager.USE_3G_OUT, true);
2.And for tls,the default port is 5061.let say i want to use port 400 as my tls port.
how do i configure it?
3.Just wonder,how to enable SRTP?
Thanks & regards?
RajaReddy PolamReddy
Android Developer