Hi everybody,
I have a little doubt about a2billing. I have an agi script (made with phpagi) which receive a call from a trunk sip (I'm not using a2billing to manage phone numbers). This agi is an ivr and sometimes it need to make a call and billing it. So what I do is Dial(Local/myphonenumber@mycontext/n,40) and the myphonenumber context has _X.,1,AGI(a2billing.conf,1). Everything is ok, the call is billing. The problem is that I want to continue in my ivr agi script when the dialstatus is distinct of ANSWER but in this case a2billing reproduce the sound (Destination not ...) and then hangup the call. My agi will be the responsible to read the DIALSTATUS variable and if it's distinct of ANSWER will end the call. In my a2billing I have try count = 1.
Is there any way to do this? Is Dial(Local/myphonenumber@mycontext/n,40) the best way to link my inbound call with an outbound call?
Thanks you, Carlos
|