Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 1:34 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Tue Jun 29, 2010 9:50 pm 
Offline

Joined: Tue Jun 29, 2010 9:41 pm
Posts: 4
http://www.asterisk2billing.org/cgi-bin ... ticket/808

The DID provider is sending me only one call,however the callback daemon is placing multiple callbacks

extension config :

[a2billing-cid-callback]
exten => _.,1,DeadAGI(a2billing.php,2,cid-callback) ;last parameter is the call$
exten => _.,n,Hangup

timeout for callback is set to 10 sec

I also noticed a major problem . Callback calls are not getting charged even if the setting to call both legs is set to yes
i upgraded also from 1.7.0 to 1.7.1 didnt fixed the issue
i have upgraded also to 1.6.2.9 asterisk also same result

something wrong the setting for billing both legs was working on past i think
Please help


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Wed Jun 30, 2010 2:56 pm 
Offline

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

The DID provider is actually sending several calls, hence the reason for the multiple callbacks. The first call is failing (by design, 'cos it's callback) and so the provider or your carrier is probably failing over to its backup trunks.

This can be alleviated by setting the dialplan to ring a couple of times before passing it to A2Billing, but no guarantees.

In respect of your other issues have you reviewed the documentation on this at http://trac.asterisk2billing.org/cgi-bi ... wCallbacks

Joe


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Wed Jun 30, 2010 9:56 pm 
Offline

Joined: Tue Jun 29, 2010 9:41 pm
Posts: 4
How can you explain the fact that callback calls both not appearing in a2billing's cdr anymore as callback and to charge them
but in asterisk cdr database i can see them
only connected calls get charged... if its not hangup when enter number and #


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Wed Jun 30, 2010 9:57 pm 
Offline

Joined: Tue Jun 29, 2010 9:41 pm
Posts: 4
argeorge wrote:
How can you explain the fact that callback calls both not appearing in a2billing's cdr anymore as callback and to charge them
but in asterisk cdr database i can see them
only
Quote:
connected call
s get charged... if its not hangup when enter number and #


connected call (2nd leg)


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Mon Aug 30, 2010 2:43 pm 
Offline

Joined: Mon Aug 30, 2010 12:48 pm
Posts: 7
hi argeorge,

i still sitting on small other problem, asterisk 1.6.2 actually a2bill.
my problem is that the system dident make the callback. in the database is standing only ERROR

"2010-08-31 15:58:06,515 - xxxx- MainThread - INFO - try_originate : SIP/troisa/xxxxxxxxx : 1000 : a2billing-callback"
"2010-08-31 15:58:06,555 - xxxx- MainThread - INFO - CallBack Status : Error"
"2010-08-31 15:58:06,561 - xxxx- MainThread - INFO - [2010/08/31 15:58:06] Placed 6 calls"

all looks fine, but no callback at all.

can you please tell me with setting do you have put in place that the switch dialout the call.
your support is more than welcome here, i dont get forward here !!!

special regards

achim


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Mon Aug 30, 2010 2:52 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Ensure that the callback daemon starts AFTER asterisk. then test again.

Joe


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Mon Aug 30, 2010 3:35 pm 
Offline

Joined: Mon Aug 30, 2010 12:48 pm
Posts: 7
hi jroper,

thanks for your quick responce. !!

yes of corce. every time when i reload or i start the asterisk i make a restart on the daemon.
but :-(

it give no error messages only in the database "status" = ERROR !! but why !?
so i don't know where i have to search here to find it out !!

did you have any idea in that case ??

special regards

achim


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Sat Oct 16, 2010 4:12 pm 
Offline

Joined: Tue Jan 06, 2009 11:04 am
Posts: 36
Location: Bangkok, Thailand
teleg wrote:
hi argeorge,

i still sitting on small other problem, asterisk 1.6.2 actually a2bill.
my problem is that the system dident make the callback. in the database is standing only ERROR

"2010-08-31 15:58:06,515 - xxxx- MainThread - INFO - try_originate : SIP/troisa/xxxxxxxxx : 1000 : a2billing-callback"
"2010-08-31 15:58:06,555 - xxxx- MainThread - INFO - CallBack Status : Error"
"2010-08-31 15:58:06,561 - xxxx- MainThread - INFO - [2010/08/31 15:58:06] Placed 6 calls"

all looks fine, but no callback at all.

can you please tell me with setting do you have put in place that the switch dialout the call.
your support is more than welcome here, i dont get forward here !!!

special regards

achim


Hi, Let me try to help you.
You see these message. The show you "callback daemon" already started. So the next step you have to check on your A2B is there's any ratecard or prefix to callback or not?

If you don't sure about ratecard. Please enable "debug" on AGI-CONF that you are using. You will see what happen while callback operates.

Goodluck to you
Nuiz


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Fri Nov 05, 2010 1:29 pm 
Offline

Joined: Fri Nov 05, 2010 1:13 pm
Posts: 1
I also have the Problem that the Callback Daemon does not callback.
My Asterisk Version is: Asterisk 1.4.22
A2Billing: 1.7.1

Daemon Log:
"2010-11-05 14:09:37,276 - root - MainThread - INFO - [<callback_daemon.database.CallBack_Spool object at 0xb6ff960c>]"
"2010-11-05 14:09:37,298 - root - MainThread - INFO - try_originate : SIP/phoneprovider/0049xxxxxxxxxxx : 1000 : a2billing-callback-out"

Here is the extensions.conf:
[a2billing-callback-out]
exten => _X.,1,Answer
exten => _X.,n,DeadAGI(a2billing.php|3|callback)
exten => _X.,n,Hangup


In Asterisk Console it does not show up at all, except once that the Deamon is connected to the manager.
In Database callback only shows "error"

thanks for your help.

Johannes


I could Initiate a callback now! :)
I clicked on add callback.
I entered everything. The important was the channel: in my case it is NOT SIP/xxxxxxxxxxx/phoneprovider
BUT: SIP/xxxxxxxxxxxx@phoneprovider

Now i have to find out how to change it in a2billing that it inserts it automalically if theres an incoming callback


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Thu Feb 24, 2011 9:10 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
did you sove the problem, please reply if you did


Top
 Profile  
 
 Post subject: Re: 1 Callback from ani callback places 2,3,4 calls on the spool
PostPosted: Sun Mar 20, 2011 2:12 pm 
Offline

Joined: Fri Dec 17, 2010 12:17 pm
Posts: 20
I had a similar problem with calls coming only from some providers in central america.
The server was calling back 2, 3, 4 or 5 times the client...!
I solved this problem and just want to share with you my solution (sure it's not the best but it works)

A first solution is to try this
Code:
exten => 058xxx0001,n,Ringing
exten => 058xxx0001,n,Wait(2)
exten => 058xxx0001,n,Hangup(38)


didn't work for me but could be a solution

I also saw this solution in the forum but it didn't works for me as i had more than 2 simultaneous calls coming from the same client :
Code:
exten => 0582950001,n,Ringing
exten => 058xxx0001,n,Wait(1)
exten => 058xxx0001,n,Hangup(38)
exten => h,1,GotoIf($[${CALLBACK} = 0]?10:20)
exten => h,10,DeadAGI(a2billing.php,2,cid-callback)
exten => h,n,Set(GLOBAL(CALLBACK)=1)
exten => h,n,Verbose(CALLBACK Variable changed first callback =${CALLBACK})
exten => h,n,Hangup()
exten => h,20,Set(GLOBAL(CALLBACK)=0)
exten => h,n,Verbose(CALLBACK Variable changed second callback =${CALLBACK})
exten => h,n,Hangup()

(you have to define a global variable named CALLBACK)

At least i decided to use the a2billing database to see if the system was already calling the CID or not. However I didn't really found which a2billing table to use so I made my own table and database

1. I created a database (using phpmyadmin) mya2billing_chab

2. I created a table in this database with the name "callback_log" and 2 fields (ID and CallerID). ID is auto-increment and primary key and CallerID is a varchar(20)

3. You need to verify that the a2billinguser has sufficient rights to insert and delete this database

4. When a call is coming for the first time the CID is added to the table callback_log which contained the ongoing callbacks. In extension.conf i put :
Code:
exten => 058xxx0001,n,MYSQL(Connect connid 127.0.0.1 a2billinguser xxYOURxxPASSWORDxx mya2billing_chab)
exten => 058xxx0001,n,MYSQL(Query resultid ${connid} SELECT CallerID FROM callback_log WHERE CallerID = ${CALLERID(num)})
exten => 058xxx0001,n,MYSQL(Fetch fetchid ${resultid} callernumber)
exten => 058xxx0001,n,MYSQL(Clear ${resultid})
exten => 058xxx0001,n,GotoIf($[${CALLERID(number)} = ${callernumber}]?loopCallback:firstCallback)

; ### It's the 2nd, 3rd or 4th calls coming from the same CID
exten => 058xxx0001,n(loopCallback),Hangup(38)

; ### It's the first time the CID is calling
exten => 058xxx0001,n(firstCallback),MYSQL(Query resultid ${connid} INSERT INTO callback_log (CallerID) VALUES (${CALLERID(num)}))
exten => 058xxx0001,n,MYSQL(Disconnect ${connid})
exten => 058xxx0001,n,Goto(a2billing-all-callback,${CALLERID(num)},1)
exten => 058xxx0001,n,Hangup(38)


5. Then when the callback is finished i deleted the CID of the mysql table. In extensions_a2billing_1_6.conf
Code:
; To standard Outbound the callback - this is used internally by the callback daemon
[a2billing-callback]
exten => _X.,1,DeadAgi(a2billing.php,2,callback)
exten => h,1,MYSQL(Connect connid 127.0.0.1 a2billinguser xxYOURxxPASSWORDxx mya2billing_chab)
exten => h,n,MYSQL(Query resultid ${connid} DELETE FROM callback_log WHERE CallerID = ${CALLERID(number)})
exten => h,n,MYSQL(Disconnect ${connid})
exten => h,n,Hangup


Sure it's not so clean but i didn't find other solution.

Maybe a2billing developers could integrate this kind of "security" to avoid the system to callback several times the same CID ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 25 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group