[Touch Diamond, MDA Compact IV Themes and Apps] r00sick:
OK, take a look at this, please (see attached log also).

Here is my settings:

...
2010-01-13 13:35:02 90457650 GetSetRegValue(): CmdOrientationSequence3
2010-01-13 13:35:02 90457650 ==DEFAULT VALUE====: 356
2010-01-13 13:35:02 90457650 ==OVERRULED VALUE==: 1516
2010-01-13 13:35:02 90457650 CmdOrientationSequence3: 1516
...
2010-01-13 13:35:02 90457650 GetSetRegValue(): CmdOrientation3
2010-01-13 13:35:02 90457650 ==DEFAULT VALUE====: !LOCKSCREEN
2010-01-13 13:35:02 90457650 ==OVERRULED VALUE==: "mortscript.exe" "\Память телефона\!Scripts\Close Window.mscr"
2010-01-13 13:35:02 90457650 CmdOrientation3: "mortscript.exe" "\Память телефона\!Scripts\Close Window.mscr"
...

Here is gesture "1->5->1->6" when in call with InCallTweak=0:

...
2010-01-13 13:35:46 -1541101450 Landscape XYZ 0.863281,0.199219,0.621094
2010-01-13 13:35:46 -1541101450 SetOrientation: Landscape
2010-01-13 13:35:46 -1541101450 = GSENSOR ORIENTATION MATCH =: 2 numberOk: 1 numbersequence: 1 orientation: 1 Landscape
2010-01-13 13:35:46 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 1 numbersequence: 1 orientation: 1 Landscape
...
2010-01-13 13:35:46 -1541101450 FaceDown XYZ 0.597656,0.320313,-0.761719
2010-01-13 13:35:46 -1541101450 SetOrientation: FaceDown
2010-01-13 13:35:46 -1541101450 = GSENSOR ORIENTATION MATCH =: 2 numberOk: 2 numbersequence: 5 orientation: 5 FaceDown
2010-01-13 13:35:46 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 2 numbersequence: 5 orientation: 5 FaceDown
...
2010-01-13 13:35:47 -1541101450 Landscape XYZ 0.675781,0.316406,-0.617188
2010-01-13 13:35:47 -1541101450 SetOrientation: Landscape
2010-01-13 13:35:47 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 3 numbersequence: 1 orientation: 1 Landscape
...
2010-01-13 13:35:47 -1541101450 FaceUp XYZ 0.304688,0.070313,0.761719
2010-01-13 13:35:47 -1541101450 SetOrientation: FaceUp
2010-01-13 13:35:47 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 4 numbersequence: 6 orientation: 6 FaceUp
2010-01-13 13:35:47 -1541101450 ==================COMMAND BY GSENSOR ORIENTATION==========================: 3
2010-01-13 13:35:47 -1541101450 Execute(): "mortscript.exe" "\Память телефона\!Scripts\Close Window.mscr"
...

It's OK, call ended

And here is gesture "1->5->1->6" when in call with InCallTweak=1:

...
2010-01-13 13:36:43 -1541101450 Landscape XYZ 0.636719,0.109375,0.441406
2010-01-13 13:36:43 -1541101450 SetOrientation: Landscape
2010-01-13 13:36:43 -1541101450 =====InCallTweak======SCREENON
2010-01-13 13:36:43 -1541101450 Execute(): !SCREENON
2010-01-13 13:36:43 -1539779286 HandlePowerNotifications()
2010-01-13 13:36:43 -1539779286 PBT_TRANSITION
2010-01-13 13:36:43 -1539779286 PBT_TRANSITION POWER_STATE_ON
2010-01-13 13:36:43 -1539779286 PBT_TRANSITION POWER_STATE_PASSWORD
2010-01-13 13:36:43 -1539779286 PBT_TRANSITION POWER_STATE_BACKLIGHTON
2010-01-13 13:36:43 -1541101450 = GSENSOR ORIENTATION MATCH =: 2 numberOk: 1 numbersequence: 1 orientation: 1 Landscape
2010-01-13 13:36:43 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 1 numbersequence: 1 orientation: 1 Landscape
...
2010-01-13 13:36:44 -1541101450 FaceDown XYZ 0.472656,0.218750,-0.843750
2010-01-13 13:36:44 -1541101450 SetOrientation: FaceDown
2010-01-13 13:36:44 -1541101450 =====InCallTweak======IDLE
2010-01-13 13:36:44 -1541101450 Execute(): !IDLE
2010-01-13 13:36:44 -1539779286 HandlePowerNotifications()
2010-01-13 13:36:44 -1539779286 PBT_TRANSITION
2010-01-13 13:36:44 -1539779286 PBT_TRANSITION POWER_STATE_IDLE
2010-01-13 13:36:44 -1539779286 ========================POWER_STATE_IDLE: SCREEN_OFF==========================
2010-01-13 13:36:44 -1539779286 SetScreenOn(false)
2010-01-13 13:36:44 -1539779286 SetBackLightOff(true)
2010-01-13 13:36:44 -1539779286 resumeSeconds POWER_STATE_BACKLIGHTOFF: 308204
2010-01-13 13:36:44 -1539779286 NotificationBackLightOff()
2010-01-13 13:36:44 90457650 ClockWndProc(WM_TIMER): 12
2010-01-13 13:36:44 90457650 NOTIFY_BACKLIGHT_OFF
2010-01-13 13:36:45 -1541101450 = GSENSOR ORIENTATION MATCH =: 2 numberOk: 2 numbersequence: 5 orientation: 5 FaceDown
2010-01-13 13:36:45 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: 2 numbersequence: 5 orientation: 5 FaceDown
...
2010-01-13 13:36:45 -1541101450 Landscape XYZ 1.078125,0.175781,-0.171875
2010-01-13 13:36:45 -1541101450 SetOrientation: Landscape
2010-01-13 13:36:45 -1541101450 =====InCallTweak======SCREENON
2010-01-13 13:36:45 -1541101450 Execute(): !SCREENON
2010-01-13 13:36:45 -1539779286 HandlePowerNotifications()
2010-01-13 13:36:45 -1539779286 PBT_TRANSITION
2010-01-13 13:36:45 -1539779286 PBT_TRANSITION POWER_STATE_ON
2010-01-13 13:36:45 -1539779286 PBT_TRANSITION POWER_STATE_PASSWORD
2010-01-13 13:36:45 -1539779286 PBT_TRANSITION POWER_STATE_BACKLIGHTON
2010-01-13 13:36:45 -1539779286 =========================POWER_STATE_ON============================
2010-01-13 13:36:45 -1539779286 SetBackLightOff(false)
2010-01-13 13:36:45 -1539779286 ======================== Change from screen OFF to screen ON ==============
2010-01-13 13:36:45 -1539779286 SetScreenOn(true)
2010-01-13 13:36:45 -1539779286 IsConnectedCall(true)
2010-01-13 13:36:45 -1541101450 = GSENSOR ORIENTATION MATCH =: 2 numberOk: [B][COLOR=RED]1 numbersequence[/COLOR][/B]: 1 orientation: 1 Landscape
2010-01-13 13:36:45 -1541101450 = GSENSOR ORIENTATION MATCH =: 3 numberOk: [B][COLOR=RED]1 numbersequence[/COLOR][/B]: 1 orientation: 1 Landscape
...
2010-01-13 13:36:46 -1541101450 FaceUp XYZ 0.089844,0.195313,0.910156
2010-01-13 13:36:46 -1541101450 SetOrientation: FaceUp
2010-01-13 13:36:46 -1541101450 =====InCallTweak======SCREENON
2010-01-13 13:36:46 -1541101450 Execute(): !SCREENON
2010-01-13 13:36:46 -1539779286 HandlePowerNotifications()
2010-01-13 13:36:46 -1539779286 PBT_TRANSITION
2010-01-13 13:36:46 -1539779286 PBT_TRANSITION POWER_STATE_ON
2010-01-13 13:36:46 -1539779286 PBT_TRANSITION POWER_STATE_PASSWORD
2010-01-13 13:36:46 -1539779286 PBT_TRANSITION POWER_STATE_BACKLIGHTON
2010-01-13 13:36:46 -1525752318 CTAPIDevice::lineCallback()
2010-01-13 13:36:46 -1525752318 LINE_CALLINFO=(2000, 0, 0)
...

I think, that's why I can't end call by "1->5->1->6" when InCallTweak=1.

Thanks for attempts to understand my problem.

UPD: Sorry, I can't attach log right now and will update some later