Callback configuration for extension.conf

February 3, 2010 at 8:21 am Leave a comment

[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

;To standard outbound callback- used internally by callback daemon
[a2billing-callback]
; Callback application
exten => _X.,1,DeadAgi(a2billing.php|1|callback)
exten => _X.,n,Hangup

;Inbound callback scenario
; it will perform a CallerID authentication before calling back the person, not everybody is allowed to use the callback
[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=0${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|4|cid-callback) ;last parameter is the callback area code
exten => _X.,n,Hangup

;Inbound callback scenario
[a2billing-ani]
exten => 2006,1,Answer(1)
exten => 2006,2,DeadAgi(a2billing.php|3|ani)
exten => 2006,3,Hangup

Advertisements

Entry filed under: ASTERISK.

What is A2billing All about

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2010
M T W T F S S
« Jan    
1234567
891011121314
15161718192021
22232425262728

Blog Stats

  • 8,537 hits

Categories


%d bloggers like this: