Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 9:37 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Auto Callback and connect to a preset number
PostPosted: Wed Sep 19, 2007 6:07 pm 
Offline

Joined: Sat Jul 14, 2007 11:53 am
Posts: 24
Hi, I am trying to workout how to have someone initiate a Callback and when the first leg is answered, the second leg is automatically triggered to call a preset number, i.e. like a home number. Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 1:24 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I am curious. Can you give a practical example that would justify including this is a2billing? And do you want to do this on a per user basis? In the mean time, you can certainly do this. The 2nd phase of the callback sent the 1st leg to the context/extension (priority 1 is implied) that you will specify in as2billing.conf (in the [callback] section)

Instead of calling the agi as you would normally, you can use the asterisk Dial command to dial any number of your choice.

For example, is you have this in your a2billing.conf

Code:
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = my_context_for_the_2nd_phase_of_callback

; this is the Extension to redirect the call when the web callback is returned
extension = 1234



You can have the following in extension.conf

If your home number is 1234567891

Code:
[my_context_for_the_2nd_phase_of_callback]
exten => 1234,1,Answer
exten => 1234,n,Wait(1)
exten => 1234,n,Dial(SIP/some_sip_server/1234567891)
exten => 1234,n,Hangup


If you have no other choice but sharing this callback context with a2billing, then you may do this instead

Code:
[my_context_for_the_2nd_phase_of_callback]
exten => 1234/987654321,1,Answer
exten => 1234/987654321,n,Wait(1)
exten => 1234/987654321,n,Dial(SIP/some_sip_server/1234567891)
exten => 1234/987654321,n,Hangup

exten => 1234,1,Answer
exten => 1234,n,Wait(1)
exten => 1234,n,DeadAGI(a2billing|1|callback)
exten => 1234,n,Hangup


Of course, 987654321 will be the callerid of the phone you want this feature to be available from. But if your trunk provider does does not let you set callerid on outbound calls, than this may not work at all.

Good luck


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group