Thank you for fast responding,
stavros wrote:
Perhaps you are queueing two callbacks from the Asterisk dialplan. Watch the Asterisk console carefully whilst triggering a callback to see if A2B is invoked twice.
Yes, it does trigger twice. How to fix this?
Here is my inbound routes.
[ext-did]
exten => 403456XXXX,1,Set(__FROM_DID=${EXTEN})
exten => 403456XXXX,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => 403456XXXX,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 403456XXXX,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 403456XXXX,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})
exten => 403456XXXX,n,SetCallerPres(allowed_not_screened)
exten => 403456XXXX,n,Goto(a2billing-cid-callback,_X.,1)
stavros wrote:
I believe it's also possible to have two copies of the callback daemon running at once, which would also account for your problem.
I use ps -aux command but I only see callback daemon once.
stavros wrote:
The calculation of the maximum total duration of both legs of a callback is far from trivial. A2B currently uses a poor approximation so, to greatly reduce the possibility of the call costing more than the available funds, the user's credit is halved before making the calculation.
Maybe, because of those 2 queues.