Ok, one of my customers has a rather unique request, and I am not quite sure how to do it. He currently has a nortel system that handles his office lines and a toll-free for emergencies.
Since I have not yet quite convinced him to switch 100% to asterisk, I need some creativity. What he wants is to have the nortel answer his emergency line, froward the call to my Server with an specified inbounr route, that will in turn forward the emergency calls to a select group of cell phones. This Part I can handle.
But it gets a little hairy when he informs me that there are numerous customers that call the number expecting help and do not pay the support fees, so he wants me to create a way for the PIAF to accept the call, ask them to enter their access number, query a database to verify valid, then either pass the call to the ring group, or inform them they do not have a valid support account.
I assume the best way to do this would be to create some sort of agi script to query the database, and then send the call, or play a swift command? But I have no idea how to write agi scripts.
Any help, or other suggestions on how to accomplish this would be greatly appreciated
Since I have not yet quite convinced him to switch 100% to asterisk, I need some creativity. What he wants is to have the nortel answer his emergency line, froward the call to my Server with an specified inbounr route, that will in turn forward the emergency calls to a select group of cell phones. This Part I can handle.
But it gets a little hairy when he informs me that there are numerous customers that call the number expecting help and do not pay the support fees, so he wants me to create a way for the PIAF to accept the call, ask them to enter their access number, query a database to verify valid, then either pass the call to the ring group, or inform them they do not have a valid support account.
I assume the best way to do this would be to create some sort of agi script to query the database, and then send the call, or play a swift command? But I have no idea how to write agi scripts.
Any help, or other suggestions on how to accomplish this would be greatly appreciated