There isn't much documentation on adsi, but I called NETXUSA (the vendor
of my 480e) and they helped me along.
My experience:
1. I really had no experience with ADSI so I had (probably still have)
some misconceptions on how the configuration is loaded onto the phone.
2. I set the following in my /etc/asterisk/asterisk.adsi (most of this
is the stock asterisk.adsi script):
; ---------------------------------------------------------
; Asterisk default ADSI script
; ---------------------------------------------------------;
; Begin with the preamble requirements
;
DESCRIPTION "Asterisk PBX" ; Name of vendor
VERSION 0x00 ; Version of stuff
;SECURITY "_AST" ; Security code
SECURITY 0x9BDBF7AC ; Security code
FDN 0x0000000F ; Descriptor number
In an ADSI script for the 2nd Slot:
;
; Asterisk default ADSI script
;
;
; Begin with the preamble requirements
;
DESCRIPTION "Asterisk PBX" ; Name of vendor
VERSION 0x00 ; Version of stuff
;SECURITY "_AST" ; Security code
SECURITY 0x78921D49 ; Security code
FDN 0x85EFD9DA ; Descriptor number
;
; Flags
;
FLAG "nocallwaiting"
;
; Predefined strings
;
DISPLAY "titles" IS "-- My PBX --"
DISPLAY "talkingto" IS "Call active." JUSTIFY LEFT
DISPLAY "callname" IS "$Call1p" JUSTIFY LEFT
DISPLAY "callnum" IS "$Call1s" JUSTIFY LEFT
DISPLAY "incoming" IS "Incoming call!" JUSTIFY LEFT
DISPLAY "ringing" IS "Calling... " JUSTIFY LEFT
DISPLAY "callended" IS "Call ended." JUSTIFY LEFT
DISPLAY "missedcall" IS "Missed call." JUSTIFY LEFT
DISPLAY "busy" IS "Busy." JUSTIFY LEFT
DISPLAY "reorder" IS "Reorder." JUSTIFY LEFT
DISPLAY "cwdisabled" IS "Callwait disabled"
DISPLAY "empty" IS "asdf"
;
; Begin soft key definitions
;
KEY "callfwd" IS "CallFwd" OR "Call Forward"
OFFHOOK
VOICEMODE
WAITDIALTONE
SENDDTMF "*60"
GOTO "offHook"
ENDKEY
KEY "vmail_OH" IS "VMail" OR "Voicemail"
OFFHOOK
VOICEMODE
WAITDIALTONE
SENDDTMF "8500"
ENDKEY
KEY "vmail" IS "VMail" OR "Voicemail"
SENDDTMF "8500"
ENDKEY
KEY "backspace" IS "BackSpc" OR "Backspace"
BACKSPACE
ENDKEY
KEY "cwdisable" IS "CWDsble" OR "Disable Call
Wait"
SENDDTMF "*70"
SETFLAG "nocallwaiting"
SHOWDISPLAY "cwdisabled" AT 4
TIMERCLEAR
TIMERSTART 1
ENDKEY
KEY "cidblock" IS "CIDBlk" OR "Block Callerid"
SENDDTMF "*67"
SETFLAG "nocallwaiting"
ENDKEY
;
; Begin main subroutine
;
SUB "main" IS
IFEVENT NEARANSWER THEN
CLEAR
SHOWDISPLAY "titles" AT 1 NOUPDATE
SHOWDISPLAY "talkingto" AT 2 NOUPDATE
SHOWDISPLAY "callname" AT 3
SHOWDISPLAY "callnum" AT 4
GOTO "stableCall"
ENDIF
IFEVENT OFFHOOK THEN
CLEAR
CLEARFLAG "nocallwaiting"
CLEARDISPLAY
SHOWDISPLAY "titles" AT 1
SHOWKEYS "vmail"
SHOWKEYS "cidblock"
SHOWKEYS "cwdisable" UNLESS "nocallwaiting"
GOTO "offHook"
ENDIF
IFEVENT IDLE THEN
CLEAR
SHOWDISPLAY "titles" AT 1
SHOWKEYS "vmail_OH"
ENDIF
IFEVENT CALLERID THEN
CLEAR
; SHOWDISPLAY "titles" AT 1 NOUPDATE
; SHOWDISPLAY "incoming" AT 2 NOUPDATE
SHOWDISPLAY "callname" AT 3 NOUPDATE
SHOWDISPLAY "callnum" AT 4
ENDIF
IFEVENT RING THEN
CLEAR
SHOWDISPLAY "titles" AT 1 NOUPDATE
SHOWDISPLAY "incoming" AT 2
ENDIF
IFEVENT ENDOFRING THEN
SHOWDISPLAY "missedcall" AT 2
CLEAR
SHOWDISPLAY "titles" AT 1
SHOWKEYS "vmail_OH"
ENDIF
IFEVENT TIMER THEN
CLEAR
SHOWDISPLAY "empty" AT 4
ENDIF
ENDSUB
SUB "offHook" IS
IFEVENT FARRING THEN
CLEAR
SHOWDISPLAY "titles" AT 1 NOUPDATE
SHOWDISPLAY "ringing" AT 2 NOUPDATE
SHOWDISPLAY "callname" at 3 NOUPDATE
SHOWDISPLAY "callnum" at 4
ENDIF
IFEVENT FARANSWER THEN
CLEAR
SHOWDISPLAY "talkingto" AT 2
GOTO "stableCall"
ENDIF
IFEVENT BUSY THEN
CLEAR
SHOWDISPLAY "titles" AT 1 NOUPDATE
SHOWDISPLAY "busy" AT 2 NOUPDATE
SHOWDISPLAY "callname" at 3 NOUPDATE
SHOWDISPLAY "callnum" at 4
ENDIF
IFEVENT REORDER THEN
CLEAR
SHOWDISPLAY "titles" AT 1 NOUPDATE
SHOWDISPLAY "reorder" AT 2 NOUPDATE
SHOWDISPLAY "callname" at 3 NOUPDATE
SHOWDISPLAY "callnum" at 4
ENDIF
ENDSUB
SUB "stableCall" IS
IFEVENT REORDER THEN
SHOWDISPLAY "callended" AT 2
ENDIF
ENDSUB
; ---------------------------------------------------------
; End Asterisk default ADSI script
; ---------------------------------------------------------;
3. I only had to tune the SENDDTMF "8500" values to properly send it
to
the right voicemain extention
4. Added the following to my /etc/asterisk/extensions.conf file in a
local only context so that the phone could only be programmed locally:
[adsi-program]
exten => 9666,1,Authenticate(1234)
exten => 9666,2,ADSIProg(asterisk.adsi)
exten => 9666,3,Hangup
5. Called extension 9666 from the 480e. It asks for my password and then
I am off to the races.
Good luck!
________________________________
From: asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Martin
Keding
Sent: Wednesday, July 28, 2004 5:44 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Aastra 480e phone ADSI config
Greetings
Does anyone have a ADSI config file for an Astra (Sayson) 480e
phone. I am using the sample asterisk.adsi file but if anyone already
has a modified working file that they would like to share, could you let
me know.
Thanks
Martin
Thanks for your input I managed to get what you suggested going last night and it works fine. I also got a note from Sayson on Commedian Mail. Once I did what they suggested, I got a full Voice mail interface on my phone. Pretty cool!
Couple of things.... 1) My phone seemed to either be pre-programmed with the Comedian mail scripts or asterisk did not need to be patched for my phone to have functional Comedian vmail access screens. I have however noticed that a number of the Comedian vmail screens are incomplete (saying things such as "Options Menu Not Done". I assume the Comedian vmail ADSI scripts are burned into the phone (by manufacturer) or something similar because I have not been able to find any Comedian scripts within Asterisk source. I wonder if there are more current Comedian vmail ADSI scripts available? 2) The Asterisk wiki is noticeably absent in any ADSI information. I would like enjoy working on these ADSI scripts with you (and others) for the 480e. Maybe we can get these added to the Asterisk CVS tree (maybe something like /etc/asterisk/aastra480e.adsi). Unfortunately, my supplier really did not have any documentation other that what was on their web site (very little). Let me know. -- Steve Woolley IT Manager ADS Telecom, Inc. 59 Skyline Drive Suite 1250 Lake Mary, Florida 32746 Phone: (407)682-6226 x1110 Fax: (407)682-3455 IAXtel: (700)682-6226 x1110 Cell: (321)229-5311 swoolley@adstelecom.com www.adstelecom.com> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Martin Keding > Sent: Thursday, July 29, 2004 11:04 AM > To: asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] Aastra 480e phone ADSI config > > Thanks for your input > > I managed to get what you suggested going last night and it > works fine. I also got a note from Sayson on Commedian Mail. > Once I did what they suggested, I got a full Voice mail > interface on my phone. Pretty cool! > > From Sayson > If you are using ADSI phones and trying to access > Commedian Mail, CM tries to do an FDM download (it's own ADSI > script) to the phone first. If you don't change the FDN and > secur. code in the CM app, you will get and error. > > In the "app_voicemail.c" file (for me it was located in > /usr/src/asterisk/apps ), the "adsi_begin_download" is evoked > as follows: > if (adsi_begin_download(chan, addesc, adapp, adsec, > adver)) Where "addapp (fdn) and "adsec" are hardcoded as follows: > static char *adapp = "CoMa"; > static char *adsec = "_AST"; > > They need to be changed to the correct FDN and Security > numbers for the slot you wish to download. So you don't > overwrite your own programming, use slot > 3 or four. > > (I used slot 3 for my sayson 480e) > static char *adapp = "\xFB\xC6\x45\x0C" > static char *adsec = "\x9B\x60\x94\x30" > > Then recompile and press the Vmail button on your phone. It > should automatically download the script and then you have a > bunch of new buttons to play with! > > On a side note, I am tring to enhance the ADSI programing in > the orignal script. Did your supplier give you any help with > additional commands etc. I have not found any docs. So far. > > Martin > > > -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Steve Woolley > Sent: Thursday, July 29, 2004 9:14 AM > To: asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] Aastra 480e phone ADSI config > > > There isn't much documentation on adsi, but I called NETXUSA > (the vendor of my 480e) and they helped me along. > > My experience: > > 1. I really had no experience with ADSI so I had (probably > still have) some misconceptions on how the configuration is > loaded onto the phone. > > 2. I set the following in my /etc/asterisk/asterisk.adsi > (most of this is the stock asterisk.adsi script): > > <snip> > > 3. I only had to tune the SENDDTMF "8500" values to properly > send it to the right voicemain extention > > 4. Added the following to my /etc/asterisk/extensions.conf > file in a local only context so that the phone could only be > programmed locally: > > [adsi-program] > exten => 9666,1,Authenticate(1234) > exten => 9666,2,ADSIProg(asterisk.adsi) > exten => 9666,3,Hangup > > 5. Called extension 9666 from the 480e. It asks for my > password and then I am off to the races. > > Good luck! > > ________________________________ > > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Martin Keding > Sent: Wednesday, July 28, 2004 5:44 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Aastra 480e phone ADSI config > > > Greetings > > Does anyone have a ADSI config file for an Astra > (Sayson) 480e phone. I am using the sample asterisk.adsi file > but if anyone already has a modified working file that they > would like to share, could you let me know. > > Thanks > Martin > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >