Project

General

Profile

Gui progress » History » Version 191

Adrian Georgescu, 07/24/2009 01:17 PM

1 1 Adrian Georgescu
[[TOC(gui_progress, depth=3)]]
2
3 159 Adrian Georgescu
4 74 Adrian Georgescu
= Audio sessions =
5 1 Adrian Georgescu
6 179 Adrian Georgescu
 1. Mute microphone when pressing mute button
7
 1. Call set_audio_devices() when changing the audio device or tail_length in global Preferences
8
 1. Set SIP User Agent name to blink-<version>
9
 1. Play '''ringtones''', Outbound ringtone does not play
10 176 Adrian Georgescu
 1. '''Cancel''' is not handled for incoming sessions, the pop-up remains active 
11 1 Adrian Georgescu
  1. With every new incoming session the window shrinks in size
12
  1. After the second call is canceled the window does not auto close anymore and one previous canceled call remains on top
13 179 Adrian Georgescu
 1. ~~ Incoming sessions do not display '''session information''' and the control buttons are missing~~
14
 1. ~~ When '''rejecting a session''' it creates an entry in the drawer~~
15 178 Adrian Georgescu
 1. ~~'''Maximize drawer''' when it opens the first time, it seem to open only 80% now ~~
16 146 Adrian Georgescu
 1. ~~Playback DTMF tones~~
17 115 Adrian Georgescu
 1. ~~ A terminated session must '''disappear from the drawer''' automatically after 5 seconds ~~
18
 1. ~~ Remaining sessions must '''shuffle to the top''' when a session ends~~
19
 1. ~~ Toggle hold does not change hold '''button color''' ~~
20
 1. ~~ Update session audio information with '''Hold by remote''' when held by remote party ~~
21
 1. ~~ Only one audio session can be '''active at a time''', all other existing audio sessions must be put on hold~~
22 1 Adrian Georgescu
 1. ~~ Highlight the '''active session''' with a bold border, click on a session to select it as the active session~~
23 140 Adrian Georgescu
 1. ~~ When the active session is selected, what is typed on the keyboard must be transmitted as '''DTMF tones'''~~
24 115 Adrian Georgescu
 1. ~~ When a call is connected move keyboard focus to it ~~
25
 1. ~~ When a session has ended, display it for '''5 more seconds''' then hide it and shuffle the deck  ~~
26
 1. ~~ Add an item '''Show audio sessions''' to the '''Session menu''' to show the drawer, if it was closed  (activated the View -> Toggle Sessions Drawer) ~~
27 147 Adrian Georgescu
 1. ~~ '''Scroll bar''' appears as result of multiple sessions, but it does not disappear when the number of session decreases~~
28
 1. ~~ '''Hangup All''' is not implemented~~
29 156 Adrian Georgescu
 1. ~~Display icon with lock when sRTP is active~~
30 161 Adrian Georgescu
 1. ~~ Disable Hangup All button if no session is active~~
31 150 Adrian Georgescu
 1. ~~ Disable Conference button if less than two sessions active~~
32 160 Adrian Georgescu
 1. ~~Allow the session end button for incoming sessions, which have not yet been established  (waiting for the ACK message) ~~
33 1 Adrian Georgescu
34 183 Adrian Georgescu
= History audio sessions =
35
36
 1. Use the same session drawer to display previous sessions
37
 1. Keep same layout as active sessions with the following changes:
38
   1. Missed calls (incoming un-answered sessions must display the SIP address in red) 
39
   1. Duration line must display also the Start time: HH:MM:SS (YYYY-MM-DD HH:MM )
40
   1. Instead of audio session information display: Incoming|Outgoing
41
   1. Replace the current session buttons with a callback button
42
 1. Add a Session menu item to toggle the drawer content between active session and history sessions
43
 1. Show most recent sessions on top
44
45 131 Adrian Georgescu
= Chat sessions =
46
47 186 Adrian Georgescu
 1. Chat history directory must be read from global.chat.history_directory. If relative the path is relative to global.user_data_directory
48 180 Adrian Georgescu
 1. Add a status bar below recipient tab and display connection progress and information in the status bar
49 191 Adrian Georgescu
 1. If an audio session exists to or from the chat recipient, replace disable Call button with hold and terminate buttons, update audio drawer when pushing the buttons 
50
 1. When click on the Call button, create a separate audio session from scratch
51
 1. Do not play audible tone when terminating a chat session, the tone is for audio session only
52 180 Adrian Georgescu
 1. Display the number of '''un-read messages''' in non-visible tabs in a red circle over the tab name
53 156 Adrian Georgescu
 1. ~~Add a '''+''' button (to add contact) in the toolbar~~
54
 1. ~~Display the full From and To headers~~
55 164 Adrian Georgescu
 1. ~~Use secondary ring tone on output_device  when incoming session with chat media only~~
56
 1. ~~When close the window or click on close button call session.end() if the session has no other stream or session.remove_stream() otherwise~~
57 174 Adrian Georgescu
 1. ~~When click on close, close the tab or the whole window if no tab left~~
58 135 Adrian Georgescu
 1. ~~'''Throttle playback''' of audible notifications to maximum one every 3 seconds ~~
59 164 Adrian Georgescu
 1. ~~ Display timestamp in HH:MM:ss format to the right side of the window, same lin as From/To header ~~ 
60
 1. ~~Bug: Cannot get rid of existing tabs, they keep growing~~
61
 1. ~~Bug: opening and closing chat windows bring up different number of former chat tabs back~~
62
 1. ~~Append chat messages to '''chat.history_directory/sip_account/YYYYMMDD-recipient.txt'''~~
63 1 Adrian Georgescu
 1. ~~Play an audible message when a message is received, based on '''silent''' and '''general.message_received_sound''' settings~~
64
 1. ~~Play an audible message when a message is sent, based on silent and '''general.message_sent_sound''' settings~~
65 180 Adrian Georgescu
 1. ~~Add '''File transfer''' button on toolbar~~
66
 1. ~~Add '''History''' button on toolbar~~
67
 1. Right click on the history area bring a Reload button. If selecting it the screen goes blank. We need to define proper action like Copy text selection or copy all window content 
68 131 Adrian Georgescu
 1. When dragging a recipient tab outside of the window '''spawn a new chat window''' and move the session into it
69 157 Adrian Georgescu
 1. When start typing send a message with '''is-composing''' payload. This requires implementing the is-composing payload parser, see http://sipsimpleclient.com/ticket/40. If user has deleted the typed text before sending it update is-composing. 
70 174 Adrian Georgescu
 
71 131 Adrian Georgescu
72 1 Adrian Georgescu
= Main interface =
73 167 Adrian Georgescu
74 1 Adrian Georgescu
 1. Instead of maximizing the window, use the green + title button to collapse/expand the buddy list, hide + sign when the interface is collapsed
75 190 Adrian Georgescu
 1. Bonjour account does not appear when activated
76 167 Adrian Georgescu
 1. ~~At least one account must be active, use the bonjour acocunt if no accounts are defined ~~
77
 1. ~~ The list of account is built based the active attribute of each account alone, registration status has no role~~
78
 1. ~~When selecting a different account, mark it as '''default''' using the settings api~~
79
 1. ~~Bonjour account does not show up in account list~~
80 1 Adrian Georgescu
 1. ~~'''Remove account''' from list when is disabled in preferences  ~~
81 167 Adrian Georgescu
 1. ~~On startup, '''select the default account''' in the account list~~
82 1 Adrian Georgescu
 1. ~~If red Close button is pressed, the main window disappears and is no option to bring it back~~
83
 1. ~~No dock icon available~~
84 180 Adrian Georgescu
85 132 Adrian Georgescu
= Contacts =
86 1 Adrian Georgescu
87 183 Adrian Georgescu
 1. When add a contact without domain part, always append the curent domain
88 132 Adrian Georgescu
 1. Type a new group in add contact: (NameError: global name 'ContactsGroup' is not defined)
89
 1. '''Delete the contact''' when pressing delete
90 180 Adrian Georgescu
 1. Hide Add contact if costs exists
91
 1. Rename Add as a contact to Add Contact
92 132 Adrian Georgescu
 1. After dialing a found contact, display back the buddy list
93
 1. Show search results from the system address book
94 180 Adrian Georgescu
 1. Cannot press start session buttons for input in search bar if no match found
95 1 Adrian Georgescu
96 48 Adrian Georgescu
= Conferencing =
97 1 Adrian Georgescu
98
Only one conference is possible to make the interface easy to use.
99 144 Adrian Georgescu
100 84 Adrian Georgescu
To start a conference:
101 1 Adrian Georgescu
102
 1. Send a re-INVITE to a) take each call off hold and b) set the is-focus attribute of the Contact header
103 125 Adrian Georgescu
 1. Set the conference bridge to mix audio between all parties
104 59 Adrian Georgescu
 1. Disable the hold buttons, they do not operate while in conference
105
 1. Draw the selection rectangle around the sessions part of the conference
106 1 Adrian Georgescu
107 63 Adrian Georgescu
To stop a conference
108 6 Adrian Georgescu
109 111 Adrian Georgescu
 1. Send a re-INVITE to a) take each call an leave only one off hold and b) disable is-focus attribute of the Contact header
110 1 Adrian Georgescu
 1. Set the conference bridge to stop mixing audio
111
 1. Enable the hold buttons
112 111 Adrian Georgescu
 1. Draw the selection rectangle around the selected session
113 121 Adrian Georgescu
114
New sessions while in a conference
115
116
 1. New sessions are added bellow the conference
117
 1. A session can be dragged in and out of the conference
118
 1. When switching from a conference to another single session, do not use hold
119 1 Adrian Georgescu
120 121 Adrian Georgescu
= Preferences =
121
122 185 Adrian Georgescu
 1. The drop down box with audio device must also list 'Default system input ' and 'Default system output' which means the OS level default audio devices found in OS control-panel
123 41 Adrian Georgescu
 1. Make all text input fields equal in size
124 180 Adrian Georgescu
 1. '''bonjour account''' has only Display name as main property.  There is no SIP address or password associated with it
125
 1. Cannot '''delete Bonjour''' account: (TypeError: cannot delete BonjourAccount instance with default id). Do  not allow the user to attempt to delete it (hide the minus button). Bonjour can only be enabled/disabled but not deleted.
126 168 Adrian Georgescu
 1. When password field is changed, re-Register the account 
127 151 Adrian Georgescu
 1. Do not allow deselection of all codecs, at least one codec must be enabled
128 42 Adrian Georgescu
 1. '''Stun server''' addresses cannot be set, they seem to inherit the results found in DNS  
129
 1. '''general.rtp.local_ip''': Can't set option local_ip illegal local IP address value: auto
130
 1. '''general.rtp.port_range''': (AttributeError: 'PortRangeOption' object has no attribute 'save')
131
 1. '''general.sip.transports''' cannot be saved
132 41 Adrian Georgescu
 1. '''general.audio.codec_list''' cannot be saved and displays duplicate codecs
133 1 Adrian Georgescu
 1. '''account.audio.codec_list''' cannot be saved and displays duplicate codecs
134 41 Adrian Georgescu
 1. '''account.msrp.relay''' cannot be set: global name 'MSRPRelayAddres' is not defined
135 168 Adrian Georgescu
 1. Properly '''align''' horizontally the Advanced settings
136 149 Adrian Georgescu
 1. Display text to the '''left of the checkbox''' instead of the right
137 1 Adrian Georgescu
 1. ~~'''Delete account Enabled checkbox''', leave only the checkbox in the account list~~
138 151 Adrian Georgescu
 1. When '''enable an account''', select it in the main interface account list
139 154 Adrian Georgescu
 1. ~~ Display the '''bonjour account''' always at the end of the list ~~
140 41 Adrian Georgescu
 1. For '''account.ringtone''' advanced setting, the default setting must be inherited from '''general.ringtone.inbound'''
141
 1. '''general.message_received_sound''' does not fit in window
142 96 Adrian Georgescu
 1. Allow ordering of accounts in the account list
143 118 Adrian Georgescu
 1. While clicking on account I got this (cannot reproduce): (TypeError: 'NSAutoreleasePool' object is not iterable)
144
 1. Check if the wav file is in the right format before saving the settings related to ringtones
145 29 Adrian Georgescu
 1. Check if the TLS options set by the user are valid before saving them (by loading them outside the engine using gnutls library)
146
147 41 Adrian Georgescu
Display SIP registration state in '''account.advanced.registration''' section.
148 1 Adrian Georgescu
149 116 Adrian Georgescu
= Engine =
150 122 Adrian Georgescu
151 41 Adrian Georgescu
 1. If '''engine is dead''', the message  '''no sip account is active''' is displayed but is unclear what the real reason is. An engine stop must be logged to general debug window. Not clear how to restart the engine, maybe we should restart the application until a good solution is found
152 29 Adrian Georgescu
 1. If the engine has stopped (because of some crash) the preferences do not show anymore:
153
154
{{{
155
Blink[26992:10b] <type 'exceptions.AttributeError'>: 'Engine' object has no attribute 'output_devices'
156
}}}
157
158
By setting the wrong TLS certificate files, the middleware does not start anymore:
159
160
{{{
161
[Session started at 2009-07-19 10:37:39 +0200.]
162
Traceback (most recent call last):
163
  File "/Users/adigeo/work/blink/build/Debug/Blink.app/Contents/Resources/BlinkAppDelegate.py", line 40,
164
   in applicationDidFinishLaunching_
165
    self.backend.init(options)
166
  File "/Users/adigeo/work/blink/build/Debug/Blink.app/Contents/Resources/SIPManager.py", line 108, in init
167
    self._app.start(config_backend=config_be)
168
  File "/Library/Python/2.5/site-packages/sipsimple/api.py", line 85, in start
169
    trace_sip=settings.logging.trace_sip,
170 41 Adrian Georgescu
  File "/Library/Python/2.5/site-packages/sipsimple/engine.py", line 75, in start
171 29 Adrian Georgescu
    self._ua = PJSIPUA(self._handle_event, 1.1.init_options)
172
  File "core.ua.pxi", line 66, in sipsimple.core.PJSIPUA.__init__ (sipsimple/core.c:23189)
173
  File "core.lib.pxi", line 106, in sipsimple.core.PJSIPEndpoint.__cinit__ (sipsimple/core.c:6231)
174
  File "core.lib.pxi", line 167, in sipsimple.core.PJSIPEndpoint._start_tls_transport (sipsimple/core.c:6884)
175
PJSIPError: Could not create TLS transport: Error loading/verifying SSL CA list file (PJSIP_TLS_ECACERT)
176 1 Adrian Georgescu
None
177 34 Adrian Georgescu
}}}
178 1 Adrian Georgescu
179 155 Adrian Georgescu
= Menu structure =
180
181
 1. File
182
 1. Edit
183
 1. View
184 187 Adrian Georgescu
  1. Previous audio sessions ...
185
  1. Previous chat sessions ...
186 155 Adrian Georgescu
 1. Audio
187
  1. Output device
188
  1. Input device
189
  1. Alert device
190
  1. Mute
191
 1. Presence
192
  1. Activity
193
   1. Available
194
   1. Phone call
195
   1. Meeting
196
   1. Lunch
197
   1. Dinner
198
   1. Do not disturb
199
   1. Travel
200
   1. Offline
201
   1. Holiday
202
 1. Contacts
203
  1. Add contact
204
  1. Delete contact
205
  1. Edit contact
206
  1. Add group
207
  1. Delete group
208
  1. Edit group
209
 1. Sessions
210 173 Adrian Georgescu
  1. New audio session ...
211 166 Adrian Georgescu
  1. New chat session ...
212
  1. New multi party chat session ...
213
  1. Close all audio sessions
214
  1. Conference audio sessions
215 155 Adrian Georgescu
216 1 Adrian Georgescu
= Presence bar =
217
218
Make it as high as the contacts (two rows high).
219 142 Adrian Georgescu
220
 1. ~~ Show '''own photo''' to the left ~~
221 1 Adrian Georgescu
 1. Acquire photo from webcam and cache it
222
 1. Show '''Display name''' next to the photo on top row
223 142 Adrian Georgescu
 1. Show '''Presence activity note''' on second row, editable text
224 1 Adrian Georgescu
 1. Show '''Presence activity''' next to name on top row. Activities:
225
   1. Available
226 142 Adrian Georgescu
   1. Phone call
227
   1. Meeting
228
   1. Lunch
229
   1. Dinner
230
   1. Do not disturb
231
   1. Travel
232
   1. Offline
233
   1. Holiday
234 148 Adrian Georgescu
235
Add a Presence menu item before Session.
236 7 Adrian Georgescu
237 1 Adrian Georgescu
= Debug window =
238 7 Adrian Georgescu
239 41 Adrian Georgescu
 1. Display all traces in a '''debug window''' with tabs for each debug type
240
 1. Add a '''General messages''' window to the Debug menu, first item
241 1 Adrian Georgescu
242
= GUI settings =
243
244
Remember the following settings between restarts:
245 79 Adrian Georgescu
246 41 Adrian Georgescu
 1. '''Debug window''' and the selected tab
247
 1. Status of '''contact groups''' - colapsed/expanded and their order
248 100 Adrian Georgescu
249 14 Adrian Georgescu
= Middleware =
250 47 Adrian Georgescu
251 102 Adrian Georgescu
 1. On startup, check if the audio device from the preferences '''is available''' in the detected devices list. If not, set the device to the system default device and display a warning to the user to set the devices in the preferences
252
 1. Check the validity of the '''TLS''' settings/files before starting the engine
253
 1. It seems that the '''stun servers''' are learned from the DNS and cannot be overwritten in settings, they show up automatically
254
 1. If I set the relay to abcd.com standard '''port 2855''' must be used, now is set to zero: relay = abcd.com:0;transport=tls
255 41 Adrian Georgescu
 1. We need a solution to accept a session without a 180- ringing. For instance we can have automatic answer based on various preferences.
256
 1. Move '''general.audio.codec_list''' to '''general.rtp.audio_codecs'''
257 1 Adrian Georgescu
 1. Move '''account.audio.codec_list''' to '''account.rtp.audio_codecs'''
258
 1. Move '''account.audio.srtp_encryption''' to '''account.rtp.srtp_encryption'''
259
 1. Delete '''general.audio.playback_dtmf''' setting
260
 1. Add '''general.audio.mute''' setting
261
 1. Delete '''account.audio''' section
262 66 Adrian Georgescu
 1. Add '''account.sip''' section
263
 1. Move '''account.outbound_proxy''' to '''account.sip.outbound_proxy'''
264
 1. Move '''account.presence.publish_interval''' to '''account.sip.publish_interval'''
265
 1. Move '''account.presence.subscribe_interval''' to '''account.sip.subscribe_interval'''
266
 1. Move '''account.registration.interval''' to '''account.sip.register_interval'''
267
 1. Delete '''account.ice.use_stun''', it is always true
268 68 Adrian Georgescu
 1. Rename '''account.ice''' to '''account.nat_traversal'''
269 109 Adrian Georgescu
 1. Rename '''account.ice.enabled''' to '''account.nat_traversal.enable_ice'''
270
 1. Delete global.chat.accept_types
271 1 Adrian Georgescu
 1. Delete global.chat.accept_wrapped_types
272 172 Adrian Georgescu
 1.  Add a new setting '''account.chat.server''' default = chatserver.domain
273 159 Adrian Georgescu
274
= General =
275
276 189 Adrian Georgescu
 1. ~~Enable logging based on log settings~~
277
 1. Enable logging of notifications to file
278
 1. ~~'''Set global.user_data_directory''' to ~/Library/Application\ Support/Blink/~~
279 171 Adrian Georgescu
 1. Scratchy noises when playing tone generator tones, they do not appear using the CLI
280 170 Adrian Georgescu
 1. Crash when more than 32 tones in the tone generator queue
281 171 Adrian Georgescu
282 170 Adrian Georgescu
 1. Random crashes during functioning always end up in debugger at:
283 159 Adrian Georgescu
284
{{{
285
[Switching to process 59222 thread 0x9b73]
286
(gdb) bt
287
#0  0x937691c6 in mach_msg_trap ()
288
#1  0x937709bc in mach_msg ()
289
#2  0x9351104e in CFRunLoopRunSpecific ()
290
#3  0x93511c78 in CFRunLoopRunInMode ()
291
#4  0x9411128c in RunCurrentEventLoopInMode ()
292
#5  0x941110a5 in ReceiveNextEventCommon ()
293
#6  0x94110f19 in BlockUntilNextEventMatchingListInMode ()
294
#7  0x96863d0d in _DPSNextEvent ()
295
#8  0x968635c0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
296
#9  0x9685c5fb in -[NSApplication run] ()
297
#10 0x00233855 in ffi_call_SYSV ()
298
#11 0x00233d6c in ffi_call ()
299
#12 0x0024a825 in PyObjCFFI_Caller ()
300
#13 0x00261b63 in PyObjCSelector_GetMetadata ()
301
#14 0x00121505 in PyObject_Call ()
302
#15 0x0018f832 in PyEval_EvalFrameEx ()
303
#16 0x00191173 in PyEval_EvalCodeEx ()
304
#17 0x0018f79d in PyEval_EvalFrameEx ()
305
#18 0x00191173 in PyEval_EvalCodeEx ()
306
#19 0x00191260 in PyEval_EvalCode ()
307
#20 0x001a883c in PyErr_Display ()
308
#21 0x001a8e66 in PyRun_FileExFlags ()
309
#22 0x001aa7d2 in PyRun_SimpleFileExFlags ()
310
#23 0x00001d4e in main (argc=1, argv=0xbfffeef4) at /Users/adigeo/work/blink/main.m:33
311
kill
312
}}}