AsteriDex 4 is Ready for a Few Pioneers

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
20,217
Reaction score
5,974
If you would like to try AsteriDex 4 and provide a little feedback, here's a link to the documentation and the code. Enjoy! :)
 
Great! I'll make sure Ultimate CNAM works with it.
 
Several things I noticed:
  • You mention TrixBox quite a bit in the article. Perhaps you want to change that to PiaF?
  • The file I downloaded had $defaultExt not $INdefault as mentioned in the article
  • The PBX homepage doesn't recognize the asteridex4 folder and make a button for it by default. This can be fixed with:
    Code:
    sed -i 's|\./asteridex|\./asteridex4|' /var/www/html/index.php
 
And where I stand

Every thing was entered in per the directions. When I dial out, I hear Allison read the dialed extension, and then I get the flite voice, but it doesn't try to say the name. After a few seconds, I get a congestion tone.

-- Remote UNIX connection
-- Executing [0063526@from-internal:1] SayDigits("SIP/500-b7d01e08", "63526|") in new stack
-- <SIP/500-b7d01e08> Playing 'digits/6' (language 'en')
-- <SIP/500-b7d01e08> Playing 'digits/3' (language 'en')
-- <SIP/500-b7d01e08> Playing 'digits/5' (language 'en')
-- <SIP/500-b7d01e08> Playing 'digits/2' (language 'en')
-- <SIP/500-b7d01e08> Playing 'digits/6' (language 'en')
-- Executing [0063526@from-internal:2] EAGI("SIP/500-b7d01e08", "asteridex.agi|0063526") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/asteridex.agi
asteridex.agi|0063526: EXTEN IS: 63526
asteridex.agi|0063526: Ready for AsteriDex lookup...
-- AGI Script asteridex.agi completed, returning 0
-- Executing [0063526@from-internal:3] GotoIf("SIP/500-b7d01e08", "0?97") in new stack
-- Executing [0063526@from-internal:4] NoOp("SIP/500-b7d01e08", "Number to Dial: ") in new stack
-- Executing [0063526@from-internal:5] NoOp("SIP/500-b7d01e08", "Person to Dial: ") in new stack
-- Executing [0063526@from-internal:6] Flite("SIP/500-b7d01e08", ""Connecting to: . One moment please."") in new stack
== Parsing '/etc/asterisk/flite.conf': Found
-- <SIP/500-b7d01e08> Playing '/tmp/flite_buf_TxF1El' (language 'en')
-- Executing [0063526@from-internal:7] Goto("SIP/500-b7d01e08", "outbound-allroutes||1") in new stack
-- Goto (outbound-allroutes,0063526,1)


So the first thing seems to be that it is not pulling the information from the database. Next, shouldn't it be using the OUT_X instead of trying to dial through all routes? And lastly, I use the NXXNXXXXXX for my outdials, so should I remove the 1 from $LD_Prefix since I actually add the 1 in my trunk definition... 1+NXXNXXXXXX
 
Be sure you place the following code snippet in [from-internal-custom] context of /etc/asterisk/extensions_custom.conf and reload Asterisk:
Code:
exten => _00.,1,SayDigits(${EXTEN:2},) ; extensions dialed with 00 prefix get looked up in AsteriDex
exten => _00.,2,EAGI(asteridex.agi|${EXTEN})
exten => _00.,3,GotoIf($["${DIAL:0:2}" = "00"]?97)
exten => _00.,4,NoOp(Number to Dial: ${DIAL})
exten => _00.,5,NoOp(Person to Dial: ${DUDE})
exten => _00.,6,Flite("Connecting to: ${DUDE}. One moment please.")
exten => _00.,7,Goto(outbound-allroutes,${DIAL},1)
exten => _00.,8,Hangup()
exten => _00.,97,Playback(num-not-in-db)
exten => _00.,98,Playback(goodbye)
exten => _00.,99,Hangup()
Then add Dial Code entries to your AsteriDex records, e.g. I added 282 for AirTran Airways. Then just dial 00282, and it works... at least for me. You didn't change your MySQL password, did you??


-- Executing [00282@from-internal:1] SayDigits("SIP/201-0911c0f0", "282|") in new stack
-- <SIP/201-0911c0f0> Playing 'digits/2' (language 'en')
-- <SIP/201-0911c0f0> Playing 'digits/8' (language 'en')
-- <SIP/201-0911c0f0> Playing 'digits/2' (language 'en')
-- Executing [00282@from-internal:2] EAGI("SIP/201-0911c0f0", "asteridex.agi|00282") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/asteridex.agi
-- AGI Script asteridex.agi completed, returning 0
-- Executing [00282@from-internal:3] GotoIf("SIP/201-0911c0f0", "0?97") in new stack
-- Executing [00282@from-internal:4] NoOp("SIP/201-0911c0f0", "Number to Dial: 8002478726") in new stack
-- Executing [00282@from-internal:5] NoOp("SIP/201-0911c0f0", "Person to Dial: AirTran-Airways") in new stack
-- Executing [00282@from-internal:6] Flite("SIP/201-0911c0f0", ""Connecting to: AirTran-Airways. One moment please."") in new stack
== Parsing '/etc/asterisk/flite.conf': Found
-- <SIP/201-0911c0f0> Playing '/tmp/flite_buf_bnCvkg' (language 'en')
-- Executing [00282@from-internal:7] Goto("SIP/201-0911c0f0", "outbound-allroutes|8002478726|1") in new stack
-- Goto (outbound-allroutes,8002478726,1)
-- Executing [8002478726@outbound-allroutes:1] Macro("SIP/201-0911c0f0", "dialout-trunk|2|8002478726||") in new stack
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top