121 Commits

Author SHA1 Message Date
Mathieu Parent
5bdf8bcc16 Skinny: More channel variables 2010-05-21 01:12:40 +02:00
Mathieu Parent
bfb6a8b1f5 Skinny: Initial Windows support
Thanks to Peter Olsson

Closes: MODSKINNY-3
2010-05-20 23:19:10 +02:00
Mathieu Parent
8bdd2f2dc2 Skinny: add message type in too short warning 2010-05-20 20:51:18 +02:00
Mathieu Parent
a1f9cc1efa Skinny: pass remote session to ring_lines because BOND is not set yet 2010-05-20 18:45:25 +02:00
Mathieu Parent
d172e9febb Skinny: send the call state when requested
This solves incorrect display on the phone.

BUT: this creates a delta because the SQL value and the value known by
the phone. I hope this doesn't break other things.

(NB: the original problem here was the unability to do an UPDATE inside
a SELECT callback)
2010-05-20 17:29:25 +02:00
Mathieu Parent
924683a73c Skinny: handle SWITCH_MESSAGE_INDICATE_DISPLAY
- send SWITCH_MESSAGE_INDICATE_DISPLAY when ringing (after knowing calle
  info
- send call info when receiving SWITCH_MESSAGE_INDICATE_DISPLAY

The send SWITCH_MESSAGE_INDICATE_DISPLAY part doesn't work yet, because
partner channel is locked (have to find out why)
2010-05-20 17:14:49 +02:00
Mathieu Parent
23b09b4593 Skinny: Correct state handling
- wait for media before marking channel as answered
- set effective_caller_{id,name} before sending call info
2010-05-20 16:34:38 +02:00
Mathieu Parent
8ec0b7f4c7 Skinny: fix redial button, and all nested "bridge" 2010-05-20 15:36:26 +02:00
Mathieu Parent
8cc89ab042 Skinny: rewrite of the skinny state machine
- for incoming calls, go CS_ROUTING only when number is dialed.
  CS_HIBERNATE before
- start media when both side have answered

Also:
- send tone for UNALLOCATED_NUMBER and USER_BUSY
- if channel variables are not sufficent to set call info, ask the
  partner channel
2010-05-20 15:16:08 +02:00
Mathieu Parent
03d07b4cb6 Skinny: slightly better call info 2010-05-19 09:52:03 +02:00
Mathieu Parent
32b8bdb990 Skinny: display destination number if callee is not set 2010-05-18 18:14:27 +02:00
Mathieu Parent
e66e9fa878 Skinny: called is named callee 2010-05-18 13:48:16 +02:00
Mathieu Parent
0bc11afa73 Skinny: split out server part
And try to keep each file below 2000 lines
2010-05-18 10:49:01 +02:00
Mathieu Parent
51f1ad5072 Skinny: Send hangup cause to device (busy, unknown number) 2010-05-18 10:49:01 +02:00
Mathieu Parent
800918ab14 SKinny: use of labels, step2 2010-05-18 10:49:00 +02:00
Mathieu Parent
60090a8602 Skinny: using labels for display text
Based on chan-sccp-b (file src/sccp_labels.h)
2010-05-18 10:49:00 +02:00
Mathieu Parent
295f39c158 Skinny: renamed improper skinny_create_ingoing_session to _incoming_ 2010-05-18 10:49:00 +02:00
Mathieu Parent
3b0f1711ba Skinny: corrections to call info:
- channel vars are caller_ and not callee_
- inbound/outbound are reversed from the skinny POV
- use displayname
2010-05-12 21:02:14 +02:00
Mathieu Parent
194e57268a Skinny: tuple profile, device_name, device_instance is unique 2010-05-10 18:19:58 +02:00
Mathieu Parent
bd6f7e73c0 perl-Skinny: don't launch thread if socket can't be created 2010-05-10 18:19:58 +02:00
Mathieu Parent
74e14f0dfb Skinny: fix the build 2010-05-10 18:19:58 +02:00
Mathieu Parent
8806bb2da1 Skinny: better call info 2010-05-10 18:19:57 +02:00
Mathieu Parent
6a29e56301 Skinny: tiny change (comment) 2010-05-10 18:19:57 +02:00
Anthony Minessale
a5f7461ee2 fix null pointer deref code path 2010-05-05 11:01:32 -05:00
Mathieu Parent
dcb9c0ca52 Skinny: Initial patterns dialplan implementation.
More info on mod_skinny wiki page
2010-04-20 22:40:21 +02:00
Mathieu Parent
9a689a45fc Skinny: correct transfer 2010-04-16 18:01:19 +02:00
Mathieu Parent
03f91afd34 Skinny: VersionMessage per device type 2010-04-16 18:01:19 +02:00
Mathieu Parent
deb2277936 Skinny: allow firmware version per device 2010-04-16 15:16:27 +02:00
Mathieu Parent
4263dda2de Skinny: Initial implementation of VersionReq
And reordering
2010-04-16 15:03:37 +02:00
Mathieu Parent
00b2622350 Skinny: initial transfer support
and some re-indentation
2010-04-16 11:59:58 +02:00
Mathieu Parent
3a8d9a04dc Skinny: reordering message types 2010-04-15 15:24:04 +02:00
Mathieu Parent
e7a5420b31 Skinny: handle Hold stimulus 2010-04-15 15:05:34 +02:00
Mathieu Parent
764b435d7c Skinny: correct backspace handling, and behave more like CCM 2010-04-15 14:47:01 +02:00
Mathieu Parent
93db4451d1 Skinny: fix previous commit, define current time on hangup 2010-04-15 11:11:05 +02:00
Mathieu Parent
d41f32356c Skinny: calling shared lines 2010-04-15 11:07:45 +02:00
Mathieu Parent
e44d79192f Skinny: Handle backspace 2010-04-15 10:54:01 +02:00
Mathieu Parent
befd41c829 SKinny: handle hold corner cases
- try to re-use existing OffHook session
- hold active lines before: newcall, resume
- allow endcall on: offHook, afterFirstDigit
- allow newcall on: connected, ringin
2010-04-09 18:02:14 +02:00
Mathieu Parent
555b205344 Skinny: handle backspace 2010-04-09 16:54:29 +02:00
Mathieu Parent
a1952b8636 Skinny: implement hold/resume
Also rework a bit softkey sets
2010-04-09 16:12:58 +02:00
Mathieu Parent
7e3c29c600 Skinny: manage shared lines from the calling POV
Called POV already implemented
2010-04-09 14:59:18 +02:00
Mathieu Parent
924e960d0a perl-skinny: enhance test
- Use thread for: keepalive, receive and send
- Run indefinitevly
2010-04-09 14:40:33 +02:00
Mathieu Parent
adcb11f3d3 Skinny: fix calls without media
If party_id is 0, the phone will not properly release media
2010-04-09 11:13:22 +02:00
Mathieu Parent
bec8d75ef6 Skinny: don't double unlock on keypad
double unlock is same as locking :P
2010-04-08 23:17:13 +02:00
Mathieu Parent
c15e163b88 Skinny: avoid non-set profile name 2010-04-08 23:16:44 +02:00
Mathieu Parent
d3d50e6eb3 Skinny: release XML config
Fixes: reloadxml blocked
2010-04-08 22:59:31 +02:00
Mathieu Parent
ca8ec66ed3 Skinny: avoid crash on shutdown
Because of uninstancied listener
2010-04-08 22:48:36 +02:00
Mathieu Parent
58595bdaec Skinny: solve deadlocks and more
- Solve deadlock:
  + associate all skinny_profile_find_session with the corresponding
    switch_core_session_rwunlock
  + lock the newly created session in skinny_create_ingoing_session
  + enhance rwlocks debugging
- Shared lines:
  + Inform shared lines on answering
  + Answering line has info after other shared lines
2010-04-08 22:38:24 +02:00
Mathieu Parent
9c4767456a Skinny: Hook the proper line 2010-04-02 15:12:06 +02:00
Mathieu Parent
5a4fbd414e Skinny: unused variable 2010-04-02 14:50:11 +02:00
Mathieu Parent
9cf882566f Skinny: security
- Avoid writing outside of fields
- tab ident
2010-04-02 14:47:37 +02:00