Add IAX capabilities
Enables IAX account creation in app
Calls have not been tested yet
diff --git a/res/layout/frag_account_creation.xml b/res/layout/frag_account_creation.xml
index 123d382..ee605ee 100644
--- a/res/layout/frag_account_creation.xml
+++ b/res/layout/frag_account_creation.xml
@@ -9,6 +9,13 @@
style="@style/AccountFormContainer"
android:orientation="vertical" >
+ <Spinner
+ android:id="@+id/account_type"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:entries="@array/accountType"
+ android:typeface="monospace" />
+
<EditText
android:id="@+id/alias"
android:layout_width="match_parent"
@@ -60,4 +67,4 @@
</LinearLayout>
-</ScrollView>
\ No newline at end of file
+</ScrollView>
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
index 0f1ccc6..ced7ead 100644
--- a/res/values-fr/strings.xml
+++ b/res/values-fr/strings.xml
@@ -78,6 +78,7 @@
<!-- Home Fragment -->
<plurals name="home_conferences_title">
<item quantity="zero">No Conversation</item>
+ <item quantity="one">%d Conversation</item>
<item quantity="other">%d Conversations</item>
</plurals>
<string name="home_transfering">Transfert de %1$s à %1$s</string>
@@ -111,4 +112,10 @@
<string name="web_site">Site web</string>
<string name="help_gestures"> This view will help users with different interactions during calls. Different actions will be described; Long press, fling, swype etc.</string>
-</resources>
\ No newline at end of file
+ <!-- combobox protocole -->
+ <string-array name="accountType">
+ <item>SIP</item>
+ <item>IAX</item>
+ </string-array>
+
+</resources>
diff --git a/res/values-fr/strings_account.xml b/res/values-fr/strings_account.xml
index b4615a0..23edba2 100644
--- a/res/values-fr/strings_account.xml
+++ b/res/values-fr/strings_account.xml
@@ -59,6 +59,7 @@
<string name="account_proxy_field">Proxy</string>
<string name="account_autoanswer_label">Décroche automatiquement l\'appel</string>
<string name="show_password">Voir mot de passe</string>
+ <string name="account_type_label">Protocole</string>
<!-- Audio Details -->
<string name="account_preferences_audio_tab">Audio</string>
@@ -117,4 +118,4 @@
<string name="account_rtp_port_range">Plage de port RTP pour l\'audio</string>
-</resources>
\ No newline at end of file
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3a4a468..7ab6cbf 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -113,4 +113,10 @@
<string name="web_site">Website</string>
<string name="help_gestures"> This view will help users with different interactions during calls. Different actions will be described; Long press, fling, swype etc.</string>
-</resources>
\ No newline at end of file
+ <!-- combobox protocol -->
+ <string-array name="accountType">
+ <item>SIP</item>
+ <item>IAX</item>
+ </string-array>
+
+</resources>
diff --git a/res/values/strings_account.xml b/res/values/strings_account.xml
index ae5fd76..e769eb4 100644
--- a/res/values/strings_account.xml
+++ b/res/values/strings_account.xml
@@ -59,6 +59,7 @@
<string name="account_autoanswer_label">Auto Answer</string>
<string name="account_proxy_field">Proxy</string>
<string name="show_password">Show password</string>
+ <string name="account_type_label">Protocol</string>
<!-- Audio Details -->
<string name="account_preferences_audio_tab">Audio</string>
@@ -119,4 +120,4 @@
<string name="account_rtp_min_port">Minimum</string>
<string name="account_rtp_port_range">Audio RTP Port Range</string>
-</resources>
\ No newline at end of file
+</resources>
diff --git a/res/xml/account_general_prefs.xml b/res/xml/account_general_prefs.xml
index 0a4d771..b1ddbf6 100644
--- a/res/xml/account_general_prefs.xml
+++ b/res/xml/account_general_prefs.xml
@@ -41,6 +41,13 @@
android:persistent="false"
android:summary=""
android:title="@string/account_alias_label" />
+ <EditTextPreference
+ android:id="@+id/account_type"
+ android:key="Account.type"
+ android:persistent="false"
+ android:summary=""
+ android:title="@string/account_type_label"
+ android:editable="false"/>
<EditTextPreference
android:id="@+id/account_hostname"
android:key="Account.hostname"
@@ -86,4 +93,4 @@
android:title="@string/account_autoanswer_label" />
</PreferenceCategory>
-</PreferenceScreen>
\ No newline at end of file
+</PreferenceScreen>