use auth_pass in accounts
fixed setting of AoR when adding an account
This commit is contained in:
@ -27,8 +27,8 @@
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# <sip:user:secret@domain.com;transport=tcp>
|
||||
# <sip:user:secret@1.2.3.4;transport=tcp>
|
||||
# <sip:user:secret@[2001:df8:0:16:216:6fff:fe91:614c]:5070;transport=tcp>
|
||||
# <sip:user@domain.com;auth_pass=secret;transport=tcp>
|
||||
# <sip:user@1.2.3.4;auth_pass=secret;transport=tcp>
|
||||
# <sip:user@[2001:df8:0:16:216:6fff:fe91:614c]:5070;transport=tcp;auth_pass=secret>
|
||||
#
|
||||
<sip:foo:password@test.tutpro.com>;auth_user=foo;outbound="sip:192.168.43.98:5060;transport=tcp";ptime=20;audio_codecs=OPUS/48000/2,speex/16000,speex/8000;video_codecs="";regint=600;pubint=0;sipnat=outbound
|
||||
<sip:foo@test.tutpro.com>;auth_user=foo;auth_pass=xxx;outbound="sip:192.168.43.98:5060;transport=tcp";ptime=20;audio_codecs=OPUS/48000/2,speex/16000,speex/8000;video_codecs="";regint=600;pubint=0;sipnat=outbound
|
||||
|
||||
@ -207,7 +207,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
String aor = ua_aor(ua);
|
||||
Log.d("Baresip", "Adding account " + ua + " with AoR " + aor);
|
||||
Accounts.add(new Account(ua, aor));
|
||||
AoRs.add(aor + " ()");
|
||||
AoRs.add(aor);
|
||||
Images.add(R.drawable.yellow);
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
@ -416,6 +416,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
peer_uri);
|
||||
final Call new_call = new Call(ua, call, peer_uri, "Answer");
|
||||
In.add(new_call);
|
||||
Log.d("Baresip", "Current UA is " + ua_current());
|
||||
if (ua.equals(ua_current())) {
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user