variable asterisk callback
intro
This howto is a extension to my recent "simple (fixed) asterisk callback configuration". This configuration is useful to trigger a callback from a location you rarely use, but provides a callerID. This is for example useful in hotel rooms for one night, phone cells, friends homes. The call process is the following:
- you call from a phone with callerID 004144555111 the trigger number 004144555666
- wait for the busy signal
- hangup
- wait until the phone rings
- enter password
- enter target number
The target number will then be called according to the outbound call routing in your pbx.
how does it work- The system recognizes rejects all calls on the trigger number.
- It uses the callerID and generates a temporary call file which will will be copied from a directory (/var/spool/asterisk/ in the example below) into the outgoing directory
- asterisk initiates the outbound call according to the rules in the call file
- once you pick up the callback call, you will get a dialtone and be able to dial as from a local extension
004144555666: inbound number on your asterisk for callback trigger provider: is the SIP account of your outbound (flatrate?) SIP provider, as configured in sip.conf/var/spool/asterisk/skelett.call
Context: callback-dialtone-auth Extension: s SetVar: CALLERIDNUM=<your main number> MaxRetries: 2 RetryTime: 1
in the incomming call context in extensions.conf
exten => 004144555666,1,NoOp(provider callback to ${calleridnum})
exten => 004144555666,2,Wait(1)
exten => 004144555666,3,system(cp /var/spool/asterisk/skelett.call /var/spool/asterisk/skelett.tmp.call)
exten => 004144555666,4,system(echo 'Channel: SIP/${CALLERIDNUM}@provider' >> /var/spool/asterisk/skelett.tmp.call)
exten => 004144555666,5,system(cp /var/spool/asterisk/skelett.tmp.call /var/spool/asterisk/outgoing)
exten => 004144555666,6,HangUp
somewhere in extensions.conf:
[callback-dialtone-auth] exten => s,1,answer() exten => s,2,background(welcome) exten => s,3,authenticate(5678) exten => s,4,DISA(no-password,home)bugs & questions
In case of questions &bugs please leave a comment here in this blog.

intro This a simple howto get a callback feature into asterisk. Its based on the assumption, that you have a account at a provider, which lets you dial into your box remotely and the location you call from provides a callerID. So this setup is mostly
Tracked: Mar 31, 15:37