Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 4:17 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: did callback for fixed destinations
PostPosted: Fri Mar 28, 2008 9:56 pm 
Offline

Joined: Mon Jan 29, 2007 1:26 pm
Posts: 12
Hello all,

I need to make a callback solution that would dial a fixed destination to a client. the reason for that is that sometime i do not have a good route to the first leg, and my clients can not dial the digits via DTMF.

so, i am giving them DID's for every number they want to dial. of course it is mainly for international customers who travels a lot.

actually it is quite similar to a web callback.

i have tried to pass the second leg through my a2billing-callback context like that:

[a2billing-callback]
exten => 1000/123456789,1,Answer
exten => 1000/123456789,n,Wait(1)
exten => 1000/123456789,n,Dial(Local/xxxxxxxxxxx@from-internal,60)
exten => 1000/123456789,n,Hangup

It works fine and both of the calls are going through the a2billing script.
the problem is that i am getting only the second cdr and it is 0. when i am sending the second leg to the agi i am getting 2 cdr's correctly.

Can anyone come up with a solution?

Best Regards,

Dani


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 11:49 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
ANI callback is easy enough to do.


Top
 Profile  
 
 Post subject: You did not understand stavros
PostPosted: Sat Mar 29, 2008 5:19 pm 
Offline

Joined: Mon Jan 29, 2007 1:26 pm
Posts: 12
stavros wrote:
ANI callback is easy enough to do.


I am already using the cid-callback. I want to implement a callback service that would be like the web callback. Let me explain again:

I need that someone would trigger one of my did's. this did would belong to one client that would receive a call from the server, stays on the line while the server dials the other destination (which is fixed) to avoid the DTMF dialing.

Can this be done?

Best Regards,

Dani


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 29, 2008 7:20 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Ah, yes. I see what you're trying to do now.
I can't see a way this can be accomplished with A2B as it stands currently.
Perhaps the easiest way to implement it would be to create a new mode (maybe 'fixed-callback') which would consist mostly of code from the existing 'cid-callback' mode but with a little code from the web callback mixed in. It the dialplan you could use it like:
Code:
exten => 441392,1,DeadAGI(a2billing.php|1|fixed-callback||4479)
Where any call to 441392 would call back the CLI and dial 4479.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 30, 2008 9:43 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

If you were using FreePBX combined with A2Billing, this is pretty easy to do, combined with some custom code.

I have not checked the the way in which FreePBX does the callback, so I cannot give you the Asterisk code to get the callback working

The downside is that the ALeg would not be accounted for, but as the call is always going to the same place, it should be easy enough to set a b leg rate to account for the cost of the call.

Joe


Top
 Profile  
 
 Post subject: did that already
PostPosted: Sun Mar 30, 2008 10:24 am 
Offline

Joined: Mon Jan 29, 2007 1:26 pm
Posts: 12
jroper wrote:
Hi

If you were using FreePBX combined with A2Billing, this is pretty easy to do, combined with some custom code.

I have not checked the the way in which FreePBX does the callback, so I cannot give you the Asterisk code to get the callback working

The downside is that the ALeg would not be accounted for, but as the call is always going to the same place, it should be easy enough to set a b leg rate to account for the cost of the call.

Joe


Hi Joe,

Thank you for your prompt reply.
I am already using this solution with the asterisk, and you right, I do not have correct billing.
in my setup every call that is made through the asterisk like the callback, is going through the a2billing script because of the billing.

Best Regards,

Daniel Friedman


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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