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
Hello Sean, Sunday, August 28, 2005, 11:53:28 AM, you wrote:> 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 numbersexten =>> _*#XXXXXXXXXXXXX,1, DBput(speed/${EXTEN:2:2}=${EXTEN:-11:11}) exten =>> _*#XXXXXXXXXXXXX,2, Playback(val_sp) exten =>> _*#XXXXXXXXXXXXX,3, Hangup It seems to be 2 that is the problem. I discovered that the keys are being saved okay but I cannot get the playback to work at storage time 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/3b39306c/smime.bin
Hello Sean, Sunday, August 28, 2005, 1:38:42 PM, you wrote:> Hello Sean,> Sunday, August 28, 2005, 11:53:28 AM, you wrote:>> 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 numbersexten =>>> _*#XXXXXXXXXXXXX,1, DBput(speed/${EXTEN:2:2}=${EXTEN:-11:11}) exten =>>> _*#XXXXXXXXXXXXX,2, Playback(val_sp) exten =>>> _*#XXXXXXXXXXXXX,3, Hangup> It seems to be 2 that is the problem. I discovered that the keys are > being saved okay but I cannot get the playback to work at storage timeI seem to have it work but two problems, the playback is not working dunno why and I cannot store numbers less that 11 digits which excludes a lot of local numbers for me 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/8784283f/smime.bin