diff --git a/app/src/main/assets/config.static b/app/src/main/assets/config.static index 04762bed..987876e3 100644 --- a/app/src/main/assets/config.static +++ b/app/src/main/assets/config.static @@ -20,6 +20,7 @@ audio_jitter_buffer_size 50 rtp_stats yes rtp_timeout 60 rtp_rxmode thread +cuser_random yes module aaudio.so module stun.so module turn.so diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index f49c8c35..23267a4e 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -179,18 +179,6 @@ static void event_handler(enum bevent_ev ev, struct bevent *event, void *arg) ua = uag_find_msg(msg); // There is no call yet and call is thus used to hold SIP message call = (struct call *)msg; - /*if (account_regint(ua_account(ua)) > 0) { - struct uri ruri; - uri_decode(&ruri, &msg->ruri); - if (pl_strcmp(&ruri.user, ua_local_cuser(ua)) != 0) { - char user_buf[256]; - len = re_snprintf(user_buf, sizeof user_buf, "%r", &ruri.user); - LOGW("ruri user mismatch: %s != %s\n", user_buf, ua_local_cuser(ua)); - sip_treply(NULL, uag_sip(), msg, 404, "Not Found"); - bevent_stop(event); - return; - } - }*/ len = re_snprintf(event_buf, sizeof event_buf, "%s,%r,%ld", prm, &msg->from.auri, (long)event); break; case BEVENT_CALL_INCOMING: