asterisk2billing.org
http://forum.asterisk2billing.org/

Save/Remove CID via IVR
http://forum.asterisk2billing.org/viewtopic.php?f=15&t=9270
Page 1 of 1

Author:  Yon [ Fri Oct 28, 2011 4:23 pm ]
Post subject:  Save/Remove CID via IVR

Hi,

I am trying to set up a calling card solution with A2Billing Version : 1.9.4 integrated with FreePBX. I have done most of the customization using agi-conf. I don't want A2B to save CID automatically when a user calls the DID and enters correct PIN number, rather I want to have an IVR prompt to save CID, i.e.

1. DID is called and caller is asked to enter PIN
2. when correct PIN is entered, IVR prompts to press a specific key (or two) to save CID
3. If key(s) is pressed then save CID and prompt to enter the number wished to call, or wait 2 secs and if key not pressed then continue to prompt to enter the number wished to call.

I have seen viewtopic.php?f=15&t=4264 but the code didn't work for me, perhaps due to the fact that I have latest A2B version. Can any one help?

Thank you.

Author:  jroper [ Fri Oct 28, 2011 4:28 pm ]
Post subject:  Re: Save/Remove CID via IVR

Hi

I would suggest you program this in the Asterisk dial-plan.

Joe

Author:  Yon [ Sat Oct 29, 2011 5:37 pm ]
Post subject:  Re: Save/Remove CID via IVR

Thanks Joe, I am struggling to figure out how to do this via dial plan.

Author:  jroper [ Sat Oct 29, 2011 6:15 pm ]
Post subject:  Re: Save/Remove CID via IVR

Hi

Create a dialplan that looks up in the database to see if the callerID exists, if it does call a2billing.php. If it does not exist, prompt for PIN, ask to save caller ID permanently, if yes, insert the CallerID into the cc_caller_id table, if no, set accountcode to PIN, and call a2billing.php, if yes, simply call a2billing.php.

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/