Add settings (in/incoming) call timeout

This commit is contained in:
Yann Diorcet 2012-10-29 16:51:43 +01:00
parent 2834b69318
commit 78a40c45a7
9 changed files with 164 additions and 13 deletions

View file

@ -212,8 +212,11 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
[self setBool:linphone_core_video_preview_enabled(lc) forKey:@"preview_preference"];
}
{
[self setBool: lp_config_get_int(linphone_core_get_config(lc), LINPHONERC_APPLICATION_KEY, "sipinfo_dtmf_preference", 0) forKey:@"sipinfo_dtmf_preference"];
[self setBool: lp_config_get_int(linphone_core_get_config(lc), LINPHONERC_APPLICATION_KEY, "rfc_dtmf_preference", 1) forKey:@"rfc_dtmf_preference"];
[self setBool:linphone_core_get_use_info_for_dtmf(lc) forKey:@"sipinfo_dtmf_preference"];
[self setBool:linphone_core_get_use_rfc2833_for_dtmf(lc) forKey:@"rfc_dtmf_preference"];
[self setInteger:linphone_core_get_inc_timeout(lc) forKey:@"incoming_call_timeout_preference"];
//[self setInteger:linphone_core_get_inc_timeout(lc) forKey:@"in_call_timeout_preference"];
}
@ -425,6 +428,8 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
linphone_core_set_use_info_for_dtmf(lc, [self boolForKey:@"sipinfo_dtmf_preference"]);
linphone_core_set_use_rfc2833_for_dtmf(lc, [self boolForKey:@"rfc_dtmf_preference"]);
linphone_core_set_inc_timeout(lc, [self integerForKey:@"incoming_call_timeout_preference"]);
//linphone_core_set_inc_timeout(lc, [self integerForKey:@"in_call_timeout_preference"]);
bool enableVideo = [self boolForKey:@"enable_video_preference"];
linphone_core_enable_video(lc, enableVideo, enableVideo);

View file

@ -574,6 +574,8 @@ static UICompositeViewDescription *compositeDescription = nil;
[hiddenKeys addObject:@"battery_alert_button"];
#endif
[hiddenKeys addObject:@"incoming_call_timeout_preference"];
[hiddenKeys addObject:@"in_call_timeout_preference"];
[hiddenKeys addObject:@"quit_button"]; // Hide for the moment
[hiddenKeys addObject:@"about_button"]; // Hide for the moment

View file

@ -52,6 +52,42 @@
<key>DefaultValue</key>
<true/>
</dict>
<dict>
<key>Key</key>
<string>incoming_call_timeout_preference</string>
<key>Title</key>
<string>Incoming call timeout</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>30</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
<dict>
<key>Key</key>
<string>in_call_timeout_preference</string>
<key>Title</key>
<string>In call timeout</string>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
<key>KeyboardType</key>
<string>NumberPad</string>
<key>DefaultValue</key>
<integer>0</integer>
<key>IASKTextAlignment</key>
<string>IASKUITextAlignmentRight</string>
</dict>
</array>
</dict>
</plist>

View file

@ -10,3 +10,8 @@
/* Send SIP INFO DTMFs */
"Send SIP INFO DTMFs" = "Send SIP INFO DTMFs";
/* Incoming call timeout */
"Incoming call timeout" = "Incoming call timeout";
/* In call timeout */
"In call timeout" = "In call timeout";

View file

@ -2,7 +2,7 @@
"SIP account" = "Compte SIP";
/* Wizard */
"Wizard" = "Lancer l'assistant";
"Wizard" = "Assistant";
/* User name */
"User name" = "Nom d'utilisateur";
@ -23,7 +23,7 @@
"Settings" = "Options";
/* Enable video */
"Enable video" = "Activer la vidéo";
"Enable video" = "Activer vidéo";
/* Audio */
"Audio" = "Audio";

View file

@ -15470,7 +15470,7 @@ Raison: %2$s</string>
</dict>
</dict>
<key>change date</key>
<date>2012-09-18T09:26:35Z</date>
<date>2012-10-22T08:50:22Z</date>
<key>changed values</key>
<array/>
<key>class</key>
@ -15480,7 +15480,7 @@ Raison: %2$s</string>
<key>flags</key>
<integer>0</integer>
<key>hash</key>
<string>dc9f190a8a2dcdf8026518ff11e1d480
<string>1637ea0ccdf086dbddb51c854d6310db
</string>
<key>name</key>
<string>Root.strings</string>
@ -15523,13 +15523,13 @@ Raison: %2$s</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<integer>1</integer>
<key>key</key>
<string>Wizard</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Wizard</string>
<string>Run assistant</string>
<key>fr</key>
<string>Assistant</string>
</dict>
@ -16840,7 +16840,7 @@ Raison: %2$s</string>
</dict>
</dict>
<key>change date</key>
<date>2012-09-11T10:05:39Z</date>
<date>2012-10-29T15:42:49Z</date>
<key>changed values</key>
<array/>
<key>class</key>
@ -16848,9 +16848,9 @@ Raison: %2$s</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>1</integer>
<integer>0</integer>
<key>hash</key>
<string>3cc5ec7e298d1a3aa4449641876f5960
<string>6ae28fd473b2900cce974380a72d5447
</string>
<key>name</key>
<string>Call.strings</string>
@ -16956,9 +16956,107 @@ Raison: %2$s</string>
<key>snapshots</key>
<dict/>
</dict>
<dict>
<key>change date</key>
<date>2001-01-01T00:00:00Z</date>
<key>changed values</key>
<array/>
<key>class</key>
<string>BLStringKeyObject</string>
<key>comment</key>
<string>Incoming call timeout</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>Incoming call timeout</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>Incoming call timeout</string>
<key>fr</key>
<string>Durée max. sonnerie</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
<dict>
<key>change date</key>
<date>2001-01-01T00:00:00Z</date>
<key>changed values</key>
<array/>
<key>class</key>
<string>BLStringKeyObject</string>
<key>comment</key>
<string>In call timeout</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>In call timeout</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>In call timeout</string>
<key>fr</key>
<string>Durée max. appel</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
</array>
<key>old objects</key>
<array/>
<array>
<dict>
<key>change date</key>
<date>2001-01-01T00:00:00Z</date>
<key>changed values</key>
<array>
<string>&lt;reference&gt;</string>
</array>
<key>class</key>
<string>BLStringKeyObject</string>
<key>comment</key>
<string>Incoming call timeout</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>0</integer>
<key>key</key>
<string>In</string>
<key>localizations</key>
<dict>
<key>en</key>
<string>call</string>
</dict>
<key>snapshots</key>
<dict/>
</dict>
<dict>
<key>change date</key>
<date>2001-01-01T00:00:00Z</date>
<key>changed values</key>
<array>
<string>&lt;reference&gt;</string>
</array>
<key>class</key>
<string>BLStringKeyObject</string>
<key>comment</key>
<string>Incoming call timeout</string>
<key>errors</key>
<array/>
<key>flags</key>
<integer>3</integer>
<key>key</key>
<string>timeout</string>
<key>localizations</key>
<dict/>
<key>snapshots</key>
<dict/>
</dict>
</array>
<key>plist file</key>
<false/>
<key>snapshots</key>

View file

@ -10,3 +10,8 @@
/* Send SIP INFO DTMFs */
"Send SIP INFO DTMFs" = "Send SIP INFO DTMFs";
/* Incoming call timeout */
"Incoming call timeout" = "Incoming call timeout";
/* In call timeout */
"In call timeout" = "In call timeout";

View file

@ -2,7 +2,7 @@
"SIP account" = "SIP account";
/* Wizard */
"Wizard" = "Wizard";
"Wizard" = "Run assistant";
/* User name */
"User name" = "User name";