Asterisk Call Back

hello again :blush:

I want to setup callback on my system, so that i cann a specified number(did) and it calls me back with a dialtone so that i can call an international or local number, is there a way of doing that without using an agi?


Hi I havent got the code to hand, But yes it can be done without an agi. (as can most things)

basicly you need to grab the cli and store it in the astdb
then call a script that creates a call file which calls you and a disa extension.
TBH you will want to authenticate before giving dialtone…


Has anyone else done this, if yes could you please post your config? thanks - the german BRI dude. Search his website or google it. An old colleague of mine had it going. It was an AGI script though -
if it’s going to do call back using the outgoing directory, it’ll need to call a script - however, if you store the CALLERIDNUM variable in astdb temporarily like ianplain says, call a Wait(5), and call it back. Maybe,
exten => XXXXXX,1,Answer()
exten => XXXXXX,2,AstDB(stuff goes here)
exten => XXXXXX,3,Hangup()
exten => h,1,Goto(context-to-dial-out,s,1)

exten => s,1,Dial(astDB(the-value-you-saved))

sorry for the lack of correctness - someone else usually cleans up the general idea where I am.

Awesome, were making progress, hopefully someone can correct you here, im nott much of a noob to fill in the blank with this :laughing:

BUMP, can anyone else help wit this?