Added User Agent setting that can be used to set custom SIP request/response

User-Agent header value
This commit is contained in:
Juha Heinanen
2024-09-29 12:13:59 +03:00
parent b148833ef0
commit 74fa0c97e6
7 changed files with 107 additions and 27 deletions
+42 -22
View File
@@ -175,31 +175,25 @@
</CheckBox>
</RelativeLayout>
<RelativeLayout
<TextView
android:id="@+id/UserAgentTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/user_agent"
android:textSize="18sp" >
</TextView>
<EditText
android:id="@+id/UserAgent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginBottom="12dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/DarkThemeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_toStartOf="@id/DarkTheme"
android:textSize="18sp"
android:text="@string/dark_theme" >
</TextView>
<CheckBox
android:id="@+id/DarkTheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_gravity="end"
android:checked="false" >
</CheckBox>
</RelativeLayout>
android:textSize="18sp"
android:inputType="text"
android:importantForAutofill="no" >
</EditText>
<TextView
android:id="@+id/AudioSettingsTitle"
@@ -227,6 +221,32 @@
android:paddingTop="8dp" >
</Spinner>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/DarkThemeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_toStartOf="@id/DarkTheme"
android:textSize="18sp"
android:text="@string/dark_theme" >
</TextView>
<CheckBox
android:id="@+id/DarkTheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_gravity="end"
android:checked="false" >
</CheckBox>
</RelativeLayout>
<RelativeLayout
android:id="@+id/Battery"
android:layout_width="wrap_content"
+3
View File
@@ -398,6 +398,9 @@
<string name="video_fps_help">Videokehysten lähetystaajuus per sekuntti, jota tarjotaan
SDP-neuvottelun aikana. Arvon on oltava välillä 10-30.</string>
<string name="invalid_fps">Virheellinen videokehysten lähetystaajuus \'%1$d\'</string>
<string name="user_agent">User Agent</string>
<string name="user_agent_help">Räätälöity SIP sanoman User-Agent otsikkokentän arvo</string>
<string name="invalid_user_agent">Virheellinen User-Agent otsikkokentän arvo</string>
<string name="contacts_help">Valitsee käytetäänkö baresip-sovelluksen yhteystietoja, Androidin
yhteystietoja vai molempia. Jos molempia ja sama yhteystieto on molemmissa, käytetään
baresip-sovelluksen yhteystietoa.</string>
+3
View File
@@ -371,6 +371,9 @@
<string name="video_fps_help">Video frame rate that will be offered during the SDP handshake.
Valid values are from 10 to 30.</string>
<string name="invalid_fps">Invalid Frames Per Second \'%1$d\'</string>
<string name="user_agent">User Agent</string>
<string name="user_agent_help">Custom SIP request/response User-Agent header field value</string>
<string name="invalid_user_agent">Invalid User-Agent header field value</string>
<string name="contacts_help">Chooses if baresip contacts, Android contacts, or both are used.
If both are used and a contact with the same name exists in both contacts,
the baresip contact will be chosen.</string>