[Asterisk-Dev] Advanced ADSI scripts

alex at pilosoft.com alex at pilosoft.com
Fri Jun 25 18:38:32 MST 2004


Actually, I don't see anything in there that asterisk compiler won't 
support...Maybe I'm missing something?

-alex

> You are going to need to add support for more of the
> full version 2 adsi spec to the asterisk parser/compiler
> 
> For example this is for the Altigen system with AAstra 390
> you can see from this what a small subset of the adsi spec
> the  asterisk parse/compiler supports

> 
> 
> ;--------------------------------------------
> ;  Output Settings
> ;--------------------------------------------
> CPEType=NORTEL390
> OutputFormat=ALTIGEN
> 
> Volume=50
> Margin=400
> CASTone=120
> CPEAck=Yes
> Disconnect=Yes
> Expanded=Yes
> 
> ;--------------------------------------------
> ;  Line Definitions
> ;--------------------------------------------
> DefineLine Line01=Normal,Center,WrapOFF,
> DefineLine Line02=Normal,Center,WrapOFF,AltiTouch Plus
> DefineLine Line03=Normal,Center,WrapOFF,
> DefineLine Line04=Normal,Center,WrapOFF,
> DefineLine Line05=Normal,Center,WrapOFF,V 2.3.2.11.28
> DefineLine Line06=Normal,Center,WrapOFF,Powered by
> DefineLine Line07=Normal,Center,WrapOFF,STL Software
> DefineLine Line08=Normal,Center,WrapOFF,www.sayson.com
> DefineLine Line09=Normal,Center,WrapOFF,
> DefineLine Line10=Normal,Center,WrapOFF,
> DefineLine Line11=Normal,Center,WrapOFF,
> DefineLine Line12=Normal,Center,WrapOFF,
> DefineLine Line13=Normal,Center,WrapOFF,(2 of 2)
> DefineLine Line14=Normal,Left,WrapOFF,Inbound Call:
> DefineLine Line15=Normal,Left,WrapOFF,Connected to:
> DefineLine Line16=Normal,Left,WrapON,Call Waiting...<TAB>
> DefineLine Line17=Normal,Left,WrapON,$Call1s<TAB>$Call1p
> DefineLine Line18=Normal,Center,WrapOFF,Enter 2 Digit Park #
> DefineLine Line19=Normal,Center,WrapOFF,Enter Extension
> DefineLine Line20=Normal,Center,WrapOFF,and press DONE
> DefineLine Line21=Normal,Center,WrapON,Ringing & Parked<TAB>Call Pickup
> DefineLine Line22=Normal,Center,WrapON,Extension Management<TAB>Options
> DefineLine Line23=Normal,Center,WrapON,More Extension Mgmnt<TAB>Options
> DefineLine Line24=Normal,Center,WrapOFF,Call Forwarding
> DefineLine Line25=Normal,Center,WrapOFF,Change Greeting
> DefineLine Line26=Normal,Center,WrapOFF,Station Login
> DefineLine Line27=Normal,Center,WrapOFF,Station Logout
> DefineLine Line28=Normal,Center,WrapOFF,Extension Status
> DefineLine Line29=Normal,Center,WrapOFF,Voicemail
> DefineLine Line30=Normal,Center,WrapOFF,Workgroup Options
> DefineLine Line31=Normal,Center,WrapOFF,WorkGroup Login
> DefineLine Line32=Normal,Center,WrapOFF,WorkGroup Logout
> DefineLine Line33=Normal,Center,WrapOFF,Workgroup Ready
> DefineLine Line34=Normal,Center,WrapOFF,WorkGroup Wait
> DefineLine Line35=Normal,Center,WrapOFF,Speed Dial
> DefineLine Line36=Normal,Center,WrapOFF,Dial Options
> DefineLine Line37=Normal,Center,WrapOFF,Dial by Name
> DefineLine Line38=Normal,Center,WrapOFF,Last Number Dialed
> DefineLine Line39=Normal,Center,WrapOFF,Dial Last Caller
> DefineLine Line40=Normal,Center,WrapOFF,Page through Trunk
> DefineLine Line41=Normal,Center,WrapOFF,Page over Audio
> DefineLine Line42=Normal,Center,WrapOFF,Hands Free Options
> DefineLine Line43=Normal,Center,WrapOFF,Intercom Mode
> DefineLine Line44=Normal,Center,WrapOFF,Dialtone Mode
> DefineLine Line45=Normal,Center,WrapON,Enter Number<TAB>Or Choose an Option
> DefineLine Line46=Normal,Center,WrapOFF,Enter Extension #
> DefineLine Line47=Normal,Center,WrapON,Enter 2 Digit<TAB>Autoattendant
> Number
> DefineLine Line48=Normal,Center,WrapOFF,AutoAttendant Number
> DefineLine Line49=Normal,Center,WrapOFF,In Conference
> DefineLine Line50=Normal,Center,WrapOFF,Manual Operation
> DefineLine Line51=Normal,Left,WrapOFF,  Please Wait ...
> DefineLine Line52=Normal,Center,WrapOFF,Demo
> DefineLine Line53=Normal,Left,WrapOFF,Paging Options
> DefineLine Line54=Normal,Center,WrapOFF,Park Call
> DefineLine Line55=Normal,Center,WrapOFF,Park and Page
> DefineLine Line56=Normal,Center,WrapOFF,Password Menu
> DefineLine Line57=Normal,Center,WrapON,Enter Number and<TAB>press Conf.In
> DefineLine Line58=Normal,Center,WrapOFF,Enter Passcode
> DefineLine Line59=Normal,Left,WrapOFF,Intercom Call:
> DefineLine Line60=Normal,Center,WrapOFF,Directory Services
> DefineLine Line61=Normal,Center,WrapON,Call is on Hold<TAB>Do not hang up
> DefineLine Line62=Normal,Center,WrapOFF,Use Back to Retrieve
> 
> ;--------------------------------------------
> ;  SoftKeys
> ;--------------------------------------------
> 
> ;--------------------------------------------
> ;   Answer
> ;--------------------------------------------
> SoftKey=SK_01
>    Label=Answer
>    SetHookState OffHook
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Flash
> ;--------------------------------------------
> SoftKey=SK_02
>    Label=Flash
>    LongLabel=Flash/Tsfr/Conf
>    SetState 3
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line50,2,3
>    SetHookState Link
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,SK_02,Normal,SK_03,Normal,<NULL>
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Hangup
> ;--------------------------------------------
> SoftKey=SK_03
>    Label=Hangup
>    SetState 1
>    SetHookState OnHook
>    Delay 25
>    JumpTo #00
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   OK
> ;   Button 4 - Corp Branding verification OK button
> ;--------------------------------------------
> SoftKey=SK_04
>    Label=OK
>    String 021003021128#
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   FlshAns
> ;--------------------------------------------
> SoftKey=SK_05
>    Label=FlshAns
>    SetHookState Link
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Back to Idle Menu
> ;--------------------------------------------
> SoftKey=SK_06
>    Label=Back
>    SetState 1
>    SetInfoFlags 3
>    JumpTo #00
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Back to Idle Menu 2
> ;--------------------------------------------
> SoftKey=SK_07
>    Label=Back
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line02,2,1
>    SetDisplay Line13,3,3
>    SetSoftKey
> 0,SK_27,Normal,<NULL>,SK_48,Normal,SK_36,Normal,<NULL>,SK_06,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Back to Connected State (Flash)
> ;--------------------------------------------
> SoftKey=SK_08
>    Label=Back
>    SetState 1
>    SetHookState Link
>    SetInfoFlags 3
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   BkSpc
> ;--------------------------------------------
> SoftKey=SK_09
>    Label=BkSpc
>    Keycode Backspace
>    Keycode=Voice
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   VMail
> ;   Check Voicemail
> ;--------------------------------------------
> SoftKey=SK_10
>    Label=VMail
>    SetState 3
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line29,2,3
>    SetSoftKey 0,SK_11,Normal,<NULL>,<NULL>,SK_12,Normal,<NULL>,SK_06,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   VMail+
> ;--------------------------------------------
> SoftKey=SK_11
>    Label=VMail+
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line29,2,3
>    SetHookState OffHook
>    Delay 50
>    String #9401
>    ClearCB 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Regular
> ;--------------------------------------------
> SoftKey=SK_12
>    Label=Regular
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line58,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey 0,SK_09,Normal,<NULL>,<NULL>,SK_13,Normal,<NULL>,SK_06,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Char Coll for VM reg SK 11 (was 12)
> ;--------------------------------------------
> SoftKey=SK_13
>    Label=Done
>    SetState 3
>    SetHookState OffHook
>    Delay 50
>    String ##
>    Keycode Encoded
>    Keycode SendChars
>    Keycode ClearChars
>    ClearCB 1
>    ClearCB 2
>    SetInfoFlags 3
>    JumpTo VMailRegular
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   DND
> ;   Do Not Disturb
> ;--------------------------------------------
> SoftKey=SK_14
>    Label=DND
>    SetHookState OffHook
>    Delay 50
>    String #33
>    ClearCB 2
>    Delay 200
>    Delay 200
>    Delay 200
>    SetHookState OnHook
>    SetState 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Pickup
> ;--------------------------------------------
> SoftKey=SK_15
>    Label=Pickup
>    SetState 3
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line21,2,3
>    SetSoftKey
> 0,SK_22,Normal,SK_19,Normal,SK_18,Normal,SK_23,Normal,SK_25,Normal,SK_06,Nor
> mal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Intrcom
> ;--------------------------------------------
> SoftKey=SK_16
>    Label=Intrcom
>    SetState 3
>    SetInfoFlags 11
>    JumpTo Intercom
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Done Intercom
> ;--------------------------------------------
> SoftKey=SK_17
>    Label=Done
>    SetState 4
>    SetHookState OffHook
>    Delay 50
>    String #93
>    Keycode SendChars
>    Keycode ClearChars
>    ClearCB 2
>    SetInfoFlags 3
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   SysPrk+
> ;--------------------------------------------
> SoftKey=SK_18
>    Label=SysPrk+
>    SetHookState OffHook
>    Delay 50
>    String #9402
>    ClearCB 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   SysPrk
> ;--------------------------------------------
> SoftKey=SK_19
>    Label=SysPrk
>    LongLabel=System Park
>    ClearDisplay
>    SetState 3
>    SetDisplay Line18,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey 0,SK_09,Normal,<NULL>,<NULL>,SK_20,Normal,<NULL>,SK_21,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Done SysRetrieve
> ;--------------------------------------------
> SoftKey=SK_20
>    Label=Done
>    SetHookState OffHook
>    Delay 50
>    String #41
>    Keycode SendChars
>    Keycode ClearChars
>    ClearCB 2
>    SetInfoFlags 3
>    SetState 4
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Cancel Syspark
> ;--------------------------------------------
> SoftKey=SK_21
>    Label=Back
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line21,2,3
>    SetSoftKey
> 0,SK_22,Normal,SK_19,Normal,SK_18,Normal,SK_23,Normal,SK_25,Normal,SK_06,Nor
> mal
>    SetInfoFlags 3
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   AnyRing
> ;   Answer any call ringing
> ;--------------------------------------------
> SoftKey=SK_22
>    Label=AnyRing
>    LongLabel=Answer System
>    SetState 4
>    SetHookState OffHook
>    Delay 50
>    String #30
>    ClearCB 2
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ExtRing
> ;   Answer Station
> ;--------------------------------------------
> SoftKey=SK_23
>    Label=ExtRing
>    ClearDisplay
>    SetState 3
>    SetDisplay Line19,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey 0,SK_09,Normal,<NULL>,<NULL>,SK_24,Normal,<NULL>,SK_21,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Done ExtRing
> ;--------------------------------------------
> SoftKey=SK_24
>    Label=Done
>    SetState 4
>    SetHookState OffHook
>    Delay 50
>    String #29
>    Keycode SendChars
>    Keycode ClearChars
>    ClearCB 2
>    SetInfoFlags 3
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ExtPrk
> ;   Extension Park Pickup
> ;--------------------------------------------
> SoftKey=SK_25
>    Label=ExtPrk
>    ClearDisplay
>    SetState 3
>    SetDisplay Line19,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey 0,SK_09,Normal,<NULL>,<NULL>,SK_26,Normal,<NULL>,SK_21,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Done Ext Park Pickup
> ;--------------------------------------------
> SoftKey=SK_26
>    Label=Done
>    SetState 4
>    SetHookState OffHook
>    Delay 50
>    String #31
>    Keycode SendChars
>    Keycode ClearChars
>    ClearCB 2
>    SetInfoFlags 3
>    JumpTo #00
>    SetEvent 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ExtMgmt
> ;   Extension Management
> ;--------------------------------------------
> SoftKey=SK_27
>    Label=ExtMgmt
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line22,2,3
>    SetSoftKey
> 0,SK_28,Normal,SK_29,Normal,SK_30,Normal,SK_31,Normal,SK_32,Normal,SK_07,Nor
> mal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   CallFwd
> ;   Call Forward
> ;--------------------------------------------
> SoftKey=SK_28
>    Label=CallFwd
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line24,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #36
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Greetng
> ;--------------------------------------------
> SoftKey=SK_29
>    Label=Greetng
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line25,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Login
> ;   Station Login
> ;--------------------------------------------
> SoftKey=SK_30
>    Label=Login
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line26,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #27
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   LogOut
> ;   Station Log Out
> ;--------------------------------------------
> SoftKey=SK_31
>    Label=LogOut
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line27,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #26
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   More
> ;   More Extension Mgmnt
> ;--------------------------------------------
> SoftKey=SK_32
>    Label=More
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line23,2,3
>    SetSoftKey 0,SK_33,Normal,SK_34,Normal,<NULL>,<NULL>,<NULL>,SK_35,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Status
> ;--------------------------------------------
> SoftKey=SK_33
>    Label=Status
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line28,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #22
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Passwrd
> ;--------------------------------------------
> SoftKey=SK_34
>    Label=Passwrd
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line56,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #28
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Back to Ext Management
> ;--------------------------------------------
> SoftKey=SK_35
>    Label=Back
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line22,2,3
>    SetSoftKey
> 0,SK_28,Normal,SK_29,Normal,SK_30,Normal,SK_31,Normal,SK_32,Normal,SK_07,Nor
> mal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   WorkGrp
> ;   WorkGroup SubMenu
> ;--------------------------------------------
> SoftKey=SK_36
>    Label=WorkGrp
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line30,2,3
>    SetSoftKey
> 0,SK_37,Normal,SK_38,Normal,SK_39,Normal,SK_40,Normal,<NULL>,SK_07,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   WGLogin
> ;   Workgroup Login
> ;--------------------------------------------
> SoftKey=SK_37
>    Label=WGLogin
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line31,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #54
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   WGLgOut
> ;   Workgroup Logout
> ;--------------------------------------------
> SoftKey=SK_38
>    Label=WGLgOut
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line32,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #56
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Ready
> ;--------------------------------------------
> SoftKey=SK_39
>    Label=Ready
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line33,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #90
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Wait
> ;--------------------------------------------
> SoftKey=SK_40
>    Label=Wait
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line34,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #91
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   More
> ;   To Idle Menu 2
> ;--------------------------------------------
> SoftKey=SK_41
>    Label=More
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line02,2,1
>    SetDisplay Line13,3,3
>    SetSoftKey
> 0,SK_27,Normal,<NULL>,SK_48,Normal,SK_36,Normal,<NULL>,SK_06,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Dial
> ;--------------------------------------------
> SoftKey=SK_42
>    Label=Dial
>    SetState 3
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line36,2,3
>    SetSoftKey
> 0,SK_43,Normal,SK_44,Normal,SK_45,Normal,SK_47,Normal,SK_46,Normal,SK_06,Nor
> mal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ByName
> ;--------------------------------------------
> SoftKey=SK_43
>    Label=ByName
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line37,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #34
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   LastNum
> ;--------------------------------------------
> SoftKey=SK_44
>    Label=LastNum
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line38,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #99
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   LastClr
> ;--------------------------------------------
> SoftKey=SK_45
>    Label=LastClr
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line39,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #69
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   DirSrv+
> ;   Directory Services SDC
> ;--------------------------------------------
> SoftKey=SK_46
>    Label=DirSrv+
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line60,2,3
>    SetHookState OffHook
>    Delay 50
>    String #9404
>    ClearCB 2
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   SySpeed
> ;   Speed Dial
> ;--------------------------------------------
> SoftKey=SK_47
>    Label=SySpeed
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line35,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #88
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Paging
> ;--------------------------------------------
> SoftKey=SK_48
>    Label=Paging
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line53,2,3
>    SetSoftKey 0,SK_50,Normal,SK_49,Normal,<NULL>,<NULL>,<NULL>,SK_07,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   TrkPage
> ;--------------------------------------------
> SoftKey=SK_49
>    Label=TrkPage
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line40,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #45
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   AudPage
> ;--------------------------------------------
> SoftKey=SK_50
>    Label=AudPage
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line41,2,3
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
>    SetHookState OffHook
>    Delay 50
>    String #44
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Transfr
> ;--------------------------------------------
> SoftKey=SK_51
>    Label=Transfr
>    SetState 3
>    SetHookState Link
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line45,2,3
>    SetSoftKey
> 0,SK_57,Normal,SK_58,Normal,<NULL>,<NULL>,SK_03,Normal,SK_08,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Hold
> ;   Park Menu
> ;--------------------------------------------
> SoftKey=SK_52
>    Label=Hold
>    SetState 3
>    SetHookState Link
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line61,2,1
>    SetDisplay Line62,3,3
>    SetSoftKey 0,SK_53,Normal,<NULL>,SK_54,Normal,<NULL>,<NULL>,SK_08,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   SysPrk
> ;   System Park
> ;--------------------------------------------
> SoftKey=SK_53
>    Label=SysPrk
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line54,2,3
>    String #41
>    SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ExtPark
> ;--------------------------------------------
> SoftKey=SK_54
>    Label=ExtPark
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line46,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey
> 0,SK_09,Normal,<NULL>,<NULL>,SK_55,Normal,SK_03,Normal,SK_08,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Ext Park
> ;--------------------------------------------
> SoftKey=SK_55
>    Label=Done
>    String #31
>    Keycode SendChars
>    Keycode ClearChars
>    SetInfoFlags 3
>    SetHookState OnHook
>    SetState 1
>    JumpTo #00
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Conf
> ;   Conference Menu
> ;--------------------------------------------
> SoftKey=SK_56
>    Label=Conf
>    SetState 3
>    SetHookState Link
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line57,2,3
>    SetSoftKey 0,SK_60,Normal,<NULL>,<NULL>,<NULL>,<NULL>,SK_08,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   ExtVM
> ;--------------------------------------------
> SoftKey=SK_57
>    Label=ExtVM
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line46,2,1
>    SetDisplay Line20,3,3
>    SetSoftKey
> 0,SK_09,Normal,<NULL>,<NULL>,SK_59,Normal,SK_03,Normal,SK_08,Normal
>    SetInfoFlags 11
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   VMSystm
> ;--------------------------------------------
> SoftKey=SK_58
>    Label=VMSystm
>    String #40
>    SetHookState OnHook
>    SetState 1
>    JumpTo #00
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Done
> ;   Done VMail Xfer
> ;--------------------------------------------
> SoftKey=SK_59
>    Label=Done
>    String ##
>    Keycode SendChars
>    Keycode ClearChars
>    SetInfoFlags 3
>    SetHookState OnHook
>    SetState 1
>    JumpTo #00
>    SetEvent 1
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Conf.In
> ;--------------------------------------------
> SoftKey=SK_60
>    Label=Conf.In
>    String #
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line49,2,3
>    SetSoftKey 0,SK_61,Normal,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   AddConf
> ;--------------------------------------------
> SoftKey=SK_61
>    Label=AddConf
>    SetHookState Link
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line57,2,3
>    SetSoftKey 0,SK_60,Normal,<NULL>,<NULL>,<NULL>,SK_03,Normal,SK_62,Normal
> EndSoftKey
> 
> 
> ;--------------------------------------------
> ;   Back
> ;   Back to Conf from AddConf
> ;--------------------------------------------
> SoftKey=SK_62
>    Label=Back
>    SetHookState Link
>    ClearDisplay
>    SetDisplay NULL,0,0
>    SetDisplay Line49,1,3
>    SetSoftKey 0,SK_61,Normal,<NULL>,<NULL>,<NULL>,SK_03,Normal,<NULL>
> EndSoftKey
> 
> 
> 
> ;--------------------------------------------
> ; Primary Script
> ;--------------------------------------------
> 
>    OnEvent Answer
>       SetState 1
>       SetTimer Clear
>       SetEvent 2
>    EndEvent
> 
>    OnEvent NormalRinging
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line14,1,3
>       SetSoftKey 0,SK_01,Normal
>       SetState 1
>    EndEvent
> 
>    OnEvent CustomEvent1,1
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line01,1,1
>       SetDisplay Line02,2,1
>       SetDisplay Line03,3,1
>       SetDisplay Line04,4,1
>       SetDisplay Line05,5,1
>       SetDisplay Line06,6,1
>       SetDisplay Line07,7,1
>       SetDisplay Line08,8,3
>       SetSoftKey
> 0,SK_15,Normal,SK_16,Normal,SK_42,Normal,SK_10,Normal,SK_14,Normal,SK_41,Nor
> mal
>       SetState 4
>    EndEvent
> 
>    OnEvent CustomEvent2,1|4
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line15,2,1
>       SetDisplay Line17,3,3
>       SetSoftKey
> 0,SK_51,Normal,SK_52,Normal,SK_56,Normal,SK_02,Normal,SK_03,Normal,SK_05,Nor
> mal
>    EndEvent
> 
>    OnEvent Pickup,1
>       SetTimer Clear
>       SetEvent 1
>    EndEvent
> 
>    OnEvent SelectService
>       SetState 1
>       SetTimer Clear
>       SetEvent 1
>    EndEvent
> 
>    OnEvent CallerID
>       SetState 5
>       SetTimer Start,2
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line14,2,1
>       SetDisplay Line17,3,3
>       SetSoftKey 0,SK_01,Normal
>    EndEvent
> 
>    OnEvent EndofRinging
>       SetTimer Clear
>       SetState 1
>       SetEvent 1
>    EndEvent
> 
>    OnEvent FarEndRinging
>       SetEvent 2
>    EndEvent
> 
>    OnEvent FarEndAnswer
>       SetEvent 2
>    EndEvent
> 
>    OnEvent FarEndBusy
>       SetEvent 2
>    EndEvent
> 
>    OnEvent VMWI,5
>       SetTimer Clear
>       SetDisplay Line59,2,3
>       SetState 1
>       SetHookState OffHook
>       SetEvent 2
>    EndEvent
> 
>    OnEvent Timer
>       SetState 1
>    EndEvent
> 
> 
> ;--------------------------------------------
> ;   VMailRegular
> ;   Regular12
> ;--------------------------------------------
> Subscript VMailRegular
> 
>    ; Vmail Regular Branch
>    OnEvent CustomEvent1
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line29,2,3
>       SetSoftKey 0,<NULL>,<NULL>,<NULL>,<NULL>,SK_03,Normal
>    EndEvent
> 
> EndSubscript
> 
> ;--------------------------------------------
> ;   Intercom
> ;--------------------------------------------
> Subscript Intercom
> 
>    OnEvent CustomEvent1
>       ClearDisplay
>       SetDisplay NULL,0,0
>       SetDisplay Line19,2,1
>       SetDisplay Line20,3,3
>       SetSoftKey
> 0,SK_09,Normal,<NULL>,<NULL>,SK_17,Normal,<NULL>,SK_06,Normal
>    EndEvent
> 
> EndSubscript
> 
> ----- Original Message -----
> From: <alex at pilosoft.com>
> To: <asterisk-dev at lists.digium.com>
> Sent: Friday, June 25, 2004 6:15 AM
> Subject: [Asterisk-Dev] Advanced ADSI scripts
> 
> 
> > Has anyone tried to develop/developed more advanced ADSI scripts/chan_zap
> > additions that would, for example, "simulate" multiple line appearances
> > (i.e. softkey to switch between pending calls, softkeys to conference
> > calls, softkey to put on hold (with MOH)), etc?
> >
> > I'm about to embark on this project, but if anyone has done something like
> > this before, it'd be appreciated.
> >
> > -alex
> >
> >
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 




More information about the asterisk-dev mailing list