[Moziax] Thinstation... another time

Machula Viach machula_vv at vlg-gaz.ru
Tue Aug 22 18:40:46 EDT 2006


it's result after 5 changed line at network_client.c (v1.3 
svn)
1.3
1243 - tmo.tv_sec = 10 => 999999   - to network_client 
wait for start front-end for 10 day (prev - 10 sec too 
small because network client start when thin client load 
(as module at init.d with & at end to not wait for 
console))

916  - tel_close()     => commented
917  - exit(0)         => commented
909  - iaxc_down()     => commented
911  - close(proxiax)  => commented


sample log from thin client:

Setting up network input
ProxIAX network_client waiting on port 9998
Client connection...                               ---- 
here front-end connect
Greeting client with <Hello SVN> now...
Cancelling previous Asterisk Registration 1 !
Connecting....|Looking up pbx.xxxxxxxx.xxx

gui_hide_doing
Connecting...|Connecting to pbx.xxxxxxxx.xxx
gui_hide_doing
Logging in|Logging in xxxxxxxxx '...
gui_hide_doing
d,0,/dev/dsp,63
Apply filters: iaxc_set_filters( 0 )
Status Failed|Permission denied
Calling mozphone:xxxxxx at pbx.xxxxxxxx.xxx/600... 
         ------ calling 600 (asterisk) for echo test
New STATE_EV 6 for call 0
outgoing=4, ringing=0, complete=0, selected=0, busy=0, 
active=2
STATE_EV => 0 not accepted yet...
State event: s,0,not_accepted,600
Ignoring text event t,0,1,Call 0 accepted
New STATE_EV 22 for call 0
outgoing=4, ringing=0, complete=16, selected=0, busy=0, 
active=2
State event: s,0,active,600
Ignoring text event t,22,1,Call 0 answered
No RTT  Rjit    Rlos%   RlosC   Rpkts   Rdel    Rdrop 
  Rooo    Ljit    Llos%  LlosC    Lpkts   Ldel    Ldrop 
  Looo
0: 22   0       0       0       1       40      0       0 
      13      0      0103     64      0       1
Ignoring text event t,108,1,Hanging up call 0 
                               ---- hang up call for 600
New STATE_EV 0 for call 0
outgoing=0, ringing=0, complete=0, selected=0, busy=0, 
active=0
STATE_EV => 0 NOT_active
State event: s,0,not_active,
Cancelling Asterisk Registration 2 ! 
                                        ---- closing 
front-end
Reconnect is impossible, sorry.
Bye...
~~~~~~small delay here [~1 sec]~~~~~~~~~~~~~
Bye...
Setting up network input
ProxIAX network_client waiting on port 9998 
                                 ---- back-end 
(network_client) wait for next connection another 999999 
sec :)


w/o commented lines after first front-end (Moziax at 
Firefox) closed... network_client finishing job.. which at 
a case of terminal is not good.

about PROXIAX_HOST environment variable - i'm figure out 
about automatically set user variable at Windows 2003 
Terminal Server session (to each logged user), to Moziax 
know what backend ip needed to use (i.e. PROXIAX_HOST 
setted to ip address of thin_client)

it's small Windows Host Script (moziax.whs) which placed 
at startup folder at user "all user" "C:\Documents and 
Settings\All Users\Start Menu\Programs\Startup"

-----------------

Set WTS = Wscript.CreateObject("WTSManager.Shell")
Set WSHShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("User")
WshSysEnv("PROXIAX_HOST") =  WTS.MyIPAddress

-------------

which used one non-standart dll (WTSManager.dll - 
http://www.ddmitry.pp.ru/tse/index.html)
Copy the WTSManager.dll in the system32 dir on all of your 
TS/Citrix servers, and register it (regsvr32.exe 
WTSManager.dll)

now if you compile thinstation with additional package 
network_client :) you'll able use VoIP w/o hardphone :)

one not so good deal - you'll need disable sound ability 
"RDesktop_Sound = off" at Thinstation.conf.network
at thin client configuration to network_client work 
smooth.

Thanks for great proggy and very good realisation of idea 
of separation front- and back-end.


More information about the Moziax mailing list