[Asterisk-Users] Spped Dial setup from wiki

Sean Rima thecivvie at fastmail.fm
Sun Aug 28 03:53:28 MST 2005


Hello Asterisk-Users,

  I copied the speed-dial set at the wiki to my extensions_custom and
  included it, the code is:

; Speed dial application. This will store 99 speed dials in the bins 01 - 99
; The database family is called speed and the varible is called spnum

;Storing 11 digit numbers
exten => _*#XXXXXXXXXXXXX,1, DBput(speed/${EXTEN:2:2}=${EXTEN:-11:11})
exten => _*#XXXXXXXXXXXXX,2, Playback(val_sp)
exten => _*#XXXXXXXXXXXXX,3, Hangup

;Reading the stored number back.
exten => _*1XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the required bin number
exten => _*1XX,2, Playback(currently)
exten => _*1XX,3, SayNumber(${EXTEN:2:2})
exten => _*1XX,4, Playback(is-set-to)
exten => _*1XX,5, SayDigits(${spnum})
exten => _*1XX,6, Hangup

;Retreiving numbers for alog dialing
exten => _*9XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the required bin number
exten => _*9XX,2, Dial(${TRUNK1}/${spnum})
exten => _*9XX,3, Congestion
;Retreiving numbers for iax dialing
exten => _*8XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the required bin number
exten => _*8XX,2, Dial(${TRUNKiax}/44${spnum:${TRUNKMSD}})
exten => _*8XX,3, Congestion
;Retreiving numbers for alog Phonecoop dialing
exten => _*7XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the required bin number
exten => _*7XX,2, Dial(${TRUNK1}/184088${spnum})
exten => _*7XX,3, Congestion
  

If I do *101 from the extension I get a recording saying the number
stored at 01 is "". NP there is nothing there. But if I do *# and a
number I get a 484 on the phone, nothing shows in the debug log.

Can anyone see anything wrong here

Sean
-- 
+---------------------------------------------------+
|VOIP= FreeWorldDial: 689482 VOIPBUSTER: thecivvie  |
|GPG Key http://thecivvie.fastmail.fm/thecivvie.asc |
+---------------------------------------------------+
Strange things happen under the midnight sun
when Men and Dogs go hunting for gold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1798 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050828/7eb31dda/smime.bin


More information about the asterisk-users mailing list